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 |
|---|---|---|---|---|---|---|
displayMessage("No schema loaded", "[XML maker]"); | xsdTree.getMessageManager().sendMessage("No schema loaded", MessageManagerInt.errorMessage); | public void actionPerformed(ActionEvent e) { if (((XsdTreeStructImpl) xsdTree).rootNode == null) { displayMessage("No schema loaded", "[XML maker]"); return; } TreeNode[] path = ((XsdTreeStructImpl) xsdTree).rootNode.getPath(); try { String defaultDirectory = Utils.lastVisitedDirectory; if (Utils.lastVisitedOutputDirectory != null) defaultDirectory = Utils.lastVisitedOutputDirectory; // logFileChooser.setCurrentDirectory(new // File(defaultDirectory)); // JFileChooser fileChooser = new JFileChooser(defaultDirectory); // JLabel logFileLabel = new JLabel("log file:"); // JButton logoutButton = new JButton("log file"); // logoutButton.addActionListener(new LogoutListener()); // Box logPanel = new Box(BoxLayout.Y_AXIS); // logPanel.add(logFileLabel); // logPanel.add(logoutFileName); // logPanel.add(logoutButton); // fileChooser.setAccessory(logPanel); int confirm = fileChooser.showSaveDialog(new JFrame()); if (confirm != JOptionPane.OK_OPTION) return; Utils.lastVisitedDirectory = fileChooser.getSelectedFile() .getPath(); Utils.lastVisitedOutputDirectory = fileChooser .getSelectedFile().getPath(); File out = fileChooser.getSelectedFile(); // if ((logoutFile = logFileChooser.getSelectedFile()) == null) // { // logoutFile = new File("log.out"); // } // // logoutFile = new File(out.getName() + ".log"); // logoutPrintWriter = new PrintWriter(new BufferedWriter( // new FileWriter(logoutFile))); // logoutFileName.setText(logoutFile.getName()); // // logoutPrintWriter = new PrintWriter(new BufferedWriter( // new FileWriter(logoutFile))); // logoutFileName.setText(logoutFile.getName());// logoutPrintWriter = new PrintWriter(new BufferedWriter(// new FileWriter(logoutFile))); // logoutFileName.setText(logoutFile.getName()); // logoutPrintWriter = new PrintWriter(new BufferedWriter( // new FileWriter(logoutFile))); // logoutFileName.setText(logoutFile.getName()); MarshallingObserver observer = new MarshallingObserver(); observer .setObservable(((XsdTreeStructImpl) xsdTree).observable); ((XsdTreeStructImpl) xsdTree).observable.addObserver(observer); // new Thread(observer).start(); // javax.swing.SwingUtilities.invokeLater(observer);// observer.start(); ((XsdTreeStructImpl) xsdTree).print2(out);// observer.dispose(); // logoutPrintWriter.flush();// logoutPrintWriter.close(); // JPanel panel = new JPanel(); // JButton displayMessages = new JButton( // "Click here to display error messages"); // displayMessages // .addActionListener(new DisplayMessagesListener()); // panel.add(new JLabel("Marshalling done.")); // panel.add(displayMessages); // // JOptionPane.showMessageDialog(new JFrame(), panel, // "[XML makers] creating the xml document", // JOptionPane.ERROR_MESSAGE); } catch (FileNotFoundException fe) { JOptionPane.showMessageDialog(new JFrame(), "unable to write file", "XML maker", JOptionPane.ERROR_MESSAGE); } catch (IOException ex) { JOptionPane.showMessageDialog(new JFrame(), "unable to write file", "XML maker", JOptionPane.ERROR_MESSAGE); } } | 3154 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3154/8317fd24793c994e235d930875bec53a6e8fe9fa/XsdTreePanelImpl.java/buggy/tools/xmlMakerFlattener/src/mint/filemakers/xmlMaker/gui/XsdTreePanelImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1082,
202,
430,
261,
12443,
60,
6427,
2471,
3823,
2828,
13,
14802,
2471,
2934,
3085,
907,
422,
446,
13,
288,
9506,
202,
5417,
1079,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26100,
12,
1803,
1133,
425,
13,
288,
1082,
202,
430,
261,
12443,
60,
6427,
2471,
3823,
2828,
13,
14802,
2471,
2934,
3085,
907,
422,
446,
13,
288,
9506,
202,
5417,
1079,
... |
run("./Future3.x10","Future3","./Constructs/Future"); } | runHelper(); } | public void test_Constructs_Future_Future3() { run("./Future3.x10","Future3","./Constructs/Future"); } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/3bd1027a0e8a0edbdacb19b952cc4296d36760df/TestCompiler.java/clean/x10.test/src/polyglot/ext/x10/tests/TestCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
13262,
67,
4118,
67,
4118,
23,
1435,
288,
3639,
1086,
2932,
18,
19,
4118,
23,
18,
92,
2163,
15937,
4118,
23,
3113,
9654,
19,
13262,
19,
4118,
8863,
565,
289,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
13262,
67,
4118,
67,
4118,
23,
1435,
288,
3639,
1086,
2932,
18,
19,
4118,
23,
18,
92,
2163,
15937,
4118,
23,
3113,
9654,
19,
13262,
19,
4118,
8863,
565,
289,
2,
-... |
return (Node)u2; } | return (Node) u2; } | public Node getIBodyNode() { return (Node)u2; } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/buggy/org/jruby/nodes/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2029,
8974,
2250,
907,
1435,
288,
202,
202,
2463,
261,
907,
13,
89,
22,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2029,
8974,
2250,
907,
1435,
288,
202,
202,
2463,
261,
907,
13,
89,
22,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Logger.minor(this, "Forgotten packets: "+forgottenCount); | private void processDecryptedData(byte[] decrypted, int seqNumber, KeyTracker tracker) { /** * Decoded format: * 1 byte - version number (0) * 1 byte - number of acknowledgements * Acknowledgements: * 1 byte - ack (+ve integer, subtract from seq-1) to get seq# to ack * * 1 byte - number of explicit retransmit requests * Explicit retransmit requests: * 1 byte - retransmit request (+ve integer, subtract from seq-1) to get seq# to resend * * 1 byte - number of packets forgotten * Forgotten packets: * 1 byte - forgotten packet seq# (+ve integer, subtract from seq-1) to get seq# lost * * 1 byte - number of messages * 2 bytes - message length * first message * 2 bytes - second message length * second message * ... * last message * anything beyond this point is padding, to be ignored */ // Use ptr to simplify code int ptr = RANDOM_BYTES_LENGTH; int version = decrypted[ptr++]; if(ptr > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); return; } if(version != 0) { Logger.error(this,"Packet from "+tracker+" decrypted but invalid version: "+version); return; } /** Highest sequence number sent - not the same as this packet's seq number */ int realSeqNumber = seqNumber; if(seqNumber == -1) { if(ptr+4 > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); return; } realSeqNumber = ((((((decrypted[ptr+0] & 0xff) << 8) + (decrypted[ptr+1] & 0xff)) << 8) + (decrypted[ptr+2] & 0xff)) << 8) + (decrypted[ptr+3] & 0xff); ptr+=4; } else { if(ptr > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); return; } realSeqNumber = seqNumber + (decrypted[ptr++] & 0xff); } //Logger.minor(this, "Reference seq number: "+HexUtil.bytesToHex(decrypted, ptr, 4)); if(ptr+4 > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); return; } int referenceSeqNumber = ((((((decrypted[ptr+0] & 0xff) << 8) + (decrypted[ptr+1] & 0xff)) << 8) + (decrypted[ptr+2] & 0xff)) << 8) + (decrypted[ptr+3] & 0xff); ptr+=4; Logger.minor(this, "Reference sequence number: "+referenceSeqNumber); tracker.receivedPacket(seqNumber); int ackCount = decrypted[ptr++] & 0xff; Logger.minor(this, "Acks: "+ackCount); for(int i=0;i<ackCount;i++) { int offset = decrypted[ptr++] & 0xff; if(ptr > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); return; } int realSeqNo = referenceSeqNumber - offset; Logger.minor(this, "ACK: "+realSeqNo); tracker.acknowledgedPacket(realSeqNo); } int retransmitCount = decrypted[ptr++] & 0xff; Logger.minor(this, "Retransmit requests: "+retransmitCount); for(int i=0;i<retransmitCount;i++) { int offset = decrypted[ptr++] & 0xff; if(ptr > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); } int realSeqNo = referenceSeqNumber - offset; Logger.minor(this, "RetransmitRequest: "+realSeqNo); tracker.resendPacket(realSeqNo); } int ackRequestsCount = decrypted[ptr++] & 0xff; // These two are relative to our outgoing packet number // Because they relate to packets we have sent. for(int i=0;i<ackRequestsCount;i++) { int offset = decrypted[ptr++] & 0xff; if(ptr > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); } int realSeqNo = realSeqNumber - offset; Logger.minor(this, "AckRequest: "+realSeqNo); tracker.receivedAckRequest(realSeqNo); } int forgottenCount = decrypted[ptr++] & 0xff; //Logger.minor(this, "Forgotten packets: "+forgottenCount); for(int i=0;i<forgottenCount;i++) { int offset = decrypted[ptr++] & 0xff; if(ptr > decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); } int realSeqNo = realSeqNumber - offset; tracker.destForgotPacket(realSeqNo); } if(seqNumber == -1) return; // No sequence number == no messages int messages = decrypted[ptr++] & 0xff; for(int i=0;i<messages;i++) { if(ptr+1 >= decrypted.length) { Logger.error(this, "Packet not long enough at byte "+ptr+" on "+tracker); } int length = ((decrypted[ptr++] & 0xff) << 8) + (decrypted[ptr++] & 0xff); if(length > decrypted.length - ptr) { Logger.error(this, "Message longer than remaining space: "+length); return; } Logger.minor(this, "Message "+i+" length "+length+", hash code: "+Fields.hashCode(decrypted, ptr, length)); Message m = usm.decodePacket(decrypted, ptr, length, tracker.pn); ptr+=length; if(m != null) { //Logger.minor(this, "Dispatching packet: "+m); usm.checkFilters(m); } } } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/b65da6d7400224aceca597e3463b9ed8ec21e4b9/FNPPacketMangler.java/clean/src/freenet/node/FNPPacketMangler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4242,
18,
17364,
12,
2211,
16,
315,
1290,
13212,
2253,
12640,
30,
13773,
1884,
13212,
2253,
1380,
1769,
4242,
18,
17364,
12,
2211,
16,
315,
1290,
13212,
2253,
12640,
30,
13773,
1884,
13212,
2253... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4242,
18,
17364,
12,
2211,
16,
315,
1290,
13212,
2253,
12640,
30,
13773,
1884,
13212,
2253,
1380,
1769,
4242,
18,
17364,
12,
2211,
16,
315,
1290,
13212,
2253,
12640,
30,
13773,
1884,
13212,
2253... | |
return m_operatingSystem; | return htmlify(m_operatingSystem); | public String getOperatingSystem() { return m_operatingSystem; } | 25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/59ece177d0a2560c89f3cd68c2f210ed7a5a1c2d/Node.java/buggy/src/web/src/org/opennms/web/element/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
336,
3542,
24811,
1435,
3639,
288,
7734,
327,
1729,
1164,
12,
81,
67,
4063,
24811,
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,
1071,
514,
336,
3542,
24811,
1435,
3639,
288,
7734,
327,
1729,
1164,
12,
81,
67,
4063,
24811,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
private Entry getChildEntry(DirectoryString base,Group group) throws InvalidDNException { Entry entry; if(group instanceof User) {// mail: eiki@idega.is// initials: ESH// title: manager, product development// uid: eiki// telephoneNumber: +1 408 555 1862// facsimileTelephoneNumber: +1 408 555 1992// mobile: +1 408 555 1941 User user = (User)group; String identifier = getUserIdentifier(user,base);// // DirectoryString childDN = new DirectoryString(identifier+","+dn); DirectoryString childDN = new DirectoryString(identifier); entry = new Entry(childDN); fillUserEntry(user,entry); } else { String identifier = getGroupIdentifier(group,base); DirectoryString childDN = new DirectoryString(identifier); entry = new Entry(childDN); fillGroupEntry(group, entry); } return entry; } | 52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/ac2c61f2c561c46c94e5baf0d3ca6334cdf292b1/IWUserLDAPBackend.java/buggy/src/java/com/idega/core/ldap/server/backend/IWUserLDAPBackend.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1622,
588,
1763,
1622,
12,
2853,
780,
1969,
16,
1114,
1655,
13,
15069,
1941,
8609,
503,
95,
202,
202,
1622,
4099,
31,
9506,
202,
430,
12,
1655,
1336,
792,
1299,
15329,
759,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1622,
588,
1763,
1622,
12,
2853,
780,
1969,
16,
1114,
1655,
13,
15069,
1941,
8609,
503,
95,
202,
202,
1622,
4099,
31,
9506,
202,
430,
12,
1655,
1336,
792,
1299,
15329,
759,
1... | ||
} else if (localname.equals("body") && uri.equals("")) { Context context = getContext(pipelineContext); if (context.bodyFileItem == null) { final FileItem fileItem = new DefaultFileItemFactory(getMaxMemorySizeProperty(), SystemUtils.getTemporaryDirectory()).createItem("dummy", "dummy", false, null); pipelineContext.addContextListener(new PipelineContext.ContextListenerAdapter() { public void contextDestroyed(boolean success) { fileItem.delete(); } }); try { OutputStream outputStream = fileItem.getOutputStream(); NetUtils.copyStream(getRequest(pipelineContext).getInputStream(), outputStream); outputStream.close(); } catch (IOException e) { throw new OXFException(e); } context.bodyFileItem = fileItem; } AttributesImpl newAttributes = new AttributesImpl(); super.startPrefixMapping(XMLConstants.XSI_PREFIX, XMLConstants.XSI_URI); super.startPrefixMapping(XMLConstants.XSD_PREFIX, XMLConstants.XSD_URI); newAttributes.addAttribute(XMLConstants.XSI_URI, "type", "xsi:type", "CDATA", useBase64(pipelineContext, context.bodyFileItem) ? XMLConstants.XS_BASE64BINARY_QNAME.getQualifiedName(): XMLConstants.XS_ANYURI_QNAME.getQualifiedName()); super.startElement(uri, localname, qName, newAttributes); writeFileItem(pipelineContext, context.bodyFileItem, getContentHandler()); super.endElement(uri, localname, qName); super.endPrefixMapping(XMLConstants.XSD_PREFIX); super.endPrefixMapping(XMLConstants.XSI_PREFIX); } else { super.startElement(uri, localname, qName, attributes); | } catch (IOException e) { throw new OXFException(e); | public ProcessorOutput createOutput(String name) { ProcessorOutput output = new ProcessorImpl.DigestTransformerOutputImpl(getClass(), name) { public void readImpl(final PipelineContext pipelineContext, ContentHandler contentHandler) { try { final State state = (State) getFilledOutState(pipelineContext); // Transform the resulting document into SAX Transformer identity = TransformerUtils.getIdentityTransformer(); identity.transform(new DocumentSource(state.requestDocument), new SAXResult(new ForwardingContentHandler(contentHandler) { public void startElement(String uri, String localname, String qName, Attributes attributes) throws SAXException { if (REQUEST_PRIVATE_NAMESPACE_URI.equals(uri)) { // Special treatment for this element if (FILE_ITEM_ELEMENT.equals(qName)) { // Marker for file item String parameterName = attributes.getValue(PARAMETER_NAME_ATTRIBUTE); FileItem fileItem = (FileItem) getRequest(pipelineContext).getParameterMap().get(parameterName); AttributesImpl newAttributes = new AttributesImpl(); super.startPrefixMapping(XMLConstants.XSI_PREFIX, XMLConstants.XSI_URI); super.startPrefixMapping(XMLConstants.XSD_PREFIX, XMLConstants.XSD_URI); newAttributes.addAttribute(XMLConstants.XSI_URI, "type", "xsi:type", "CDATA", useBase64(pipelineContext, fileItem) ? XMLConstants.XS_BASE64BINARY_QNAME.getQualifiedName(): XMLConstants.XS_ANYURI_QNAME.getQualifiedName()); super.startElement("", "value", "value", newAttributes); writeFileItem(pipelineContext, fileItem, getContentHandler()); super.endElement("", "value", "value"); super.endPrefixMapping(XMLConstants.XSD_PREFIX); super.endPrefixMapping(XMLConstants.XSI_PREFIX); } } else if (localname.equals("body") && uri.equals("")) { // Marker for request body // Read InputStream into FileItem object, if not already present // We do this so we can read the body multiple times, if needed. // For large files, there will be a performance hit. If we knew // we didn't need to read it multiple times, we could avoid // saving the stream, but practically, it can happen, and it is // convenient. Context context = getContext(pipelineContext); if (context.bodyFileItem == null) { final FileItem fileItem = new DefaultFileItemFactory(getMaxMemorySizeProperty(), SystemUtils.getTemporaryDirectory()).createItem("dummy", "dummy", false, null); pipelineContext.addContextListener(new PipelineContext.ContextListenerAdapter() { public void contextDestroyed(boolean success) { fileItem.delete(); } }); try { OutputStream outputStream = fileItem.getOutputStream(); NetUtils.copyStream(getRequest(pipelineContext).getInputStream(), outputStream); outputStream.close(); } catch (IOException e) { throw new OXFException(e); } context.bodyFileItem = fileItem; } // Serialize the stream into the body element AttributesImpl newAttributes = new AttributesImpl(); super.startPrefixMapping(XMLConstants.XSI_PREFIX, XMLConstants.XSI_URI); super.startPrefixMapping(XMLConstants.XSD_PREFIX, XMLConstants.XSD_URI); newAttributes.addAttribute(XMLConstants.XSI_URI, "type", "xsi:type", "CDATA", useBase64(pipelineContext, context.bodyFileItem) ? XMLConstants.XS_BASE64BINARY_QNAME.getQualifiedName(): XMLConstants.XS_ANYURI_QNAME.getQualifiedName()); super.startElement(uri, localname, qName, newAttributes); writeFileItem(pipelineContext, context.bodyFileItem, getContentHandler()); super.endElement(uri, localname, qName); super.endPrefixMapping(XMLConstants.XSD_PREFIX); super.endPrefixMapping(XMLConstants.XSI_PREFIX); } else { super.startElement(uri, localname, qName, attributes); } } public void endElement(String uri, String localname, String qName) throws SAXException { if (REQUEST_PRIVATE_NAMESPACE_URI.equals(uri) || localname.equals("body") && uri.equals("")) { // Ignore end element } else { super.endElement(uri, localname, qName); } } })); } catch (TransformerException e) { throw new OXFException(e); } } protected boolean fillOutState(PipelineContext pipelineContext, DigestState digestState) { State state = (State) digestState; if (state.requestDocument == null) { // Read config document Document config = readCacheInputAsDOM4J(pipelineContext, INPUT_CONFIG); // Try to find stream-type attribute QName streamTypeQName = Dom4jUtils.extractAttributeValueQName(config.getRootElement(), "stream-type"); if (streamTypeQName != null && !(streamTypeQName.equals(XMLConstants.XS_BASE64BINARY_QNAME) || streamTypeQName.equals(XMLConstants.XS_ANYURI_QNAME))) throw new OXFException("Invalid value for stream-type attribute: " + streamTypeQName.getQualifiedName()); state.requestedStreamType = streamTypeQName; // Read and store request state.requestDocument = readRequestAsDOM4J(pipelineContext, config); // Check if the body was requestd state.bodyRequested = XPathUtils.selectSingleNode(state.requestDocument, "/*/body") != null; } Context context = getContext(pipelineContext); return !context.hasUpload && !state.bodyRequested; } protected byte[] computeDigest(PipelineContext pipelineContext, DigestState digestState) { State state = (State) digestState; XMLUtils.DigestContentHandler dch = new XMLUtils.DigestContentHandler("MD5"); try { Transformer identityTransformer = TransformerUtils.getIdentityTransformer(); identityTransformer.transform(new DocumentSource(state.requestDocument), new SAXResult(dch)); } catch (TransformerException e) { throw new OXFException(e); } return dch.getResult(); } }; addOutput(name, output); return output; } | 54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/c1c221e5a3175bfc6f89626217996fa94bce4e37/RequestGenerator.java/buggy/src/java/org/orbeon/oxf/processor/generator/RequestGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15476,
1447,
752,
1447,
12,
780,
508,
13,
288,
3639,
15476,
1447,
876,
273,
394,
15476,
2828,
18,
9568,
8319,
1447,
2828,
12,
588,
797,
9334,
508,
13,
288,
5411,
1071,
918,
855,
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,
1071,
15476,
1447,
752,
1447,
12,
780,
508,
13,
288,
3639,
15476,
1447,
876,
273,
394,
15476,
2828,
18,
9568,
8319,
1447,
2828,
12,
588,
797,
9334,
508,
13,
288,
5411,
1071,
918,
855,
2... |
if (BoolUtils.isTrue(condition)) { | if(BoolUtils.isTrue(condition)){ | private static boolean whileStatementMustRecurse(PsiWhileStatement whileStatement, PsiMethod method) { final PsiExpression condition = whileStatement.getCondition(); if (expressionMustRecurse(condition, method)) { return true; } if (BoolUtils.isTrue(condition)) { final PsiStatement body = whileStatement.getBody(); return statementMustRecurse(body, method); } return false; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/5d60670c94763ec336e534e66ee87700ab0d35be/RecursionUtils.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/RecursionUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
1323,
3406,
10136,
426,
17682,
12,
52,
7722,
15151,
3406,
1323,
3406,
16,
453,
7722,
1305,
707,
13,
288,
3639,
727,
453,
7722,
2300,
2269,
273,
1323,
3406,
18,
588,
3418,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
1323,
3406,
10136,
426,
17682,
12,
52,
7722,
15151,
3406,
1323,
3406,
16,
453,
7722,
1305,
707,
13,
288,
3639,
727,
453,
7722,
2300,
2269,
273,
1323,
3406,
18,
588,
3418,... |
if(debug) { System.out.println("Press key to start"); System.in.read(); } | public static void main(String[] args) { MulticastSocket sock=null; Receiver receiver=null; int num_msgs=1000; byte[] buf; DatagramPacket packet; InetAddress group_addr=null; int[][] matrix; boolean jg=false; // use JGroups channel instead of UDP MulticastSocket JChannel channel=null; String props=null, loopback_props; String group_name="SpeedTest-Group"; Message send_msg; boolean debug=false; Debugger debugger=null; long sleep_time=1; // sleep in msecs between msg sends boolean busy_sleep=false; boolean yield=false; int num_yields=0; boolean loopback=false; props="UDP(mcast_addr=224.0.0.36;mcast_port=55566;ip_ttl=32;" + "ucast_send_buf_size=32000;ucast_recv_buf_size=64000;" + "mcast_send_buf_size=32000;mcast_recv_buf_size=64000):" + "PING(timeout=2000;num_initial_members=3):" + "MERGE2(min_interval=5000;max_interval=10000):" + "FD_SOCK:" + "VERIFY_SUSPECT(timeout=1500):" + "pbcast.NAKACK(max_xmit_size=8192;gc_lag=50;retransmit_timeout=600,800,1200,2400,4800):" + "UNICAST(timeout=1200):" + "pbcast.STABLE(desired_avg_gossip=10000):" + "FRAG(frag_size=8192;down_thread=false;up_thread=false):" +// "PIGGYBACK(max_size=16000;max_wait_time=500):" + "pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;" + "shun=false;print_local_addr=true):" + "pbcast.STATE_TRANSFER"; // "PERF(details=true)"; loopback_props="LOOPBACK:" + "PING(timeout=2000;num_initial_members=3):" + "MERGE2(min_interval=5000;max_interval=10000):" + "FD_SOCK:" + "VERIFY_SUSPECT(timeout=1500):" + "pbcast.NAKACK(gc_lag=50;retransmit_timeout=600,800,1200,2400,4800):" + "UNICAST(timeout=5000):" + "pbcast.STABLE(desired_avg_gossip=20000):" + "FRAG(frag_size=16000;down_thread=false;up_thread=false):" + "pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;" + "shun=false;print_local_addr=true):" + "pbcast.STATE_TRANSFER"; for(int i=0; i < args.length; i++) { if("-help".equals(args[i])) { help(); return; } if("-jg".equals(args[i])) { jg=true; continue; } if("-loopback".equals(args[i])) { loopback=true; props=loopback_props; continue; } if("-props".equals(args[i])) { props=args[++i]; continue; } if("-debug".equals(args[i])) { debug=true; continue; } if("-busy_sleep".equals(args[i])) { busy_sleep=true; continue; } if("-yield".equals(args[i])) { yield=true; num_yields++; continue; } if("-sleep".equals(args[i])) { sleep_time=Long.parseLong(args[++i]); continue; } if("-num_msgs".equals(args[i])) { num_msgs=Integer.parseInt(args[++i]); continue; } help(); return; } System.out.println("jg = " + jg + "\nloopback = " + loopback + "\ndebug = " + debug + "\nsleep = " + sleep_time + "\nbusy_sleep=" + busy_sleep + "\nyield=" + yield + "\nnum_yields=" + num_yields + "\nnum_msgs = " + num_msgs + '\n'); try { matrix=new int[num_msgs][2]; for(int i=0; i < num_msgs; i++) { for(int j=0; j < matrix[i].length; j++) matrix[i][j]=0; } if(jg) { channel=new JChannel(props); channel.connect(group_name); if(debug) { debugger=new Debugger(channel); debugger.start(); } } else { group_addr=InetAddress.getByName("224.0.0.36"); sock=new MulticastSocket(7777); sock.joinGroup(group_addr); } if(debug) { System.out.println("Press key to start"); System.in.read(); } receiver=new Receiver(sock, channel, matrix, jg); receiver.start(); ByteBuffer bb=ByteBuffer.allocate(16); bb.mark(); start=System.currentTimeMillis(); for(int i=0; i < num_msgs; i++) { bb.reset(); bb.putInt(i); buf=(byte[])(bb.array()).clone(); if(jg) { send_msg=new Message(null, null, buf); channel.send(send_msg); } else { packet=new DatagramPacket(buf, buf.length, group_addr, 7777); sock.send(packet); } if(i % 1000 == 0) System.out.println("-- sent " + i); matrix[i][0]=1; if(yield) { for(int k=0; k < num_yields; k++) { Thread.yield(); } } else { if(sleep_time > 0) { sleep(sleep_time, busy_sleep); } } } while(true) { System.in.read(); printMatrix(matrix); } } catch(Exception ex) { System.err.println(ex); } } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/6cf135ab0aec1dba727f94146eb1d03ec797779c/SpeedTest_NIO.java/buggy/tests/other/org/jgroups/tests/SpeedTest_NIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
7778,
12544,
4534,
7313,
33,
2011,
31,
3639,
31020,
5971,
33,
2011,
31,
3639,
509,
818,
67,
27439,
33,
18088,
31,
3639,
1160,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
7778,
12544,
4534,
7313,
33,
2011,
31,
3639,
31020,
5971,
33,
2011,
31,
3639,
509,
818,
67,
27439,
33,
18088,
31,
3639,
1160,
85... | |
triangles_count ++; | triangleCount ++; | protected final void add_triangle(int a, int b, int c) { if (triangles_count == triangles.length) { int temp[][] = new int[triangles_count<<1][TRIANGLE_FIELD_COUNT]; System.arraycopy(triangles, 0, temp, 0, triangles_count); triangles = temp; message(CHATTER, "allocating more triangles " + triangles.length); } triangles[triangles_count][VA] = a; triangles[triangles_count][VB] = b; triangles[triangles_count][VC] = c; if (textureImage == null) { triangles[triangles_count][TEX] = -1; } else { triangles[triangles_count][TEX] = texture_index; } triangles[triangles_count][TI] = shape_index; triangles_count ++; return; } | 8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/c1a67b1b386b4fff8189eeee8e30d06016746dba/PGraphics.java/clean/core/PGraphics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
527,
67,
16857,
4341,
12,
474,
279,
16,
509,
324,
16,
509,
276,
13,
288,
565,
309,
261,
16857,
12356,
67,
1883,
422,
19959,
18,
2469,
13,
288,
1377,
509,
1906,
63,
636... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
527,
67,
16857,
4341,
12,
474,
279,
16,
509,
324,
16,
509,
276,
13,
288,
565,
309,
261,
16857,
12356,
67,
1883,
422,
19959,
18,
2469,
13,
288,
1377,
509,
1906,
63,
636... |
buff.append( "MegaMek version " ) | buff.append( Messages.getString("CommonAboutDialog.version") ) | public CommonAboutDialog( Frame frame ) { // Construct the superclass. super( frame, "About MegaMek" ); // Make sure we close at the appropriate times. this.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { quit(); } } ); // Make a splash image panel. BufferedPanel panTitle = new BufferedPanel(); Image imgSplash = CommonAboutDialog.getTitleImage( frame ); BackGroundDrawer bgdTitle = new BackGroundDrawer( imgSplash ); panTitle.addBgDrawer(bgdTitle); panTitle.setPreferredSize( imgSplash.getWidth(null), imgSplash.getHeight(null) ); // Make a label containing the version of this app. StringBuffer buff = new StringBuffer(); buff.append( "MegaMek version " ) .append( megamek.MegaMek.VERSION ) .append( "\nTimestamp " ) .append( new Date(megamek.MegaMek.TIMESTAMP).toString() ) .append( "\nJava Vendor " ) .append( System.getProperty("java.vendor") ) .append( "\nJava Version " ) .append( System.getProperty("java.version") ); AdvancedLabel lblVersion = new AdvancedLabel( buff.toString() ); // Create the copyright. buff = new StringBuffer(); buff.append( "MegaMek Copyright 2000,2001,2002,2003,2004,2005 Ben Mazur\n\n" ) .append( "BattleTech, BattleMech, 'Mech, and MechWarrior are registered trademarks of\n" ) .append( "WizKids, LLC. Original BattleTech material Copyright by WizKids, LLC.\n" ) .append( "All Rights Reserved. Used without permission." ); AdvancedLabel lblCopyright = new AdvancedLabel( buff.toString() ); // Give us some "about" text. buff = new StringBuffer(); buff.append( "MegaMek is community effort to implement the Classic BattleTech rules in an\n" ) .append( "operating-system-agnostic, network enabled manner. MegaMek is distributed\n" ) .append( "under the GNU General Public License. A copy of the liscense should be avail-\n" ) .append( "able in the installation directory. If you've enjoyed playing MegaMek, please share\n" ) .append( "it with a friend. If you'd like to improve it, please be aware that your contributions\n" ) .append( "must ALSO be distributed under the GNU General Public License, Version 2 or later.\n" ); AdvancedLabel lblAbout = new AdvancedLabel( buff.toString() ); // Add a "Close" button. Button butClose = new Button( "Close" ); butClose.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent event ) { quit(); } } ); // Layout GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); this.setLayout(gridbag); c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.NORTH; c.weightx = 0.0; c.weighty = 0.0; c.insets = new Insets(4, 4, 1, 1); c.gridwidth = GridBagConstraints.REMAINDER; c.ipadx = 10; c.ipady = 5; c.gridx = 0; c.gridy = 0; this.add(panTitle, c); c.weighty = 1.0; c.fill = GridBagConstraints.HORIZONTAL; c.gridy = 1; this.add(lblVersion, c); c.gridy = 2; this.add(lblCopyright, c); c.gridy = 3; this.add(lblAbout, c); c.gridy = 4; this.add(butClose, c); // Place this dialog on middle of screen. Dimension screenSize = frame.getToolkit().getScreenSize(); this.pack(); this.setLocation( screenSize.width / 2 - this.getSize().width / 2, screenSize.height / 2 - this.getSize().height / 2); // Stop allowing resizing. this.setResizable( false ); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c9f0f1d2e5ceb1c577004355102dc4109baf3a49/CommonAboutDialog.java/buggy/megamek/src/megamek/client/ui/AWT/CommonAboutDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5658,
24813,
6353,
12,
8058,
2623,
262,
288,
3639,
368,
14291,
326,
12098,
18,
3639,
2240,
12,
2623,
16,
315,
24813,
490,
11061,
49,
3839,
6,
11272,
3639,
368,
4344,
3071,
732,
1746... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5658,
24813,
6353,
12,
8058,
2623,
262,
288,
3639,
368,
14291,
326,
12098,
18,
3639,
2240,
12,
2623,
16,
315,
24813,
490,
11061,
49,
3839,
6,
11272,
3639,
368,
4344,
3071,
732,
1746... |
Thread.sleep(SLEEP_DURATION); | Thread.sleep(TIME_PULSE_PAUSE); | public void run() { keepRunning = true; // Keep running until told not to while (keepRunning) { try { Thread.sleep(SLEEP_DURATION); } catch (InterruptedException e) {} try { //Increment the uptimer uptimer.addTime(SLEEP_DURATION); // Get the time pulse length in millisols. double timePulse = getTimePulse(); // Send simulation a clock pulse representing the time pulse length (in millisols). Simulation.instance().clockPulse(timePulse); // Add time pulse length to Earth and Mars clocks. earthTime.addTime(MarsClock.convertMillisolsToSeconds(timePulse)); marsTime.addTime(timePulse); } catch (Exception e) { System.out.println(e.getMessage()); stop(); } } } | 49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/f24471cbb89ab0b98010a7197a879ea07168801a/MasterClock.java/buggy/org/mars_sim/msp/simulation/time/MasterClock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
3455,
7051,
273,
638,
31,
3639,
368,
10498,
3549,
3180,
268,
1673,
486,
358,
3639,
1323,
261,
10102,
7051,
13,
288,
5411,
775,
288,
7734,
4884,
18,
19607... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
3639,
3455,
7051,
273,
638,
31,
3639,
368,
10498,
3549,
3180,
268,
1673,
486,
358,
3639,
1323,
261,
10102,
7051,
13,
288,
5411,
775,
288,
7734,
4884,
18,
19607... |
asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); | asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffset()); | private final boolean genMagic (VM_MethodReference m) { VM_Atom methodName = m.getName(); if (m.getType() == VM_TypeReference.Address) { // Address magic VM_TypeReference[] types = m.getParameterTypes(); // Loads all take the form: // ..., Address, [Offset] -> ..., Value if (methodName == VM_MagicNames.loadAddress || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareObjectReference || methodName == VM_MagicNames.loadWord || methodName == VM_MagicNames.loadObjectReference || methodName == VM_MagicNames.prepareWord || methodName == VM_MagicNames.loadInt || methodName == VM_MagicNames.prepareInt || methodName == VM_MagicNames.loadFloat) { if (types.length == 0) { // No offset asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // object ref asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] } return true; } if (methodName == VM_MagicNames.loadByte) { if (types.length == 0) { // No offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegInd_Byte(T0, T0) ; asm.emitPUSH_Reg (T0); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, 0); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); } return true; } if (methodName == VM_MagicNames.loadShort || methodName == VM_MagicNames.loadChar) { if (types.length == 0) { // No offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegInd_Word(T0, T0); asm.emitPUSH_Reg (T0); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegIdx_Word(T0, T0, S0, asm.BYTE, 0); // load and zero extend word [T0+S0] asm.emitPUSH_Reg (T0); } return true; } if (methodName == VM_MagicNames.loadLong || methodName == VM_MagicNames.loadDouble) { if (types.length == 0) { // No offset throw new RuntimeException("Magic not implemented"); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 4); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] } return true; } // Stores all take the form: // ..., Address, [Offset], Value -> ... if (methodName == VM_MagicNames.store) { // Always at least one parameter to a store. // First parameter is the type to be stored. VM_TypeReference storeType = types[0]; if (storeType == VM_TypeReference.Int || storeType == VM_TypeReference.Address || storeType == VM_TypeReference.ObjectReference || storeType == VM_TypeReference.Word || storeType == VM_TypeReference.Float) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // address asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 } return true; } if (storeType == VM_TypeReference.Byte) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegInd_Reg_Byte(T1, T0); } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (byte) T0 } return true; } if (storeType == VM_TypeReference.Short || storeType == VM_TypeReference.Char) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegInd_Reg_Word(T1, T0); } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegIdx_Reg_Word(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (word) T0 } return true; } if (storeType == VM_TypeReference.Double || storeType == VM_TypeReference.Long) { if (types.length == 1) { // No offset throw new RuntimeException("Magic not implemented"); } else { // Store at offset asm.emitMOV_Reg_RegDisp(T0, SP, +4); // value high asm.emitMOV_Reg_RegInd (S0, SP); // offset asm.emitMOV_Reg_RegDisp(T1, SP, +12); // base asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, +8); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 4, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations } return true; } } else if (methodName == VM_MagicNames.attempt) { // All attempts are similar 32 bit values. if (types.length == 3) { // Offset passed asm.emitPOP_Reg (S0); // S0 = offset } asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPX if (types.length == 3) { asm.emitADD_Reg_RegInd(S0, SP); // S0 += base } else { // No offset asm.emitMOV_Reg_RegInd(S0, SP); // S0 = base } asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); return true; } } if (methodName == VM_MagicNames.attemptInt || methodName == VM_MagicNames.attemptObject || methodName == VM_MagicNames.attemptAddress || methodName == VM_MagicNames.attemptWord) { // attempt gets called with four arguments: base, offset, oldVal, newVal // returns ([base+offset] == oldVal) // if ([base+offset] == oldVal) [base+offset] := newVal // (operation on memory is atomic) asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPXCNG asm.emitPOP_Reg (S0); // S0 = offset asm.emitADD_Reg_RegInd(S0, SP); // S0 += base asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); return true; } if (methodName == VM_MagicNames.invokeMain) { // invokeMain gets "called" with two arguments: // String[] mainArgs // the arguments to the main method // INSTRUCTION[] mainCode // the code for the main method asm.emitPOP_Reg (S0); // genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_Reg(S0); // branches to mainCode with mainArgs on the stack return true; } if (methodName == VM_MagicNames.saveThreadState) { int offset = VM_Entrypoints.saveThreadStateInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.threadSwitch) { int offset = VM_Entrypoints.threadSwitchInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(2); // pass 2 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.restoreHardwareExceptionState) { int offset = VM_Entrypoints.restoreHardwareExceptionStateInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeClassInitializer) { asm.emitPOP_Reg (S0); asm.emitCALL_Reg(S0); // call address just popped return true; } if (m.getType() == VM_TypeReference.SysCall) { VM_TypeReference[] args = m.getParameterTypes(); VM_TypeReference rtype = m.getReturnType(); int offsetToJavaArg = 3*WORDSIZE; // the three regs saved in (2) int paramBytes = 0; // (1) save three RVM nonvolatile/special registers // we don't have to save EBP: the callee will // treat it as a framepointer and save/restore // it for us. asm.emitPUSH_Reg(EBX); asm.emitPUSH_Reg(ESI); asm.emitPUSH_Reg(EDI); // (2) Push args to target function (reversed) for (int i=args.length-1; i>=0; i--) { VM_TypeReference arg = args[i]; if (arg.isLongType() || arg.isDoubleType()) { asm.emitPUSH_RegDisp(SP, offsetToJavaArg + 4); asm.emitPUSH_RegDisp(SP, offsetToJavaArg + 4); offsetToJavaArg += 16; paramBytes += 8; } else { asm.emitPUSH_RegDisp(SP, offsetToJavaArg); offsetToJavaArg += 8; paramBytes += 4; } } // (3) invoke target function VM_Field ip = VM_Entrypoints.getSysCallField(m.getName().toString()); asm.emitMOV_Reg_RegDisp(S0, JTOC, VM_Entrypoints.the_boot_recordField.getOffsetAsInt()); asm.emitCALL_RegDisp(S0, ip.getOffsetAsInt()); // (4) pop space for arguments asm.emitADD_Reg_Imm(SP, paramBytes); // (5) restore RVM registers asm.emitPOP_Reg(EDI); asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); // (6) pop expression stack asm.emitADD_Reg_Imm(SP, paramBytes); // (7) push return value if (rtype.isLongType()) { asm.emitPUSH_Reg(T1); asm.emitPUSH_Reg(T0); } else if (rtype.isDoubleType()) { asm.emitSUB_Reg_Imm(SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); } else if (rtype.isFloatType()) { asm.emitSUB_Reg_Imm(SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); } else if (!rtype.isVoidType()) { asm.emitPUSH_Reg(T0); } return true; } if (methodName == VM_MagicNames.getFramePointer) { asm.emitLEA_Reg_RegDisp(S0, SP, fp2spOffset(0)); asm.emitPUSH_Reg (S0); return true; } if (methodName == VM_MagicNames.getCallerFramePointer) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, STACKFRAME_FRAME_POINTER_OFFSET); // Caller FP return true; } if (methodName == VM_MagicNames.setCallerFramePointer) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, STACKFRAME_FRAME_POINTER_OFFSET, T0); // [S0+SFPO] <- T0 return true; } if (methodName == VM_MagicNames.getCompiledMethodID) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, STACKFRAME_METHOD_ID_OFFSET); // Callee CMID return true; } if (methodName == VM_MagicNames.setCompiledMethodID) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, STACKFRAME_METHOD_ID_OFFSET, T0); // [S0+SMIO] <- T0 return true; } if (methodName == VM_MagicNames.getReturnAddressLocation) { asm.emitPOP_Reg(T0); // Callee FP asm.emitADD_Reg_Imm(T0, STACKFRAME_RETURN_ADDRESS_OFFSET); // location containing callee return address asm.emitPUSH_Reg(T0); // Callee return address return true; } if (methodName == VM_MagicNames.getTocPointer || methodName == VM_MagicNames.getJTOC ) { asm.emitPUSH_Reg(JTOC); return true; } // get the processor register (PR) if (methodName == VM_MagicNames.getProcessorRegister) { asm.emitPUSH_Reg(PR); return true; } // set the processor register (PR) if (methodName == VM_MagicNames.setProcessorRegister) { asm.emitPOP_Reg(PR); return true; } // Get the value in ESI if (methodName == VM_MagicNames.getESIAsProcessor) { asm.emitPUSH_Reg(ESI); return true; } // Set the value in ESI if (methodName == VM_MagicNames.setESIAsProcessor) { asm.emitPOP_Reg(ESI); return true; } if (methodName == VM_MagicNames.getIntAtOffset || methodName == VM_MagicNames.getWordAtOffset || methodName == VM_MagicNames.getObjectAtOffset || methodName == VM_MagicNames.getObjectArrayAtOffset || methodName == VM_MagicNames.prepareInt || methodName == VM_MagicNames.prepareObject || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareWord) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.getByteAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, 0); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.getCharAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOVZX_Reg_RegIdx_Word(T0, T0, S0, asm.BYTE, 0); // load and zero extend char [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.setIntAtOffset || methodName == VM_MagicNames.setWordAtOffset || methodName == VM_MagicNames.setObjectAtOffset ) { if (m.getParameterTypes().length == 4) { // discard locationMetadata parameter asm.emitPOP_Reg(T0); // locationMetadata, not needed by baseline compiler. } asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 return true; } if (methodName == VM_MagicNames.setByteAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (byte) T0 return true; } if (methodName == VM_MagicNames.setCharAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Word(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (char) T0 return true; } if (methodName == VM_MagicNames.getLongAtOffset || methodName == VM_MagicNames.getDoubleAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 4); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.setLongAtOffset || methodName == VM_MagicNames.setDoubleAtOffset) { asm.emitMOV_Reg_RegInd (T0, SP); // value high asm.emitMOV_Reg_RegDisp(S0, SP, +8 ); // offset asm.emitMOV_Reg_RegDisp(T1, SP, +12); // obj ref asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, +4 ); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 4, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations return true; } if (methodName == VM_MagicNames.addressArrayCreate) { // no resolution problem possible. emit_resolved_newarray(m.getType().resolve().asArray()); return true; } if (methodName == VM_MagicNames.addressArrayLength) { emit_arraylength(); // argument order already correct return true; } if (methodName == VM_MagicNames.addressArrayGet) { if (m.getType() == VM_TypeReference.CodeArray) { emit_baload(); } else { if (VM.BuildFor32Addr) { emit_iaload(); } else if (VM.BuildFor64Addr) { emit_laload(); } else { VM._assert(NOT_REACHED); } } return true; } if (methodName == VM_MagicNames.addressArraySet) { if (m.getType() == VM_TypeReference.CodeArray) { emit_bastore(); } else { if (VM.BuildFor32Addr) { emit_iastore(); } else if (VM.BuildFor64Addr) { VM._assert(false); // not implemented } else { VM._assert(NOT_REACHED); } } return true; } if (methodName == VM_MagicNames.getMemoryInt || methodName == VM_MagicNames.getMemoryWord || methodName == VM_MagicNames.getMemoryAddress) { asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] return true; } if (methodName == VM_MagicNames.setMemoryInt || methodName == VM_MagicNames.setMemoryWord || methodName == VM_MagicNames.setMemoryAddress) { if (m.getParameterTypes().length == 3) { // discard locationMetadata parameter asm.emitPOP_Reg(T0); // locationMetadata, not needed by baseline compiler. } asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 return true; } if (methodName == VM_MagicNames.objectAsAddress || methodName == VM_MagicNames.addressAsByteArray || methodName == VM_MagicNames.addressAsIntArray || methodName == VM_MagicNames.addressAsObject || methodName == VM_MagicNames.addressAsObjectArray || methodName == VM_MagicNames.addressAsType || methodName == VM_MagicNames.objectAsType || methodName == VM_MagicNames.objectAsShortArray || methodName == VM_MagicNames.objectAsByteArray || methodName == VM_MagicNames.objectAsIntArray || methodName == VM_MagicNames.addressAsThread || methodName == VM_MagicNames.objectAsThread || methodName == VM_MagicNames.objectAsProcessor || methodName == VM_MagicNames.threadAsCollectorThread || methodName == VM_MagicNames.addressAsRegisters || methodName == VM_MagicNames.addressAsStack || methodName == VM_MagicNames.floatAsIntBits || methodName == VM_MagicNames.intBitsAsFloat || methodName == VM_MagicNames.doubleAsLongBits || methodName == VM_MagicNames.longBitsAsDouble) { // no-op (a type change, not a representation change) return true; } // code for VM_Type VM_Magic.getObjectType(Object object) if (methodName == VM_MagicNames.getObjectType) { asm.emitPOP_Reg (T0); // object ref VM_ObjectModel.baselineEmitLoadTIB(asm,S0,T0); asm.emitPUSH_RegDisp(S0, TIB_TYPE_INDEX<<LG_WORDSIZE); // push VM_Type slot of TIB return true; } if (methodName == VM_MagicNames.getArrayLength) { asm.emitPOP_Reg(T0); // object ref asm.emitPUSH_RegDisp(T0, VM_ObjectModel.getArrayLengthOffset().toInt()); return true; } if (methodName == VM_MagicNames.sync) { // nothing required on IA32 return true; } if (methodName == VM_MagicNames.isync) { // nothing required on IA32 return true; } // baseline compiled invocation only: all paramaters on the stack // hi mem // Code // GPRs // FPRs // Spills // low-mem if (methodName == VM_MagicNames.invokeMethodReturningVoid) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeMethodReturningInt) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningLong) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); // high half asm.emitPUSH_Reg(T1); // low half return true; } if (methodName == VM_MagicNames.invokeMethodReturningFloat) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningDouble) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningObject) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } // baseline invocation // one paramater, on the stack -- actual code if (methodName == VM_MagicNames.dynamicBridgeTo) { if (VM.VerifyAssertions) VM._assert(klass.isDynamicBridge()); // save the branch address for later asm.emitPOP_Reg (S0); // S0<-code address asm.emitADD_Reg_Imm(SP, fp2spOffset(0) - 4); // just popped 4 bytes above. // restore FPU state asm.emitFRSTOR_RegDisp(SP, FPU_SAVE_OFFSET); // restore GPRs asm.emitMOV_Reg_RegDisp (T0, SP, T0_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (T1, SP, T1_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); // pop frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // FP<-previous FP // branch asm.emitJMP_Reg (S0); return true; } if (methodName == VM_MagicNames.returnToNewStack) { // SP gets frame pointer for new stack asm.emitPOP_Reg (SP); // restore nonvolatile registers asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); // discard current stack frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // return to caller- pop parameters from stack asm.emitRET_Imm(parameterWords << LG_WORDSIZE); return true; } if (methodName == VM_MagicNames.roundToZero) { // Store the FPU Control Word to a JTOC slot asm.emitFNSTCW_RegDisp(JTOC, VM_Entrypoints.FPUControlWordField.getOffsetAsInt()); // Set the bits in the status word that control round to zero. // Note that we use a 32-bit OR, even though we only care about the // low-order 16 bits asm.emitOR_RegDisp_Imm(JTOC,VM_Entrypoints.FPUControlWordField.getOffsetAsInt(), 0x00000c00); // Now store the result back into the FPU Control Word asm.emitFLDCW_RegDisp(JTOC,VM_Entrypoints.FPUControlWordField.getOffsetAsInt()); return true; } if (methodName == VM_MagicNames.clearFloatingPointState) { // Clear the hardware floating-point state asm.emitFNINIT(); return true; } if (methodName == VM_MagicNames.getTimeBase) { asm.emitRDTSC(); // read timestamp counter instruction asm.emitPUSH_Reg(EDX); // upper 32 bits asm.emitPUSH_Reg(EAX); // lower 32 bits return true; } if (methodName == VM_MagicNames.wordFromInt || methodName == VM_MagicNames.wordFromObject || methodName == VM_MagicNames.wordFromIntZeroExtend || methodName == VM_MagicNames.wordFromIntSignExtend || methodName == VM_MagicNames.wordToInt || methodName == VM_MagicNames.wordToAddress || methodName == VM_MagicNames.wordToOffset || methodName == VM_MagicNames.wordToObject || methodName == VM_MagicNames.wordToObjectReference || methodName == VM_MagicNames.wordToExtent || methodName == VM_MagicNames.wordToWord) { if (VM.BuildFor32Addr) return true; // no-op for 32-bit if (VM.VerifyAssertions) VM._assert(false); } if (methodName == VM_MagicNames.wordToLong) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg(T0); asm.emitPUSH_Imm(0); // upper 32 bits asm.emitPUSH_Reg(T0); // lower 32 bits return true; } // else fill unused stackslot if (VM.VerifyAssertions) VM._assert(false); } if (methodName == VM_MagicNames.wordAnd) { asm.emitPOP_Reg(T0); asm.emitAND_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordOr) { asm.emitPOP_Reg(T0); asm.emitOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordXor) { asm.emitPOP_Reg(T0); asm.emitXOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordNot) { asm.emitNOT_RegInd (SP); return true; } if (methodName == VM_MagicNames.wordAdd) { asm.emitPOP_Reg(T0); asm.emitADD_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordSub || methodName == VM_MagicNames.wordDiff) { asm.emitPOP_Reg(T0); asm.emitSUB_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordZero || methodName == VM_MagicNames.wordNull) { asm.emitPUSH_Imm(0); return true; } if (methodName == VM_MagicNames.wordOne) { asm.emitPUSH_Imm(1); return true; } if (methodName == VM_MagicNames.wordMax) { asm.emitPUSH_Imm(-1); return true; } if (methodName == VM_MagicNames.wordLT) { generateAddrComparison(asm.LLT); return true; } if (methodName == VM_MagicNames.wordLE) { generateAddrComparison(asm.LLE); return true; } if (methodName == VM_MagicNames.wordGT) { generateAddrComparison(asm.LGT); return true; } if (methodName == VM_MagicNames.wordGE) { generateAddrComparison(asm.LGE); return true; } if (methodName == VM_MagicNames.wordsLT) { generateAddrComparison(asm.LT); return true; } if (methodName == VM_MagicNames.wordsLE) { generateAddrComparison(asm.LE); return true; } if (methodName == VM_MagicNames.wordsGT) { generateAddrComparison(asm.GT); return true; } if (methodName == VM_MagicNames.wordsGE) { generateAddrComparison(asm.GE); return true; } if (methodName == VM_MagicNames.wordEQ) { generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordNE) { generateAddrComparison(asm.NE); return true; } if (methodName == VM_MagicNames.wordIsZero) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsNull) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsMax) { asm.emitPUSH_Imm(-1); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordLsh) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg(ECX); asm.emitSHL_RegInd_Reg(SP, ECX); } else VM._assert(false); return true; } if (methodName == VM_MagicNames.wordRshl) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg (ECX); asm.emitSHR_RegInd_Reg (SP, ECX); } else VM._assert(false); return true; } if (methodName == VM_MagicNames.wordRsha) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg (ECX); asm.emitSAR_RegInd_Reg (SP, ECX); } else VM._assert(false); return true; } return false; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c19269673fcdd14e39a92c30e8ccef4cb7ce0402/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
3157,
19289,
261,
7397,
67,
1305,
2404,
312,
13,
288,
565,
8251,
67,
3641,
4918,
273,
312,
18,
17994,
5621,
565,
309,
261,
81,
18,
588,
559,
1435,
422,
8251,
67,
7534,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
1250,
3157,
19289,
261,
7397,
67,
1305,
2404,
312,
13,
288,
565,
8251,
67,
3641,
4918,
273,
312,
18,
17994,
5621,
565,
309,
261,
81,
18,
588,
559,
1435,
422,
8251,
67,
7534,
... |
_actions = new LinkedList(); | _actions = (List) new LinkedList(); | public SmcGuard(SmcAction condition, int line_number) { _condition = condition; _line_number = line_number; _end_state = ""; _actions = new LinkedList(); } | 50995 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50995/ffbfa44caa39de8d579429432aa3aca8bd077721/SmcGuard.java/buggy/net/sf/smc/SmcGuard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9425,
71,
16709,
12,
9552,
71,
1803,
2269,
16,
509,
980,
67,
2696,
13,
565,
288,
3639,
389,
4175,
273,
2269,
31,
3639,
389,
1369,
67,
2696,
273,
980,
67,
2696,
31,
3639,
389,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9425,
71,
16709,
12,
9552,
71,
1803,
2269,
16,
509,
980,
67,
2696,
13,
565,
288,
3639,
389,
4175,
273,
2269,
31,
3639,
389,
1369,
67,
2696,
273,
980,
67,
2696,
31,
3639,
389,
40... |
} else { fScope= SearchEngine.createWorkspaceScope(); fTitleLabel.setText(null); | private void fillViewMenu(IMenuManager viewMenu) { if (!fMultipleSelection) { ToggleStatusLineAction showStatusLineAction= new ToggleStatusLineAction(); showStatusLineAction.setChecked(fSettings.getBoolean(SHOW_STATUS_LINE)); viewMenu.add(showStatusLineAction); } FullyQualifyDuplicatesAction fullyQualifyDuplicatesAction= new FullyQualifyDuplicatesAction(); fullyQualifyDuplicatesAction.setChecked(fSettings.getBoolean(FULLY_QUALIFY_DUPLICATES)); viewMenu.add(fullyQualifyDuplicatesAction); if (fScope == null) { fFilterActionGroup= new WorkingSetFilterActionGroup(getShell(), JavaPlugin.getActivePage(), new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { IWorkingSet ws= (IWorkingSet)event.getNewValue(); if (ws == null) { fScope= SearchEngine.createWorkspaceScope(); fTitleLabel.setText(null); } else { fScope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(ws, true); fTitleLabel.setText(ws.getLabel()); } fViewer.setSearchScope(fScope, true); } }); String setting= fSettings.get(WORKINGS_SET_SETTINGS); if (setting != null) { try { IMemento memento= XMLMemento.createReadRoot(new StringReader(setting)); fFilterActionGroup.restoreState(memento); } catch (WorkbenchException e) { } } IWorkingSet ws= fFilterActionGroup.getWorkingSet(); if (ws != null) { fScope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(ws, true); fTitleLabel.setText(ws.getLabel()); } else { fScope= SearchEngine.createWorkspaceScope(); fTitleLabel.setText(null); } fFilterActionGroup.fillViewMenu(viewMenu); } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/a5b01145861cb2aeb54ab3c646cd8e0eb3f361f8/TypeSelectionComponent.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/TypeSelectionComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3636,
1767,
4599,
12,
3445,
2104,
1318,
1476,
4599,
13,
288,
202,
202,
430,
16051,
74,
8438,
6233,
13,
288,
1082,
202,
17986,
1482,
1670,
1803,
2405,
1482,
1670,
1803,
33,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3636,
1767,
4599,
12,
3445,
2104,
1318,
1476,
4599,
13,
288,
202,
202,
430,
16051,
74,
8438,
6233,
13,
288,
1082,
202,
17986,
1482,
1670,
1803,
2405,
1482,
1670,
1803,
33,... | |
super(dn, attrs, null); resetData(); | super(LdapUtil.getAttrString(attrs, Provisioning.A_cn), LdapUtil.getAttrString(attrs, Provisioning.A_zimbraId), LdapUtil.getAttrs(attrs)); mDn = dn; | LdapCos(String dn, Attributes attrs) throws NamingException, ServiceException { super(dn, attrs, null); resetData(); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/3909766becf4a5a2c4e32d431d9fbd071d42944d/LdapCos.java/clean/ZimbraServer/src/java/com/zimbra/cs/account/ldap/LdapCos.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
18053,
39,
538,
12,
780,
8800,
16,
9055,
3422,
13,
1216,
26890,
16,
16489,
288,
3639,
2240,
12,
5176,
16,
3422,
16,
446,
1769,
3639,
2715,
751,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18053,
39,
538,
12,
780,
8800,
16,
9055,
3422,
13,
1216,
26890,
16,
16489,
288,
3639,
2240,
12,
5176,
16,
3422,
16,
446,
1769,
3639,
2715,
751,
5621,
565,
289,
2,
-100,
-100,
-100,
-100... |
public void exploring(int ttl, UniversalUniqueID uuid, P2PService remoteService) { | public void exploring(int ttl, UUID uuid, P2PService remoteService) { | public void exploring(int ttl, UniversalUniqueID uuid, P2PService remoteService) { if (uuid != null) { logger.debug("Exploring message received with #" + uuid); ttl--; } boolean broadcast; try { broadcast = broadcaster(ttl, uuid, remoteService); } catch (P2POldMessageException e) { return; } // This should be register if (this.shouldBeAcquaintance(remoteService)) { this.register(remoteService); try { remoteService.register(this.stubOnThis); } catch (Exception e) { logger.debug("Trouble with registering remote peer", e); this.acquaintanceManager.remove(remoteService); } } else if (broadcast) { // Forwarding the message if (uuid == null) { logger.debug("Generating uuid for exploring message"); uuid = generateUuid(); } this.acquaintances.exploring(ttl, uuid, remoteService); logger.debug("Broadcast exploring message with #" + uuid); uuid = null; } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/e70757232ba0f4b99fe39c97c5d3ec49b554e13e/P2PService.java/clean/src/org/objectweb/proactive/p2p/service/P2PService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
22991,
6053,
12,
474,
6337,
16,
27705,
31118,
3822,
16,
3639,
453,
22,
52,
1179,
2632,
1179,
13,
288,
3639,
309,
261,
7080,
480,
446,
13,
288,
5411,
1194,
18,
4148,
2932,
424... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22991,
6053,
12,
474,
6337,
16,
27705,
31118,
3822,
16,
3639,
453,
22,
52,
1179,
2632,
1179,
13,
288,
3639,
309,
261,
7080,
480,
446,
13,
288,
5411,
1194,
18,
4148,
2932,
424... |
throw new InternalError ("not implemented"); | return textField; | protected JFormattedTextField getFormattedTextField () { throw new InternalError ("not implemented"); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/9e763280cf1369c9681ea91b32ae758840a76dc3/JFormattedTextField.java/buggy/core/src/classpath/javax/javax/swing/JFormattedTextField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
804,
18298,
16157,
15562,
16157,
1832,
565,
288,
1377,
327,
977,
974,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
804,
18298,
16157,
15562,
16157,
1832,
565,
288,
1377,
327,
977,
974,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
res.put("java.vm.version", "0.1.5"); | res.put("java.vm.version", vm.getVersion()); | public static Properties getInitProperties() { final String arch; arch = Unsafe.getCurrentProcessor().getArchitecture().getName(); Unsafe.debug("arch="); Unsafe.debug(arch); final Properties res = new Properties(); res.put("java.version", "1.1.0"); res.put("java.vendor", "JNode.org"); res.put("java.vendor.url", "http://jnode.org"); res.put("java.home", "/"); res.put("java.vm.specification.version", "1.4"); res.put("java.vm.specification.vendor", "JNode.org"); res.put("java.vm.specification.name", "jnode"); res.put("java.vm.version", "0.1.5"); res.put("java.vm.vendor", "JNode.org"); res.put("java.vm.name", "JNode"); res.put("java.class.version", "1.1"); res.put("java.class.path", ""); res.put("java.library.path", ""); res.put("java.io.tmpdir", "/tmp"); res.put("java.compiler", "Internal"); res.put("java.ext.dirs", ""); res.put("os.name", "JNode"); res.put("os.arch", arch); res.put("os.version", "0.1.5"); res.put("file.separator", "/"); res.put("path.separator", ":"); res.put("line.separator", "\n"); res.put("user.name", "System"); res.put("user.home", "/"); res.put("user.dir", "/"); return res; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/06ef01b2121b3c49ebf7112f24742fd8617db518/VmSystem.java/clean/core/src/core/org/jnode/vm/VmSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6183,
26458,
2297,
1435,
288,
3639,
727,
514,
6637,
31,
3639,
6637,
273,
27476,
18,
588,
3935,
5164,
7675,
588,
12269,
18123,
7675,
17994,
5621,
3639,
27476,
18,
4148,
2932,
991,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6183,
26458,
2297,
1435,
288,
3639,
727,
514,
6637,
31,
3639,
6637,
273,
27476,
18,
588,
3935,
5164,
7675,
588,
12269,
18123,
7675,
17994,
5621,
3639,
27476,
18,
4148,
2932,
991,... |
Iterator it = computedCol1.iterator( ); Iterator it2 = computedCol1.iterator( ); | Iterator it = newComputedCol1.iterator( ); Iterator it2 = newComputedCol2.iterator( ); | private boolean isEqualComputedColumns( List computedCol1, List computedCol2 ) { if ( computedCol1 == computedCol2 ) return true; int basicCol = isEqualBasicCol( computedCol1, computedCol2 ); if ( basicCol == B_TRUE ) return true; else if ( basicCol == B_FALSE ) return false; Iterator it = computedCol1.iterator( ); Iterator it2 = computedCol1.iterator( ); while ( it.hasNext( ) ) { IComputedColumn cc = (IComputedColumn) it.next( ); IComputedColumn cc2 = (IComputedColumn) it2.next( ); if ( isEqualComputedCol( cc, cc2 ) == false ) return false; } return true; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/5cf8338ab22c60916ff85ce4985b705cdebeb9e4/DataSourceAndDataSet.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/DataSourceAndDataSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
21614,
17934,
3380,
12,
987,
8470,
914,
21,
16,
987,
8470,
914,
22,
262,
202,
95,
202,
202,
430,
261,
8470,
914,
21,
422,
8470,
914,
22,
262,
1082,
202,
2463,
638,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
21614,
17934,
3380,
12,
987,
8470,
914,
21,
16,
987,
8470,
914,
22,
262,
202,
95,
202,
202,
430,
261,
8470,
914,
21,
422,
8470,
914,
22,
262,
1082,
202,
2463,
638,
31... |
case Id_shift: return jsFunction_shift(cx, thisObj, args); | case Id_shift: return jsFunction_shift(cx, thisObj, args); | public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case Id_constructor: return jsConstructor(cx, scope, args, f, thisObj == null); case Id_toString: return jsFunction_toString(cx, thisObj, args); case Id_toLocaleString: return jsFunction_toLocaleString(cx, thisObj, args); case Id_join: return jsFunction_join(cx, thisObj, args); case Id_reverse: return jsFunction_reverse(cx, thisObj, args); case Id_sort: return jsFunction_sort(cx, thisObj, args, f); case Id_push: return jsFunction_push(cx, thisObj, args); case Id_pop: return jsFunction_pop(cx, thisObj, args); case Id_shift: return jsFunction_shift(cx, thisObj, args); case Id_unshift: return jsFunction_unshift(cx, thisObj, args); case Id_splice: return jsFunction_splice(cx, thisObj, args, f); case Id_concat: return jsFunction_concat(cx, thisObj, args, f); case Id_slice: return jsFunction_slice(cx, thisObj, args); } return super.execMethod(methodId, f, cx, scope, thisObj, args); } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/3db7f50283cb2dd0859494c7e36c278004f2f6a8/NativeArray.java/clean/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
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,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... |
Logger log = getLogger(); if (log.isDebugEnabled()) { log.debug("Enter rollback"); | if (getLogger().isDebugEnabled()) { getLogger().debug("Enter rollback"); | public void rollback() throws CalFacadeException {/* if (exc != null) { // Didn't hear me last time? throw new CalFacadeException(exc); }*/ Logger log = getLogger(); if (log.isDebugEnabled()) { log.debug("Enter rollback"); } try { if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) { if (log.isDebugEnabled()) { log.debug("About to rollback"); } tx.rollback(); } tx = null; } catch (Throwable t) { exc = t; throw new CalFacadeException(t); } } | 50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/4583c936e771c0e3d32d0cbcb448b26a13b84aeb/HibSession.java/clean/calendar3/calCore/src/org/bedework/calcore/hibernate/HibSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
8006,
1435,
1216,
3596,
12467,
503,
288,
20308,
565,
309,
261,
10075,
480,
446,
13,
288,
1377,
368,
21148,
82,
1404,
366,
2091,
1791,
1142,
813,
35,
1377,
604,
394,
3596,
12467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8006,
1435,
1216,
3596,
12467,
503,
288,
20308,
565,
309,
261,
10075,
480,
446,
13,
288,
1377,
368,
21148,
82,
1404,
366,
2091,
1791,
1142,
813,
35,
1377,
604,
394,
3596,
12467... |
authenticate(); | checkAuthenticated(); | public boolean hasEntry( NextInterceptor next, Name name ) throws NamingException { if ( log.isDebugEnabled() ) { log.debug( "Testing if entry name = '" + name.toString() + "' exists"); } authenticate(); return next.hasEntry( name ); } | 17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/9bd2f1d71ad648c8a4ac6c82cbb24d17a857680c/AuthenticationService.java/buggy/core/src/main/java/org/apache/ldap/server/authn/AuthenticationService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
1622,
12,
4804,
10281,
1024,
16,
1770,
508,
262,
1216,
26890,
565,
288,
377,
202,
430,
261,
613,
18,
291,
2829,
1526,
1435,
262,
377,
202,
95,
377,
202,
202,
1330,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
1622,
12,
4804,
10281,
1024,
16,
1770,
508,
262,
1216,
26890,
565,
288,
377,
202,
430,
261,
613,
18,
291,
2829,
1526,
1435,
262,
377,
202,
95,
377,
202,
202,
1330,
18,
... |
assertNull(event.getProperty("prop")); | assertNull(event.getMessage().getProperty("prop")); | public void testProperties() throws Exception { UMOEvent prevEvent; Properties props; UMOMessage msg; UMOEndpoint endpoint; UMOEvent event; // nowhere prevEvent = getTestEvent("payload"); props = new Properties(); msg = new MuleMessage("payload", props); endpoint = getTestEndpoint("Test", UMOEndpoint.ENDPOINT_TYPE_SENDER); props = new Properties(); endpoint.setProperties(props); event = new MuleEvent(msg, endpoint, prevEvent.getComponent(), prevEvent); assertNull(event.getProperty("prop")); // in previous event => previous event prevEvent.setProperty("prop", "value0"); event = new MuleEvent(msg, endpoint, prevEvent.getComponent(), prevEvent); assertEquals("value0", event.getProperty("prop")); // in previous event + endpoint => endpoint //This doesn't apply now as the previous event properties will be the same as the current event props// props = new Properties();// props.put("prop", "value2");// endpoint.setProperties(props);// event = new MuleEvent(msg, endpoint, prevEvent.getComponent(), prevEvent);// assertEquals("value2", event.getProperty("prop")); // in previous event + message => message props = new Properties(); props.put("prop", "value1"); msg = new MuleMessage("payload", props); endpoint = getTestEndpoint("Test", UMOEndpoint.ENDPOINT_TYPE_SENDER); event = new MuleEvent(msg, endpoint, prevEvent.getComponent(), prevEvent); assertEquals("value1", event.getProperty("prop")); // in previous event + endpoint + message => message props = new Properties(); props.put("prop", "value1"); msg = new MuleMessage("payload", props); Properties props2 = new Properties(); props2.put("prop", "value2"); endpoint.setProperties(props2); event = new MuleEvent(msg, endpoint, prevEvent.getComponent(), prevEvent); assertEquals("value1", event.getProperty("prop")); } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/297837b3c5041467650faa66ed8fca8403349da7/MuleEventTestCase.java/clean/src/test/java/org/mule/test/mule/MuleEventTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2297,
1435,
1216,
1185,
565,
288,
3639,
587,
5980,
1133,
2807,
1133,
31,
3639,
6183,
3458,
31,
3639,
587,
5980,
1079,
1234,
31,
3639,
587,
5980,
3293,
2494,
31,
3639,
587... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2297,
1435,
1216,
1185,
565,
288,
3639,
587,
5980,
1133,
2807,
1133,
31,
3639,
6183,
3458,
31,
3639,
587,
5980,
1079,
1234,
31,
3639,
587,
5980,
3293,
2494,
31,
3639,
587... |
e.printStackTrace(); | public static void main(String[] argv) { try { System.out.println(Evaluation.evaluateModel(new VotedPerceptron(), argv)); } catch (Exception e) { e.printStackTrace(); System.out.println(e.getMessage()); } } | 4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/b8b493a195612a9874363bb74e6660d86132fd50/VotedPerceptron.java/clean/weka/classifiers/VotedPerceptron.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
5261,
13,
288,
3639,
775,
288,
1377,
2332,
18,
659,
18,
8222,
12,
13468,
18,
21024,
1488,
12,
2704,
776,
16474,
2173,
311,
6723,
265,
9334,
5261,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
8526,
5261,
13,
288,
3639,
775,
288,
1377,
2332,
18,
659,
18,
8222,
12,
13468,
18,
21024,
1488,
12,
2704,
776,
16474,
2173,
311,
6723,
265,
9334,
5261,
10... | |
throw runtime.newNameError("cannot load Java class " + className); | throw runtime.newNameError("cannot load Java class " + className, className); | public Class loadJavaClass(String className) { try { Class result = primitiveClass(className); if (result == null) { return Class.forName(className, true, javaClassLoader); } return result; } catch (ClassNotFoundException cnfExcptn) { throw runtime.newNameError("cannot load Java class " + className); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/JavaSupport.java/clean/src/org/jruby/javasupport/JavaSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1659,
1262,
5852,
797,
12,
780,
2658,
13,
288,
3639,
775,
288,
5411,
1659,
563,
273,
8225,
797,
12,
12434,
1769,
5411,
309,
261,
2088,
422,
446,
13,
288,
7734,
327,
1659,
18,
1884... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1659,
1262,
5852,
797,
12,
780,
2658,
13,
288,
3639,
775,
288,
5411,
1659,
563,
273,
8225,
797,
12,
12434,
1769,
5411,
309,
261,
2088,
422,
446,
13,
288,
7734,
327,
1659,
18,
1884... |
throw new JMSException("Only primatives are allowed object is:" + object.getClass()); | throw new MessageFormatException("Only primatives are allowed object is:" + object.getClass()); | public void setObject(String string, Object object) throws JMSException { checkPropertyName(string); try { _fieldtable.setObject(string, object); } catch (AMQPInvalidClassException aice) { throw new JMSException("Only primatives are allowed object is:" + object.getClass()); } } | 45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/84a0be01cca60ce41804df6bea36135d711d98dc/JMSPropertyFieldTable.java/clean/qpid/java/common/src/main/java/org/apache/qpid/framing/JMSPropertyFieldTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20530,
12,
780,
533,
16,
1033,
733,
13,
1216,
20343,
565,
288,
3639,
866,
13073,
12,
1080,
1769,
3639,
775,
3639,
288,
5411,
389,
1518,
2121,
18,
542,
921,
12,
1080,
16,
733,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20530,
12,
780,
533,
16,
1033,
733,
13,
1216,
20343,
565,
288,
3639,
866,
13073,
12,
1080,
1769,
3639,
775,
3639,
288,
5411,
389,
1518,
2121,
18,
542,
921,
12,
1080,
16,
733,... |
logger.info("change condition of " + name); | public void enter(String name) { if(getDeconflictHelper() != null) { if(!getDeconflictHelper().isDefenseApplicable(name)) { //logger.info("change condition of " + name); getDeconflictHelper().changeApplicabilityCondition(name); } if(getDeconflictHelper().isOpEnabaled(name)) newState(name, RESTART); } if(getDeconflictHelper() == null) newState(name, RESTART); } | 11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/b49cef399cc9d443e6b19bcb6e75c06acb59d9cc/DefaultRobustnessController.java/clean/mgmt_agent/src/org/cougaar/tools/robustness/ma/controllers/DefaultRobustnessController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1194,
18,
1376,
2932,
3427,
2269,
434,
315,
397,
508,
1769,
1194,
18,
1376,
2932,
3427,
2269,
434,
315,
397,
508,
1769,
1194,
18,
1376,
2932,
3427,
2269,
434,
315,
397,
508,
1769,
1194,
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,
1194,
18,
1376,
2932,
3427,
2269,
434,
315,
397,
508,
1769,
1194,
18,
1376,
2932,
3427,
2269,
434,
315,
397,
508,
1769,
1194,
18,
1376,
2932,
3427,
2269,
434,
315,
397,
508,
1769,
1194,
18,
... | |
targetList = new ArrayList(); | public ManagedBuildInfo(IResource owner) { targetList = new ArrayList(); this.owner = owner; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1661bb802280c66eb06adca1ff4d5b1bdbabccc2/ManagedBuildInfo.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10024,
3116,
966,
12,
45,
1420,
3410,
13,
288,
202,
202,
3299,
682,
273,
394,
2407,
5621,
202,
202,
2211,
18,
8443,
273,
3410,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
10024,
3116,
966,
12,
45,
1420,
3410,
13,
288,
202,
202,
3299,
682,
273,
394,
2407,
5621,
202,
202,
2211,
18,
8443,
273,
3410,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
... | |
log.debug("RESPONSE: " + response.getText()); | if (log.isDebugEnabled()) { log.debug("RESPONSE: " + response.getText()); } | public void doTest(String jspName) throws Exception { WebRequest request = new GetMethodWebRequest(jspName); WebResponse response = runner.getResponse(request); log.debug("RESPONSE: " + response.getText()); WebTable[] tables = response.getTables(); assertEquals("Expected one table in result.", 1, tables.length); assertEquals("Bad number of generated columns.", 4, tables[0].getColumnCount()); } | 7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/3b50c79e3280d9a33c9a06029bc6d0021644bdb0/BasicTableTagTest.java/clean/displaytag/src/test/java/org/displaytag/tags/BasicTableTagTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
4709,
12,
780,
22535,
461,
13,
1216,
1185,
565,
288,
3639,
2999,
691,
590,
273,
394,
968,
1305,
4079,
691,
12,
24926,
461,
1769,
3639,
2999,
1064,
766,
273,
8419,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
4709,
12,
780,
22535,
461,
13,
1216,
1185,
565,
288,
3639,
2999,
691,
590,
273,
394,
968,
1305,
4079,
691,
12,
24926,
461,
1769,
3639,
2999,
1064,
766,
273,
8419,
18,
58... |
removeInclude(includesList.getSelectedRow()); | approve(); | public void actionPerformed(ActionEvent e) { removeInclude(includesList.getSelectedRow()); } | 49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/1640090ea9a0826d35804dd3a906c209348c6d3f/NewConfigDialog.java/clean/modules/vrjuggler/vrjconfig/org/vrjuggler/vrjconfig/ui/NewConfigDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1850,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
540,
288,
5411,
6617,
537,
5621,
540,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1850,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
540,
288,
5411,
6617,
537,
5621,
540,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
generateInFactory( item, content ); | itemGeneration.setModelObject( handle ); itemGeneration.setReportQueries( ( (ExtendedItemDesign) item ) .getQueries( ) ); IRowSet[] rowSets = executeQueries( item ); try { if ( rowSets != null ) { itemGeneration.onRowSets( rowSets ); } if ( itemGeneration.needSerialization( ) ) { ByteArrayOutputStream out = new ByteArrayOutputStream( ); itemGeneration.serialize( out ); generationStatus = out.toByteArray( ); } itemGeneration.finish( ); } catch ( BirtException ex ) { logger.log( Level.SEVERE, ex.getMessage( ), ex ); context.addException( new EngineException( MessageConstants.EXTENDED_ITEM_GENERATION_ERROR, handle .getExtensionName( ) + ( name != null ? " " + name : "" ), ex ) ); } closeQueries( rowSets ); | protected void generateContent( ExtendedItemDesign item, IForeignContent content ) { if ( context.isInFactory( ) ) { generateInFactory( item, content ); } else { loadFromArchive( item, content ); } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c20ca9242b39d9b07a5f33e58e8af1e3a67e4a9b/ExtendedItemExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExtendedItemExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2103,
1350,
12,
14094,
1180,
15478,
761,
16,
1082,
202,
5501,
6147,
1350,
913,
262,
202,
95,
202,
202,
430,
261,
819,
18,
291,
382,
1733,
12,
262,
262,
202,
202,
95,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
1350,
12,
14094,
1180,
15478,
761,
16,
1082,
202,
5501,
6147,
1350,
913,
262,
202,
95,
202,
202,
430,
261,
819,
18,
291,
382,
1733,
12,
262,
262,
202,
202,
95,
1... |
AST __t1488 = _t; | AST __t1489 = _t; | public final void argfunc(AST _t) throws RecognitionException { AST argfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AACBIT: { AST __t1401 = _t; AST tmp344_AST_in = (AST)_t; match(_t,AACBIT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1401; _t = _t.getNextSibling(); break; } case AAMSG: { AST __t1402 = _t; AST tmp345_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1402; _t = _t.getNextSibling(); break; } case ABSOLUTE: { AST __t1403 = _t; AST tmp346_AST_in = (AST)_t; match(_t,ABSOLUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1403; _t = _t.getNextSibling(); break; } case ALIAS: { AST __t1404 = _t; AST tmp347_AST_in = (AST)_t; match(_t,ALIAS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1404; _t = _t.getNextSibling(); break; } case ASC: { AST __t1405 = _t; AST tmp348_AST_in = (AST)_t; match(_t,ASC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1405; _t = _t.getNextSibling(); break; } case BASE64DECODE: { AST __t1406 = _t; AST tmp349_AST_in = (AST)_t; match(_t,BASE64DECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1406; _t = _t.getNextSibling(); break; } case BASE64ENCODE: { AST __t1407 = _t; AST tmp350_AST_in = (AST)_t; match(_t,BASE64ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1407; _t = _t.getNextSibling(); break; } case CANDO: { AST __t1408 = _t; AST tmp351_AST_in = (AST)_t; match(_t,CANDO); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1408; _t = _t.getNextSibling(); break; } case CANQUERY: { AST __t1409 = _t; AST tmp352_AST_in = (AST)_t; match(_t,CANQUERY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1409; _t = _t.getNextSibling(); break; } case CANSET: { AST __t1410 = _t; AST tmp353_AST_in = (AST)_t; match(_t,CANSET); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1410; _t = _t.getNextSibling(); break; } case CAPS: { AST __t1411 = _t; AST tmp354_AST_in = (AST)_t; match(_t,CAPS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1411; _t = _t.getNextSibling(); break; } case CHR: { AST __t1412 = _t; AST tmp355_AST_in = (AST)_t; match(_t,CHR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1412; _t = _t.getNextSibling(); break; } case CODEPAGECONVERT: { AST __t1413 = _t; AST tmp356_AST_in = (AST)_t; match(_t,CODEPAGECONVERT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1413; _t = _t.getNextSibling(); break; } case COLLATE: { AST __t1414 = _t; AST tmp357_AST_in = (AST)_t; match(_t,COLLATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1414; _t = _t.getNextSibling(); break; } case COMPARE: { AST __t1415 = _t; AST tmp358_AST_in = (AST)_t; match(_t,COMPARE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1415; _t = _t.getNextSibling(); break; } case CONNECTED: { AST __t1416 = _t; AST tmp359_AST_in = (AST)_t; match(_t,CONNECTED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1416; _t = _t.getNextSibling(); break; } case COUNTOF: { AST __t1417 = _t; AST tmp360_AST_in = (AST)_t; match(_t,COUNTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1417; _t = _t.getNextSibling(); break; } case CURRENTRESULTROW: { AST __t1418 = _t; AST tmp361_AST_in = (AST)_t; match(_t,CURRENTRESULTROW); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1418; _t = _t.getNextSibling(); break; } case DATE: { AST __t1419 = _t; AST tmp362_AST_in = (AST)_t; match(_t,DATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1419; _t = _t.getNextSibling(); break; } case DATETIME: { AST __t1420 = _t; AST tmp363_AST_in = (AST)_t; match(_t,DATETIME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1420; _t = _t.getNextSibling(); break; } case DATETIMETZ: { AST __t1421 = _t; AST tmp364_AST_in = (AST)_t; match(_t,DATETIMETZ); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1421; _t = _t.getNextSibling(); break; } case DAY: { AST __t1422 = _t; AST tmp365_AST_in = (AST)_t; match(_t,DAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1422; _t = _t.getNextSibling(); break; } case DBCODEPAGE: { AST __t1423 = _t; AST tmp366_AST_in = (AST)_t; match(_t,DBCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1423; _t = _t.getNextSibling(); break; } case DBCOLLATION: { AST __t1424 = _t; AST tmp367_AST_in = (AST)_t; match(_t,DBCOLLATION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1424; _t = _t.getNextSibling(); break; } case DBPARAM: { AST __t1425 = _t; AST tmp368_AST_in = (AST)_t; match(_t,DBPARAM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1425; _t = _t.getNextSibling(); break; } case DBRESTRICTIONS: { AST __t1426 = _t; AST tmp369_AST_in = (AST)_t; match(_t,DBRESTRICTIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1426; _t = _t.getNextSibling(); break; } case DBTASKID: { AST __t1427 = _t; AST tmp370_AST_in = (AST)_t; match(_t,DBTASKID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1427; _t = _t.getNextSibling(); break; } case DBTYPE: { AST __t1428 = _t; AST tmp371_AST_in = (AST)_t; match(_t,DBTYPE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1428; _t = _t.getNextSibling(); break; } case DBVERSION: { AST __t1429 = _t; AST tmp372_AST_in = (AST)_t; match(_t,DBVERSION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1429; _t = _t.getNextSibling(); break; } case DECIMAL: { AST __t1430 = _t; AST tmp373_AST_in = (AST)_t; match(_t,DECIMAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1430; _t = _t.getNextSibling(); break; } case DECRYPT: { AST __t1431 = _t; AST tmp374_AST_in = (AST)_t; match(_t,DECRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1431; _t = _t.getNextSibling(); break; } case DYNAMICNEXTVALUE: { AST __t1432 = _t; AST tmp375_AST_in = (AST)_t; match(_t,DYNAMICNEXTVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1432; _t = _t.getNextSibling(); break; } case ENCODE: { AST __t1433 = _t; AST tmp376_AST_in = (AST)_t; match(_t,ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1433; _t = _t.getNextSibling(); break; } case ENCRYPT: { AST __t1434 = _t; AST tmp377_AST_in = (AST)_t; match(_t,ENCRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1434; _t = _t.getNextSibling(); break; } case EXP: { AST __t1435 = _t; AST tmp378_AST_in = (AST)_t; match(_t,EXP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1435; _t = _t.getNextSibling(); break; } case FILL: { AST __t1436 = _t; AST tmp379_AST_in = (AST)_t; match(_t,FILL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1436; _t = _t.getNextSibling(); break; } case FIRST: { AST __t1437 = _t; AST tmp380_AST_in = (AST)_t; match(_t,FIRST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1437; _t = _t.getNextSibling(); break; } case FIRSTOF: { AST __t1438 = _t; AST tmp381_AST_in = (AST)_t; match(_t,FIRSTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1438; _t = _t.getNextSibling(); break; } case GENERATEPBEKEY: { AST __t1439 = _t; AST tmp382_AST_in = (AST)_t; match(_t,GENERATEPBEKEY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1439; _t = _t.getNextSibling(); break; } case GETBITS: { AST __t1440 = _t; AST tmp383_AST_in = (AST)_t; match(_t,GETBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1440; _t = _t.getNextSibling(); break; } case GETBYTE: { AST __t1441 = _t; AST tmp384_AST_in = (AST)_t; match(_t,GETBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1441; _t = _t.getNextSibling(); break; } case GETBYTEORDER: { AST __t1442 = _t; AST tmp385_AST_in = (AST)_t; match(_t,GETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1442; _t = _t.getNextSibling(); break; } case GETBYTES: { AST __t1443 = _t; AST tmp386_AST_in = (AST)_t; match(_t,GETBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1443; _t = _t.getNextSibling(); break; } case GETCOLLATIONS: { AST __t1444 = _t; AST tmp387_AST_in = (AST)_t; match(_t,GETCOLLATIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1444; _t = _t.getNextSibling(); break; } case GETDOUBLE: { AST __t1445 = _t; AST tmp388_AST_in = (AST)_t; match(_t,GETDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1445; _t = _t.getNextSibling(); break; } case GETFLOAT: { AST __t1446 = _t; AST tmp389_AST_in = (AST)_t; match(_t,GETFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1446; _t = _t.getNextSibling(); break; } case GETLICENSE: { AST __t1447 = _t; AST tmp390_AST_in = (AST)_t; match(_t,GETLICENSE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1447; _t = _t.getNextSibling(); break; } case GETLONG: { AST __t1448 = _t; AST tmp391_AST_in = (AST)_t; match(_t,GETLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1448; _t = _t.getNextSibling(); break; } case GETPOINTERVALUE: { AST __t1449 = _t; AST tmp392_AST_in = (AST)_t; match(_t,GETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1449; _t = _t.getNextSibling(); break; } case GETSHORT: { AST __t1450 = _t; AST tmp393_AST_in = (AST)_t; match(_t,GETSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1450; _t = _t.getNextSibling(); break; } case GETSIZE: { AST __t1451 = _t; AST tmp394_AST_in = (AST)_t; match(_t,GETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1451; _t = _t.getNextSibling(); break; } case GETSTRING: { AST __t1452 = _t; AST tmp395_AST_in = (AST)_t; match(_t,GETSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1452; _t = _t.getNextSibling(); break; } case GETUNSIGNEDSHORT: { AST __t1453 = _t; AST tmp396_AST_in = (AST)_t; match(_t,GETUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1453; _t = _t.getNextSibling(); break; } case HEXDECODE: { AST __t1454 = _t; AST tmp397_AST_in = (AST)_t; match(_t,HEXDECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1454; _t = _t.getNextSibling(); break; } case HEXENCODE: { AST __t1455 = _t; AST tmp398_AST_in = (AST)_t; match(_t,HEXENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1455; _t = _t.getNextSibling(); break; } case INDEX: { AST __t1456 = _t; AST tmp399_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1456; _t = _t.getNextSibling(); break; } case INTEGER: { AST __t1457 = _t; AST tmp400_AST_in = (AST)_t; match(_t,INTEGER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1457; _t = _t.getNextSibling(); break; } case INTERVAL: { AST __t1458 = _t; AST tmp401_AST_in = (AST)_t; match(_t,INTERVAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1458; _t = _t.getNextSibling(); break; } case ISCODEPAGEFIXED: { AST __t1459 = _t; AST tmp402_AST_in = (AST)_t; match(_t,ISCODEPAGEFIXED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1459; _t = _t.getNextSibling(); break; } case ISCOLUMNCODEPAGE: { AST __t1460 = _t; AST tmp403_AST_in = (AST)_t; match(_t,ISCOLUMNCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1460; _t = _t.getNextSibling(); break; } case ISLEADBYTE: { AST __t1461 = _t; AST tmp404_AST_in = (AST)_t; match(_t,ISLEADBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1461; _t = _t.getNextSibling(); break; } case ISODATE: { AST __t1462 = _t; AST tmp405_AST_in = (AST)_t; match(_t,ISODATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1462; _t = _t.getNextSibling(); break; } case KBLABEL: { AST __t1463 = _t; AST tmp406_AST_in = (AST)_t; match(_t,KBLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1463; _t = _t.getNextSibling(); break; } case KEYCODE: { AST __t1464 = _t; AST tmp407_AST_in = (AST)_t; match(_t,KEYCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1464; _t = _t.getNextSibling(); break; } case KEYFUNCTION: { AST __t1465 = _t; AST tmp408_AST_in = (AST)_t; match(_t,KEYFUNCTION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1465; _t = _t.getNextSibling(); break; } case KEYLABEL: { AST __t1466 = _t; AST tmp409_AST_in = (AST)_t; match(_t,KEYLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1466; _t = _t.getNextSibling(); break; } case KEYWORD: { AST __t1467 = _t; AST tmp410_AST_in = (AST)_t; match(_t,KEYWORD); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1467; _t = _t.getNextSibling(); break; } case KEYWORDALL: { AST __t1468 = _t; AST tmp411_AST_in = (AST)_t; match(_t,KEYWORDALL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1468; _t = _t.getNextSibling(); break; } case LAST: { AST __t1469 = _t; AST tmp412_AST_in = (AST)_t; match(_t,LAST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1469; _t = _t.getNextSibling(); break; } case LASTOF: { AST __t1470 = _t; AST tmp413_AST_in = (AST)_t; match(_t,LASTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1470; _t = _t.getNextSibling(); break; } case LC: { AST __t1471 = _t; AST tmp414_AST_in = (AST)_t; match(_t,LC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1471; _t = _t.getNextSibling(); break; } case LEFTTRIM: { AST __t1472 = _t; AST tmp415_AST_in = (AST)_t; match(_t,LEFTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1472; _t = _t.getNextSibling(); break; } case LIBRARY: { AST __t1473 = _t; AST tmp416_AST_in = (AST)_t; match(_t,LIBRARY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1473; _t = _t.getNextSibling(); break; } case LISTEVENTS: { AST __t1474 = _t; AST tmp417_AST_in = (AST)_t; match(_t,LISTEVENTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1474; _t = _t.getNextSibling(); break; } case LISTQUERYATTRS: { AST __t1475 = _t; AST tmp418_AST_in = (AST)_t; match(_t,LISTQUERYATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1475; _t = _t.getNextSibling(); break; } case LISTSETATTRS: { AST __t1476 = _t; AST tmp419_AST_in = (AST)_t; match(_t,LISTSETATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1476; _t = _t.getNextSibling(); break; } case LISTWIDGETS: { AST __t1477 = _t; AST tmp420_AST_in = (AST)_t; match(_t,LISTWIDGETS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1477; _t = _t.getNextSibling(); break; } case LOADPICTURE: { AST __t1478 = _t; AST tmp421_AST_in = (AST)_t; match(_t,LOADPICTURE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1478; _t = _t.getNextSibling(); break; } case LOG: { AST __t1479 = _t; AST tmp422_AST_in = (AST)_t; match(_t,LOG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1479; _t = _t.getNextSibling(); break; } case LOGICAL: { AST __t1480 = _t; AST tmp423_AST_in = (AST)_t; match(_t,LOGICAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1480; _t = _t.getNextSibling(); break; } case LOOKUP: { AST __t1481 = _t; AST tmp424_AST_in = (AST)_t; match(_t,LOOKUP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1481; _t = _t.getNextSibling(); break; } case MAXIMUM: { AST __t1482 = _t; AST tmp425_AST_in = (AST)_t; match(_t,MAXIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1482; _t = _t.getNextSibling(); break; } case MD5DIGEST: { AST __t1483 = _t; AST tmp426_AST_in = (AST)_t; match(_t,MD5DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1483; _t = _t.getNextSibling(); break; } case MEMBER: { AST __t1484 = _t; AST tmp427_AST_in = (AST)_t; match(_t,MEMBER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1484; _t = _t.getNextSibling(); break; } case MINIMUM: { AST __t1485 = _t; AST tmp428_AST_in = (AST)_t; match(_t,MINIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1485; _t = _t.getNextSibling(); break; } case MONTH: { AST __t1486 = _t; AST tmp429_AST_in = (AST)_t; match(_t,MONTH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1486; _t = _t.getNextSibling(); break; } case NORMALIZE: { AST __t1487 = _t; AST tmp430_AST_in = (AST)_t; match(_t,NORMALIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1487; _t = _t.getNextSibling(); break; } case NUMENTRIES: { AST __t1488 = _t; AST tmp431_AST_in = (AST)_t; match(_t,NUMENTRIES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1488; _t = _t.getNextSibling(); break; } case NUMRESULTS: { AST __t1489 = _t; AST tmp432_AST_in = (AST)_t; match(_t,NUMRESULTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1489; _t = _t.getNextSibling(); break; } case OSGETENV: { AST __t1490 = _t; AST tmp433_AST_in = (AST)_t; match(_t,OSGETENV); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1490; _t = _t.getNextSibling(); break; } case PDBNAME: { AST __t1491 = _t; AST tmp434_AST_in = (AST)_t; match(_t,PDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1491; _t = _t.getNextSibling(); break; } case PROGRAMNAME: { AST __t1492 = _t; AST tmp435_AST_in = (AST)_t; match(_t,PROGRAMNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1492; _t = _t.getNextSibling(); break; } case QUERYOFFEND: { AST __t1493 = _t; AST tmp436_AST_in = (AST)_t; match(_t,QUERYOFFEND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1493; _t = _t.getNextSibling(); break; } case QUOTER: { AST __t1494 = _t; AST tmp437_AST_in = (AST)_t; match(_t,QUOTER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1494; _t = _t.getNextSibling(); break; } case RINDEX: { AST __t1495 = _t; AST tmp438_AST_in = (AST)_t; match(_t,RINDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1495; _t = _t.getNextSibling(); break; } case RANDOM: { AST __t1496 = _t; AST tmp439_AST_in = (AST)_t; match(_t,RANDOM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1496; _t = _t.getNextSibling(); break; } case REPLACE: { AST __t1497 = _t; AST tmp440_AST_in = (AST)_t; match(_t,REPLACE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1497; _t = _t.getNextSibling(); break; } case RGBVALUE: { AST __t1498 = _t; AST tmp441_AST_in = (AST)_t; match(_t,RGBVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1498; _t = _t.getNextSibling(); break; } case RIGHTTRIM: { AST __t1499 = _t; AST tmp442_AST_in = (AST)_t; match(_t,RIGHTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1499; _t = _t.getNextSibling(); break; } case ROUND: { AST __t1500 = _t; AST tmp443_AST_in = (AST)_t; match(_t,ROUND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1500; _t = _t.getNextSibling(); break; } case SDBNAME: { AST __t1501 = _t; AST tmp444_AST_in = (AST)_t; match(_t,SDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1501; _t = _t.getNextSibling(); break; } case SEARCH: { AST __t1502 = _t; AST tmp445_AST_in = (AST)_t; match(_t,SEARCH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1502; _t = _t.getNextSibling(); break; } case SETDBCLIENT: { AST __t1503 = _t; AST tmp446_AST_in = (AST)_t; match(_t,SETDBCLIENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1503; _t = _t.getNextSibling(); break; } case SETUSERID: { AST __t1504 = _t; AST tmp447_AST_in = (AST)_t; match(_t,SETUSERID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1504; _t = _t.getNextSibling(); break; } case SHA1DIGEST: { AST __t1505 = _t; AST tmp448_AST_in = (AST)_t; match(_t,SHA1DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1505; _t = _t.getNextSibling(); break; } case SQRT: { AST __t1506 = _t; AST tmp449_AST_in = (AST)_t; match(_t,SQRT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1506; _t = _t.getNextSibling(); break; } case SSLSERVERNAME: { AST __t1507 = _t; AST tmp450_AST_in = (AST)_t; match(_t,SSLSERVERNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1507; _t = _t.getNextSibling(); break; } case STRING: { AST __t1508 = _t; AST tmp451_AST_in = (AST)_t; match(_t,STRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1508; _t = _t.getNextSibling(); break; } case SUBSTITUTE: { AST __t1509 = _t; AST tmp452_AST_in = (AST)_t; match(_t,SUBSTITUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1509; _t = _t.getNextSibling(); break; } case TOROWID: { AST __t1510 = _t; AST tmp453_AST_in = (AST)_t; match(_t,TOROWID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1510; _t = _t.getNextSibling(); break; } case TRIM: { AST __t1511 = _t; AST tmp454_AST_in = (AST)_t; match(_t,TRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1511; _t = _t.getNextSibling(); break; } case TRUNCATE: { AST __t1512 = _t; AST tmp455_AST_in = (AST)_t; match(_t,TRUNCATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1512; _t = _t.getNextSibling(); break; } case TYPEOF: { AST __t1513 = _t; AST tmp456_AST_in = (AST)_t; match(_t,TYPEOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1513; _t = _t.getNextSibling(); break; } case VALIDEVENT: { AST __t1514 = _t; AST tmp457_AST_in = (AST)_t; match(_t,VALIDEVENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1514; _t = _t.getNextSibling(); break; } case VALIDHANDLE: { AST __t1515 = _t; AST tmp458_AST_in = (AST)_t; match(_t,VALIDHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1515; _t = _t.getNextSibling(); break; } case VALIDOBJECT: { AST __t1516 = _t; AST tmp459_AST_in = (AST)_t; match(_t,VALIDOBJECT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1516; _t = _t.getNextSibling(); break; } case WEEKDAY: { AST __t1517 = _t; AST tmp460_AST_in = (AST)_t; match(_t,WEEKDAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1517; _t = _t.getNextSibling(); break; } case WIDGETHANDLE: { AST __t1518 = _t; AST tmp461_AST_in = (AST)_t; match(_t,WIDGETHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1518; _t = _t.getNextSibling(); break; } case YEAR: { AST __t1519 = _t; AST tmp462_AST_in = (AST)_t; match(_t,YEAR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1519; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _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,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... |
reportGenericSchemaError("!!Schema not found in #addAttributeDeclFromAnotherSchema, schema uri : " + uriStr); | reportGenericSchemaError( "no attribute named \"" + name + "\" was defined in schema : " + uriStr); | private int addAttributeDeclFromAnotherSchema( String name, String uriStr, ComplexTypeInfo typeInfo) throws Exception { SchemaGrammar aGrammar = (SchemaGrammar) fGrammarResolver.getGrammar(uriStr); if (uriStr == null || ! (aGrammar instanceof SchemaGrammar) ) { // REVISIT: Localize reportGenericSchemaError("!!Schema not found in #addAttributeDeclFromAnotherSchema, schema uri : " + uriStr); return -1; } Hashtable attrRegistry = aGrammar.getAttributeDeclRegistry(); if (attrRegistry == null) { // REVISIT: Localize reportGenericSchemaError("no attribute was defined in schema : " + uriStr); return -1; } XMLAttributeDecl tempAttrDecl = (XMLAttributeDecl) attrRegistry.get(name); if (tempAttrDecl == null) { // REVISIT: Localize reportGenericSchemaError( "no attribute named \"" + name + "\" was defined in schema : " + uriStr); return -1; } if (typeInfo!= null) { fSchemaGrammar.addAttDef( typeInfo.templateElementIndex, tempAttrDecl.name, tempAttrDecl.type, -1, tempAttrDecl.defaultType, tempAttrDecl.defaultValue, tempAttrDecl.datatypeValidator, tempAttrDecl.list); } return 0; } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/63597ca041f2ace1ab2478457827da4f358e7555/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
10759,
3456,
1265,
37,
24413,
3078,
12,
514,
508,
16,
514,
2003,
1585,
16,
16060,
17305,
23112,
13,
1216,
1185,
288,
3639,
4611,
18576,
279,
18576,
273,
261,
3078,
18576,
13,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
10759,
3456,
1265,
37,
24413,
3078,
12,
514,
508,
16,
514,
2003,
1585,
16,
16060,
17305,
23112,
13,
1216,
1185,
288,
3639,
4611,
18576,
279,
18576,
273,
261,
3078,
18576,
13,
2... |
ASTExpression left = (ASTExpression)expression.getRHSExpression(); | ASTExpression left = (ASTExpression)expression.getLHSExpression(); | protected List getExpressionResultType(IASTExpression expression, ISymbol symbol){ List result = new ArrayList(); TypeInfo info = new TypeInfo(); // types that resolve to void if ((expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_EMPTY) || (expression.getExpressionKind() == IASTExpression.Kind.THROWEXPRESSION)) { info.setType(TypeInfo.t_void); result.add(info); return result; } // types that resolve to int // the relational kinds are 0 and !0 if ((expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_INTEGER_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_INT) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_GREATERTHAN) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_GREATERTHANEQUALTO) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_LESSTHAN) || (expression.getExpressionKind() == IASTExpression.Kind.RELATIONAL_LESSTHANEQUALTO) || (expression.getExpressionKind() == IASTExpression.Kind.EQUALITY_EQUALS) || (expression.getExpressionKind() == IASTExpression.Kind.EQUALITY_NOTEQUALS) || (expression.getExpressionKind() == IASTExpression.Kind.ANDEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.EXCLUSIVEOREXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.INCLUSIVEOREXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.LOGICALANDEXPRESSION) || (expression.getExpressionKind() == IASTExpression.Kind.LOGICALOREXPRESSION) ){ info.setType(TypeInfo.t_int); result.add(info); return result; } // types that resolve to char if( (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_CHAR_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_CHAR)){ info.setType(TypeInfo.t_char); result.add(info); return result; } // types that resolve to float if( (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_FLOAT_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_FLOAT)){ info.setType(TypeInfo.t_float); result.add(info); return result; } // types that resolve to string if (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_STRING_LITERAL){ info.setType(TypeInfo.t_char); info.addPtrOperator(new TypeInfo.PtrOp(TypeInfo.PtrOp.t_pointer)); result.add(info); return result; } // types that resolve to double if( expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_DOUBLE){ info.setType(TypeInfo.t_double); result.add(info); return result; } // types that resolve to wchar if(expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_WCHART){ info.setType(TypeInfo.t_wchar_t); result.add(info); return result; } // types that resolve to bool if( (expression.getExpressionKind() == IASTExpression.Kind.PRIMARY_BOOLEAN_LITERAL) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_BOOL) ) { info.setType(TypeInfo.t_bool); result.add(info); return result; } // short added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_SHORT ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(true, TypeInfo.isShort); result.add(info); return result; } // long added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_LONG ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(true, TypeInfo.isLong); result.add(info); return result; } // signed added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_SIGNED ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(false, TypeInfo.isUnsigned); result.add(info); return result; } // unsigned added to a type if (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_SIMPLETYPE_UNSIGNED ){ info = (TypeInfo)((ASTExpression)expression.getLHSExpression()).getResultType().iterator().next(); info.setBit(true, TypeInfo.isUnsigned); result.add(info); return result; } // types that resolve to t_type, symbol already looked up in type id if (expression.getExpressionKind() == IASTExpression.Kind.ID_EXPRESSION){ info.setType(TypeInfo.t_type); if(symbol != null) info.setTypeSymbol(symbol); result.add(info); return result; } // an ampersand implies a pointer operation of type reference if (expression.getExpressionKind() == IASTExpression.Kind.UNARY_AMPSND_CASTEXPRESSION){ List lhsResult = ((ASTExpression)expression.getLHSExpression()).getResultType(); if( lhsResult.iterator().hasNext()) info = (TypeInfo)lhsResult.iterator().next(); if ((info != null) && (info.getTypeSymbol() != null)){ info.addPtrOperator(new TypeInfo.PtrOp(TypeInfo.PtrOp.t_reference)); } result.add(info); return result; } // a star implies a pointer operation of type pointer if (expression.getExpressionKind() == IASTExpression.Kind.UNARY_STAR_CASTEXPRESSION){ List lhsResult = ((ASTExpression)expression.getLHSExpression()).getResultType(); if( lhsResult.iterator().hasNext()) info = (TypeInfo)lhsResult.iterator().next(); if ((info != null)&& (info.getTypeSymbol() != null)){ info.addPtrOperator(new TypeInfo.PtrOp(TypeInfo.PtrOp.t_pointer)); } result.add(info); return result; } // types that resolve to LHS types if ((expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_INCREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_DECREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_INCREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.UNARY_DECREMENT) || (expression.getExpressionKind() == IASTExpression.Kind.MULTIPLICATIVE_MULTIPLY) || (expression.getExpressionKind() == IASTExpression.Kind.MULTIPLICATIVE_DIVIDE) || (expression.getExpressionKind() == IASTExpression.Kind.MULTIPLICATIVE_MODULUS) || (expression.getExpressionKind() == IASTExpression.Kind.ADDITIVE_PLUS) || (expression.getExpressionKind() == IASTExpression.Kind.ADDITIVE_MINUS) || (expression.getExpressionKind() == IASTExpression.Kind.SHIFT_LEFT) || (expression.getExpressionKind() == IASTExpression.Kind.SHIFT_RIGHT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_NORMAL) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_PLUS) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MINUS) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MULT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_DIV) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_MOD) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_LSHIFT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_RSHIFT) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_AND) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_OR) || (expression.getExpressionKind() == IASTExpression.Kind.ASSIGNMENTEXPRESSION_XOR) ){ ASTExpression left = (ASTExpression)expression.getRHSExpression(); if(left != null){ TypeInfo leftType =(TypeInfo)left.getResultType().iterator().next(); result.add(leftType); } } // a list collects all types of left and right hand sides if(expression.getExpressionKind() == IASTExpression.Kind.EXPRESSIONLIST){ if(expression.getLHSExpression() != null){ Iterator i = ((ASTExpression)expression.getLHSExpression()).getResultType().iterator(); while (i.hasNext()){ result.add(i.next()); } } if(expression.getRHSExpression() != null){ Iterator i = ((ASTExpression)expression.getRHSExpression()).getResultType().iterator(); while (i.hasNext()){ result.add(i.next()); } } return result; } // a function call type is the return type of the function if(expression.getExpressionKind() == IASTExpression.Kind.POSTFIX_FUNCTIONCALL){ if(symbol != null){ IParameterizedSymbol psymbol = (IParameterizedSymbol) symbol; ISymbol returnTypeSymbol = psymbol.getReturnType(); info.setType(returnTypeSymbol.getType()); } result.add(info); return result; } return result; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d4cfca7836d1d5eb240ef63d55aabd48fdbf4fd3/CompleteParseASTFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
16183,
1253,
559,
12,
45,
9053,
2300,
2652,
16,
4437,
3284,
3273,
15329,
202,
202,
682,
563,
273,
394,
2407,
5621,
202,
202,
17305,
1123,
273,
394,
1412,
966,
5621,
9506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
16183,
1253,
559,
12,
45,
9053,
2300,
2652,
16,
4437,
3284,
3273,
15329,
202,
202,
682,
563,
273,
394,
2407,
5621,
202,
202,
17305,
1123,
273,
394,
1412,
966,
5621,
9506,
... |
if (newBendpoints != bendpoints) { NotificationChain msgs = null; if (bendpoints != null) msgs = ((InternalEObject)bendpoints).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NotationPackage.EDGE__BENDPOINTS, null, msgs); if (newBendpoints != null) msgs = ((InternalEObject)newBendpoints).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NotationPackage.EDGE__BENDPOINTS, null, msgs); msgs = basicSetBendpoints(newBendpoints, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.EDGE__BENDPOINTS, newBendpoints, newBendpoints)); } | if (newBendpoints != bendpoints) { NotificationChain msgs = null; if (bendpoints != null) msgs = ((InternalEObject)bendpoints).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NotationPackage.EDGE__BENDPOINTS, null, msgs); if (newBendpoints != null) msgs = ((InternalEObject)newBendpoints).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NotationPackage.EDGE__BENDPOINTS, null, msgs); msgs = basicSetBendpoints(newBendpoints, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.EDGE__BENDPOINTS, newBendpoints, newBendpoints)); } | public void setBendpoints(Bendpoints newBendpoints) { if (newBendpoints != bendpoints) { NotificationChain msgs = null; if (bendpoints != null) msgs = ((InternalEObject)bendpoints).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NotationPackage.EDGE__BENDPOINTS, null, msgs); if (newBendpoints != null) msgs = ((InternalEObject)newBendpoints).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NotationPackage.EDGE__BENDPOINTS, null, msgs); msgs = basicSetBendpoints(newBendpoints, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, NotationPackage.EDGE__BENDPOINTS, newBendpoints, newBendpoints)); } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/EdgeImpl.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation/src/org/eclipse/gmf/runtime/notation/impl/EdgeImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15268,
20502,
12,
38,
20502,
394,
38,
20502,
13,
288,
202,
202,
430,
261,
2704,
38,
20502,
480,
324,
20502,
13,
288,
1082,
202,
4386,
3893,
8733,
273,
446,
31,
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,
15268,
20502,
12,
38,
20502,
394,
38,
20502,
13,
288,
202,
202,
430,
261,
2704,
38,
20502,
480,
324,
20502,
13,
288,
1082,
202,
4386,
3893,
8733,
273,
446,
31,
1082,
202,... |
assertValueInCollection("details", 0, 5, getProductUnitPriceFor("2")); | assertValueInCollection("details", 0, 5, getProductUnitPriceMultiplyBy("2")); | public void testSections_aggregateCollection_orderedCollectionsInModel_posdeleteCollectionElement() throws Exception { // Create execute("CRUD.new"); execute("Sections.change", "activeSection=0"); assertExists("customer.number"); assertNotExists("vatPercentage"); String year = getValue("year"); setValue("number", "66"); setValue("customer.number", "1"); assertValue("customer.number", "1"); assertValue("customer.name", "Javi"); // First vat percentage for no validation error on save first detail execute("Sections.change", "activeSection=2"); assertNotExists("customer.number"); assertExists("vatPercentage"); setValue("vatPercentage", "23"); execute("Sections.change", "activeSection=1"); assertNotExists("customer.number"); assertNotExists("vatPercentage"); assertCollectionRowCount("details", 0); execute("Collection.new", "viewObject=xava_view_section1_details"); setValue("details.serviceType", "0"); setValue("details.quantity", "20"); setValue("details.unitPrice", getProductUnitPrice()); assertValue("details.amount", getProductUnitPriceFor("20")); setValue("details.product.number", getProductNumber()); assertValue("details.product.description", getProductDescription()); setValue("details.deliveryDate", "18/03/2004"); // Testing multiple-mapping in aggregate setValue("details.soldBy.number", getProductNumber()); execute("Collection.save", "viewObject=xava_view_section1_details"); assertNoErrors(); assertNotExists("details.serviceType"); // Testing hide detail on save assertCollectionRowCount("details", 1); assertNoEditable("year"); // Testing header is saved assertNoEditable("number"); execute("Collection.new", "viewObject=xava_view_section1_details"); setValue("details.serviceType", "1"); setValue("details.quantity", "200"); setValue("details.unitPrice", getProductUnitPrice()); assertValue("details.amount", getProductUnitPriceFor("200")); setValue("details.product.number", getProductNumber()); assertValue("details.product.description", getProductDescription()); setValue("details.deliveryDate", "19/03/2004"); // Testing multiple-mapping in aggregate setValue("details.soldBy.number", getProductNumber()); execute("Collection.save", "viewObject=xava_view_section1_details"); assertCollectionRowCount("details", 2); execute("Collection.new", "viewObject=xava_view_section1_details"); setValue("details.serviceType", "2"); setValue("details.quantity", "2"); setValue("details.unitPrice", getProductUnitPrice()); assertValue("details.amount", getProductUnitPriceFor("2")); setValue("details.product.number", getProductNumber()); assertValue("details.product.description", getProductDescription()); setValue("details.deliveryDate", "20/03/2004"); // Testing multiple-mapping in aggregate execute("Collection.save", "viewObject=xava_view_section1_details"); assertCollectionRowCount("details", 3); assertValueInCollection("details", 0, 0, "Urgent"); assertValueInCollection("details", 0, 1, getProductDescription()); assertValueInCollection("details", 0, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 0, 3, "2"); assertValueInCollection("details", 0, 4, getProductUnitPrice()); assertValueInCollection("details", 0, 5, getProductUnitPriceFor("2")); assertValueInCollection("details", 1, 0, "Special"); assertValueInCollection("details", 1, 1, getProductDescription()); assertValueInCollection("details", 1, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 1, 3, "200"); assertValueInCollection("details", 1, 4, getProductUnitPrice()); assertValueInCollection("details", 1, 5, getProductUnitPriceFor("200")); assertValueInCollection("details", 2, 0, ""); assertValueInCollection("details", 2, 1, getProductDescription()); assertValueInCollection("details", 2, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 2, 3, "20"); assertValueInCollection("details", 2, 4, getProductUnitPrice()); assertValueInCollection("details", 2, 5, getProductUnitPriceFor("20")); execute("CRUD.save"); assertNoErrors(); assertValue("number", ""); execute("Sections.change", "activeSection=0"); assertValue("customer.number", ""); assertValue("customer.name", ""); execute("Sections.change", "activeSection=1"); assertCollectionRowCount("details", 0); execute("Sections.change", "activeSection=2"); assertValue("vatPercentage", ""); // Consulting setValue("year", year); setValue("number", "66"); execute("CRUD.search"); assertValue("year", year); assertValue("number", "66"); execute("Sections.change", "activeSection=0"); assertValue("customer.number", "1"); assertValue("customer.name", "Javi"); execute("Sections.change", "activeSection=1"); assertCollectionRowCount("details", 3); assertValueInCollection("details", 0, 0, "Urgent"); assertValueInCollection("details", 0, 1, getProductDescription()); assertValueInCollection("details", 0, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 0, 3, "2"); assertValueInCollection("details", 0, 4, getProductUnitPrice()); assertValueInCollection("details", 0, 5, getProductUnitPriceFor("2")); assertValueInCollection("details", 1, 0, "Special"); assertValueInCollection("details", 1, 1, getProductDescription()); assertValueInCollection("details", 1, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 1, 3, "200"); assertValueInCollection("details", 1, 4, getProductUnitPrice()); assertValueInCollection("details", 1, 5, getProductUnitPriceFor("200")); assertValueInCollection("details", 2, 0, ""); assertValueInCollection("details", 2, 1, getProductDescription()); assertValueInCollection("details", 2, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 2, 3, "20"); assertValueInCollection("details", 2, 4, getProductUnitPrice()); assertValueInCollection("details", 2, 5, getProductUnitPriceFor("20")); execute("Sections.change", "activeSection=2"); assertValue("vatPercentage", "23"); // Edit line execute("Sections.change", "activeSection=1"); assertNotExists("details.product.description"); assertNotExists("details.quantity"); assertNotExists("details.deliveryDate"); execute("Invoices.editDetail", "row=1,viewObject=xava_view_section1_details"); assertValue("details.product.description", getProductDescription()); assertValue("details.quantity", "200"); assertValue("details.deliveryDate", "19/03/2004"); setValue("details.quantity", "234"); setValue("details.deliveryDate", "23/04/2004"); execute("Collection.save", "viewObject=xava_view_section1_details"); assertNoErrors(); assertValueInCollection("details", 1, 3, "234"); assertNotExists("details.product.description"); assertNotExists("details.quantity"); assertNotExists("details.deliveryDate"); execute("Invoices.editDetail", "row=1,viewObject=xava_view_section1_details"); assertValue("details.product.description", getProductDescription()); assertValue("details.quantity", "234"); assertValue("details.deliveryDate", "23/04/2004"); // Return to save and consult for see if the line is edited execute("CRUD.save"); assertNoErrors(); setValue("year", year); setValue("number", "66"); execute("CRUD.search"); assertNoErrors(); execute("Sections.change", "activeSection=1"); assertValueInCollection("details", 1, 0, "Special"); assertValueInCollection("details", 1, 1, getProductDescription()); assertValueInCollection("details", 1, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 1, 3, "234"); assertValueInCollection("details", 1, 4, getProductUnitPrice()); assertValueInCollection("details", 1, 5, getProductUnitPriceFor("234")); assertNotExists("details.product.description"); assertNotExists("details.quantity"); assertNotExists("details.deliveryDate"); execute("Invoices.editDetail", "row=1,viewObject=xava_view_section1_details"); assertValue("details.product.description", getProductDescription()); assertValue("details.quantity", "234"); assertValue("details.deliveryDate", "23/04/2004"); // Verifying that it do not delete member in collection that not are in list execute("CRUD.new"); setValue("year", year); setValue("number", "66"); execute("CRUD.search"); assertNoErrors(); execute("CRUD.save"); assertNoErrors(); setValue("year", year); setValue("number", "66"); execute("CRUD.search"); assertNoErrors(); execute("Sections.change", "activeSection=1"); execute("Invoices.editDetail", "row=1,viewObject=xava_view_section1_details"); assertValue("details.product.description", getProductDescription()); assertValue("details.quantity", "234"); assertValue("details.deliveryDate", "23/04/2004"); // Remove a row from collection assertCollectionRowCount("details", 3); execute("Collection.remove", "viewObject=xava_view_section1_details"); assertCollectionRowCount("details", 2); assertValueInCollection("details", 0, 0, "Urgent"); assertValueInCollection("details", 0, 1, getProductDescription()); assertValueInCollection("details", 0, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 0, 3, "2"); assertValueInCollection("details", 0, 4, getProductUnitPrice()); assertValueInCollection("details", 0, 5, getProductUnitPriceFor("2")); assertValueInCollection("details", 1, 0, ""); assertValueInCollection("details", 1, 1, getProductDescription()); assertValueInCollection("details", 1, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 1, 3, "20"); assertValueInCollection("details", 1, 4, getProductUnitPrice()); assertValueInCollection("details", 1, 5, getProductUnitPriceFor("20")); //ejecutar("CRUD.save"); // It is not necessary delete for record the deleted of a row execute("CRUD.new"); assertNoErrors(); assertCollectionRowCount("details", 0); // Verifying that line is deleted setValue("year", year); setValue("number", "66"); execute("CRUD.search"); assertNoErrors(); execute("Sections.change", "activeSection=1"); assertCollectionRowCount("details", 2); assertValueInCollection("details", 0, 0, "Urgent"); assertValueInCollection("details", 0, 1, getProductDescription()); assertValueInCollection("details", 0, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 0, 3, "2"); assertValueInCollection("details", 0, 4, getProductUnitPrice()); assertValueInCollection("details", 0, 5, getProductUnitPriceFor("2")); assertValueInCollection("details", 1, 0, ""); assertValueInCollection("details", 1, 1, getProductDescription()); assertValueInCollection("details", 1, 2, getProductUnitPriceInPesetas()); assertValueInCollection("details", 1, 3, "20"); assertValueInCollection("details", 1, 4, getProductUnitPrice()); assertValueInCollection("details", 1, 5, getProductUnitPriceFor("20")); assertValue("comment", "DETAIL DELETED"); // verifying postdelete-calculator in collection // Delete execute("CRUD.delete"); execute("ConfirmDelete.confirmDelete"); assertMessage("Invoice deleted successfully"); } | 14127 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14127/fd55afcaeadc0aadf218eb140d58ebfb6396b883/InvoicesTest.java/clean/OpenXavaTest/src/org/openxava/test/tests/InvoicesTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
15965,
67,
18573,
2532,
67,
9885,
15150,
382,
1488,
67,
917,
3733,
2532,
1046,
1435,
1216,
1185,
288,
4697,
202,
759,
1788,
202,
202,
8837,
2932,
5093,
12587,
18,
270... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15965,
67,
18573,
2532,
67,
9885,
15150,
382,
1488,
67,
917,
3733,
2532,
1046,
1435,
1216,
1185,
288,
4697,
202,
759,
1788,
202,
202,
8837,
2932,
5093,
12587,
18,
270... |
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText(); | public quickfix.field.EncodedText getEncodedText() throws FieldNotFound { quickfix.field.EncodedText value = new quickfix.field.EncodedText(); | public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText(); 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/fix43/ListStatus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
28799,
1528,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
460,
273,
394,
2358,
18,
19525,
904,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
28799,
1528,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
460,
273,
394,
2358,
18,
19525,
904,... |
public Object put(String keyToUse, Object valueToPut) | public Object put(String key, Object value) | public Object put(String keyToUse, Object valueToPut) { if (this.size == 0) { this.key = keyToUse.toUpperCase().intern(); if (valueToPut instanceof String) { this.value = ((String) valueToPut).intern(); } else { this.value = valueToPut; } this.size = 1; return this.value; } else if (this.size == 1) { this.hidden = new LinkedHashMap<String, Object>(); this.hidden.put(this.key, this.value); this.key = null; this.value = null; this.size = 2; if (valueToPut instanceof String) { return this.hidden.put(keyToUse.toUpperCase().intern(), ((String) valueToPut).intern()); } // otherwise... return this.hidden.put(keyToUse.toUpperCase().intern(), valueToPut); } else { this.size++; if (valueToPut instanceof String) { return this.hidden.put(keyToUse.toUpperCase().intern(), ((String) valueToPut).intern()); } // otherwise... return this.hidden.put(keyToUse.toUpperCase().intern(), valueToPut); } } | 49735 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49735/6a34a4cb5cc8374e5588b5833b5726f8ca03111d/OneOptimalNodemaster.java/buggy/JavaSource/org/aitools/programd/graph/OneOptimalNodemaster.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1378,
12,
780,
498,
16,
1033,
460,
13,
565,
288,
3639,
309,
261,
2211,
18,
1467,
422,
374,
13,
3639,
288,
5411,
333,
18,
856,
273,
498,
18762,
18,
869,
8915,
7675,
267,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1378,
12,
780,
498,
16,
1033,
460,
13,
565,
288,
3639,
309,
261,
2211,
18,
1467,
422,
374,
13,
3639,
288,
5411,
333,
18,
856,
273,
498,
18762,
18,
869,
8915,
7675,
267,
79... |
for (RepositoryTemplate info : connector.getTemplates()) { if (info.label.equals(text)) { setUrl(info.repositoryUrl); setAnonymous(info.anonymous); | RepositoryTemplate template = connector.getTemplate(text); if (template != null) { setUrl(template.repositoryUrl); setAnonymous(template.anonymous); | public void widgetSelected(SelectionEvent e) { String text = repositoryLabelCombo.getText(); for (RepositoryTemplate info : connector.getTemplates()) { if (info.label.equals(text)) { setUrl(info.repositoryUrl); setAnonymous(info.anonymous); try { Version version = Version.valueOf(info.version); setTracVersion(version); } catch (RuntimeException ex) { setTracVersion(Version.TRAC_0_9); } getContainer().updateButtons(); return; } } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/f0a3427e5ca929817bebd4cb4cea52e8c60c7864/TracRepositorySettingsPage.java/buggy/org.eclipse.mylyn.trac.ui/src/org/eclipse/mylyn/internal/trac/ui/wizard/TracRepositorySettingsPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
780,
977,
273,
3352,
2224,
16156,
18,
588,
1528,
5621,
9506,
202,
1884,
261,
3305,
2283,
1123,
294,
225,
8703,
18,
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,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
780,
977,
273,
3352,
2224,
16156,
18,
588,
1528,
5621,
9506,
202,
1884,
261,
3305,
2283,
1123,
294,
225,
8703,
18,
5... |
ctype.interfaces = new ClassType[nInterfaces]; ctype.interfaceIndexes = new int[nInterfaces]; for (int i = 0; i < nInterfaces; i++) | if (nInterfaces > 0) | public void readClassInfo () throws IOException { ctype.access_flags = readUnsignedShort(); CpoolClass clas; String name; ctype.thisClassIndex = readUnsignedShort(); clas = (CpoolClass) ctype.constants.getForced(ctype.thisClassIndex, ConstantPool.CLASS); name = clas.name.string; ctype.this_name = name.replace('/', '.'); ctype.setSignature("L"+name+";"); ctype.superClassIndex = readUnsignedShort(); if (ctype.superClassIndex == 0) ctype.setSuper((ClassType) null); else { clas = (CpoolClass) ctype.constants.getForced(ctype.superClassIndex, ConstantPool.CLASS); name = clas.name.string; ctype.setSuper(name.replace('/', '.')); } int nInterfaces = readUnsignedShort(); ctype.interfaces = new ClassType[nInterfaces]; ctype.interfaceIndexes = new int[nInterfaces]; for (int i = 0; i < nInterfaces; i++) { ctype.interfaceIndexes[i] = readUnsignedShort(); clas = (CpoolClass) ctype.constants.getForced(ctype.superClassIndex, ConstantPool.CLASS); name = clas.name.string; ctype.interfaces[i] = ClassType.make(name.replace('/', '.')); } } | 37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/45dca6cedead762f9b4921c11b708cfa37e02be3/ClassFileInput.java/buggy/gnu/bytecode/ClassFileInput.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
855,
19455,
1832,
1216,
1860,
225,
288,
565,
11920,
18,
3860,
67,
7133,
273,
28198,
5621,
565,
385,
6011,
797,
23268,
31,
565,
514,
508,
31,
565,
11920,
18,
2211,
797,
1016,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
19455,
1832,
1216,
1860,
225,
288,
565,
11920,
18,
3860,
67,
7133,
273,
28198,
5621,
565,
385,
6011,
797,
23268,
31,
565,
514,
508,
31,
565,
11920,
18,
2211,
797,
1016,
... |
super(parentShell); this.container = container; setTitle(IDEWorkbenchMessages.NewFolderDialog_title); setShellStyle(getShellStyle() | SWT.RESIZE); setStatusLineAboveButtons(true); } | super(parentShell); this.container = container; setTitle(IDEWorkbenchMessages.NewFolderDialog_title); setShellStyle(getShellStyle() | SWT.RESIZE); setStatusLineAboveButtons(true); } | public NewFolderDialog(Shell parentShell, IContainer container) { super(parentShell); this.container = container; setTitle(IDEWorkbenchMessages.NewFolderDialog_title); setShellStyle(getShellStyle() | SWT.RESIZE); setStatusLineAboveButtons(true); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f21a158e540a7a992bc7c1d5732d5d6926ff4f2c/NewFolderDialog.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/NewFolderDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1166,
3899,
6353,
12,
13220,
982,
13220,
16,
467,
2170,
1478,
13,
288,
3639,
2240,
12,
2938,
13220,
1769,
3639,
333,
18,
3782,
273,
1478,
31,
3639,
14109,
12,
10385,
2421,
22144,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1166,
3899,
6353,
12,
13220,
982,
13220,
16,
467,
2170,
1478,
13,
288,
3639,
2240,
12,
2938,
13220,
1769,
3639,
333,
18,
3782,
273,
1478,
31,
3639,
14109,
12,
10385,
2421,
22144,
50... |
if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } | double rad2Deg; | public TA_RetCode HT_DCPERIOD(int startIdx, int endIdx, double inReal[], MInteger outBegIdx, MInteger outNbElement, double outReal[]) { int outIdx, i; int lookbackTotal, today; double tempReal, tempReal2; double adjustedPrevPeriod, period; int trailingWMAIdx; double periodWMASum, periodWMASub, trailingWMAValue; double smoothedValue; final double a = 0.0962; final double b = 0.5769; double hilbertTempReal; int hilbertIdx; double[] detrender_Odd = new double[3]; ; double[] detrender_Even = new double[3]; ; double detrender; double prev_detrender_Odd; double prev_detrender_Even; double prev_detrender_input_Odd; double prev_detrender_input_Even; double[] Q1_Odd = new double[3]; ; double[] Q1_Even = new double[3]; ; double Q1; double prev_Q1_Odd; double prev_Q1_Even; double prev_Q1_input_Odd; double prev_Q1_input_Even; double[] jI_Odd = new double[3]; ; double[] jI_Even = new double[3]; ; double jI; double prev_jI_Odd; double prev_jI_Even; double prev_jI_input_Odd; double prev_jI_input_Even; double[] jQ_Odd = new double[3]; ; double[] jQ_Even = new double[3]; ; double jQ; double prev_jQ_Odd; double prev_jQ_Even; double prev_jQ_input_Odd; double prev_jQ_input_Even; double Q2, I2, prevQ2, prevI2, Re, Im; double I1ForOddPrev2, I1ForOddPrev3; double I1ForEvenPrev2, I1ForEvenPrev3; double rad2Deg; double todayValue, smoothPeriod; 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; rad2Deg = 180.0 / (4.0 * Math.atan(1)); lookbackTotal = 32 + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_HT_DCPERIOD .ordinal()]); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } outBegIdx.value = startIdx; trailingWMAIdx = startIdx - lookbackTotal; today = trailingWMAIdx; tempReal = inReal[today++]; periodWMASub = tempReal; periodWMASum = tempReal; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal * 2.0; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal * 3.0; trailingWMAValue = 0.0; i = 9; do { tempReal = inReal[today++]; { periodWMASub += tempReal; periodWMASub -= trailingWMAValue; periodWMASum += tempReal * 4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum * 0.1; periodWMASum -= periodWMASub; } ; } while (--i != 0); hilbertIdx = 0; { detrender_Odd[0] = 0.0; detrender_Odd[1] = 0.0; detrender_Odd[2] = 0.0; detrender_Even[0] = 0.0; detrender_Even[1] = 0.0; detrender_Even[2] = 0.0; detrender = 0.0; prev_detrender_Odd = 0.0; prev_detrender_Even = 0.0; prev_detrender_input_Odd = 0.0; prev_detrender_input_Even = 0.0; } ; { Q1_Odd[0] = 0.0; Q1_Odd[1] = 0.0; Q1_Odd[2] = 0.0; Q1_Even[0] = 0.0; Q1_Even[1] = 0.0; Q1_Even[2] = 0.0; Q1 = 0.0; prev_Q1_Odd = 0.0; prev_Q1_Even = 0.0; prev_Q1_input_Odd = 0.0; prev_Q1_input_Even = 0.0; } ; { jI_Odd[0] = 0.0; jI_Odd[1] = 0.0; jI_Odd[2] = 0.0; jI_Even[0] = 0.0; jI_Even[1] = 0.0; jI_Even[2] = 0.0; jI = 0.0; prev_jI_Odd = 0.0; prev_jI_Even = 0.0; prev_jI_input_Odd = 0.0; prev_jI_input_Even = 0.0; } ; { jQ_Odd[0] = 0.0; jQ_Odd[1] = 0.0; jQ_Odd[2] = 0.0; jQ_Even[0] = 0.0; jQ_Even[1] = 0.0; jQ_Even[2] = 0.0; jQ = 0.0; prev_jQ_Odd = 0.0; prev_jQ_Even = 0.0; prev_jQ_input_Odd = 0.0; prev_jQ_input_Even = 0.0; } ; period = 0.0; outIdx = 0; prevI2 = prevQ2 = 0.0; Re = Im = 0.0; I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; smoothPeriod = 0.0; while (today <= endIdx) { adjustedPrevPeriod = (0.075 * period) + 0.54; todayValue = inReal[today]; { periodWMASub += todayValue; periodWMASub -= trailingWMAValue; periodWMASum += todayValue * 4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum * 0.1; periodWMASum -= periodWMASub; } ; if ((today % 2) == 0) { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Even[hilbertIdx]; detrender_Even[hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Even; prev_detrender_Even = b * prev_detrender_input_Even; detrender += prev_detrender_Even; prev_detrender_input_Even = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Even[hilbertIdx]; Q1_Even[hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Even; prev_Q1_Even = b * prev_Q1_input_Even; Q1 += prev_Q1_Even; prev_Q1_input_Even = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForEvenPrev3; jI = -jI_Even[hilbertIdx]; jI_Even[hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Even; prev_jI_Even = b * prev_jI_input_Even; jI += prev_jI_Even; prev_jI_input_Even = I1ForEvenPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Even[hilbertIdx]; jQ_Even[hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Even; prev_jQ_Even = b * prev_jQ_input_Even; jQ += prev_jQ_Even; prev_jQ_input_Even = Q1; jQ *= adjustedPrevPeriod; } ; if (++hilbertIdx == 3) hilbertIdx = 0; Q2 = (0.2 * (Q1 + jI)) + (0.8 * prevQ2); I2 = (0.2 * (I1ForEvenPrev3 - jQ)) + (0.8 * prevI2); I1ForOddPrev3 = I1ForOddPrev2; I1ForOddPrev2 = detrender; } else { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Odd[hilbertIdx]; detrender_Odd[hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Odd; prev_detrender_Odd = b * prev_detrender_input_Odd; detrender += prev_detrender_Odd; prev_detrender_input_Odd = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Odd[hilbertIdx]; Q1_Odd[hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Odd; prev_Q1_Odd = b * prev_Q1_input_Odd; Q1 += prev_Q1_Odd; prev_Q1_input_Odd = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForOddPrev3; jI = -jI_Odd[hilbertIdx]; jI_Odd[hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Odd; prev_jI_Odd = b * prev_jI_input_Odd; jI += prev_jI_Odd; prev_jI_input_Odd = I1ForOddPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Odd[hilbertIdx]; jQ_Odd[hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Odd; prev_jQ_Odd = b * prev_jQ_input_Odd; jQ += prev_jQ_Odd; prev_jQ_input_Odd = Q1; jQ *= adjustedPrevPeriod; } ; Q2 = (0.2 * (Q1 + jI)) + (0.8 * prevQ2); I2 = (0.2 * (I1ForOddPrev3 - jQ)) + (0.8 * prevI2); I1ForEvenPrev3 = I1ForEvenPrev2; I1ForEvenPrev2 = detrender; } Re = (0.2 * ((I2 * prevI2) + (Q2 * prevQ2))) + (0.8 * Re); Im = (0.2 * ((I2 * prevQ2) - (Q2 * prevI2))) + (0.8 * Im); prevQ2 = Q2; prevI2 = I2; tempReal = period; if ((Im != 0.0) && (Re != 0.0)) period = 360.0 / (Math.atan(Im / Re) * rad2Deg); tempReal2 = 1.5 * tempReal; if (period > tempReal2) period = tempReal2; tempReal2 = 0.67 * tempReal; if (period < tempReal2) period = tempReal2; if (period < 6) period = 6; else if (period > 50) period = 50; period = (0.2 * period) + (0.8 * tempReal); smoothPeriod = (0.33 * period) + (0.67 * smoothPeriod); if (today >= startIdx) { outReal[outIdx++] = smoothPeriod; } today++; } outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; } | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/5df8081f2a7211016256c0f481213a987e02947a/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
19408,
67,
5528,
28437,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
49,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
19408,
67,
5528,
28437,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1082,
202,
49,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
... |
m.frame.setSize(width,height); m.frame.centerFrame(); | m.frame1.setSize(width,height); m.frame1.centerFrame(); | static public void main(String[] args) { if (!isSpecified("-nc",args)) { if (!checkBootStrapper(args)) { // if we did not find a running instance and the -d options is // specified start up the bootstrap deamon to allow checking // for running instances if (isSpecified("-d",args)) { strapper = new BootStrapper(); strapper.start(); } } else { System.exit(0); } } My5250 m = new My5250(); if (strapper != null) strapper.addBootListener(m); if (args.length > 0) { if (isSpecified("-width",args) || isSpecified("-height",args)) { int width = m.frame.getWidth(); int height = m.frame.getHeight(); if (isSpecified("-width",args)) { width = Integer.parseInt(m.getParm("-width",args)); } if (isSpecified("-height",args)) { height = Integer.parseInt(m.getParm("-height",args)); } m.frame.setSize(width,height); m.frame.centerFrame(); } /** * @todo this crap needs to be rewritten it is a mess */ if (args[0].startsWith("-")) { // check if a session parameter is specified on the command line if (isSpecified("-s",args)) { String sd = getParm("-s",args); if (sessions.containsKey(sd)) { sessions.setProperty("emul.default",sd); } else { args = null; } } // check if a locale parameter is specified on the command line if (isSpecified("-L",args)) { Locale.setDefault(parseLocal(getParm("-L",args))); LangTool.init(); if (args[0].startsWith("-")) { m.sessionArgs = null; } else { m.frame.setVisible(true); LangTool.init(); m.sessionArgs = args; } } else { LangTool.init(); if (isSpecified("-s",args)) m.sessionArgs = args; else m.sessionArgs = null; } } else { LangTool.init(); m.sessionArgs = args; } } else { LangTool.init(); m.sessionArgs = null; } if (m.sessionArgs != null) { // BEGIN // 2001/09/19 natural computing MR Vector os400_sessions = new Vector(); Vector session_params = new Vector(); for (int x = 0; x < args.length; x++) { if (args[x].equals("-s")) { x++; if (args[x] != null && sessions.containsKey(args[x])) { os400_sessions.addElement(args[x]); }else{ x--; session_params.addElement(args[x]); } }else{ session_params.addElement(args[x]); } } for (int x = 0; x < session_params.size(); x++) m.sessionArgs[x] = session_params.elementAt(x).toString(); m.startNewSession(); for (int x = 1; x < os400_sessions.size(); x++ ) { String sel = os400_sessions.elementAt(x).toString(); if (!m.frame.isVisible()) m.frame.setVisible(true); m.sessionArgs = new String[NUM_PARMS]; m.parseArgs(sessions.getProperty(sel),m.sessionArgs); m.newSession(sel,m.sessionArgs); } // 2001/09/19 natural computing MR // END } else { m.startNewSession(); } } | 4212 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4212/4c59a6fee6c7505cf2062ba9286c6ac043f9c52f/My5250.java/buggy/src/org/tn5250j/My5250.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
760,
1071,
918,
2774,
12,
780,
8526,
833,
13,
288,
1377,
309,
16051,
291,
17068,
2932,
17,
14202,
3113,
1968,
3719,
288,
540,
309,
16051,
1893,
15817,
1585,
438,
457,
12,
1968,
3719,
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,
565,
760,
1071,
918,
2774,
12,
780,
8526,
833,
13,
288,
1377,
309,
16051,
291,
17068,
2932,
17,
14202,
3113,
1968,
3719,
288,
540,
309,
16051,
1893,
15817,
1585,
438,
457,
12,
1968,
3719,
288,... |
void writeContent(CmsDbContext dbc, CmsProject project, CmsUUID resourceId, byte[] content) throws CmsDataAccessException; | void writeContent(CmsDbContext dbc, CmsProject project, CmsUUID resourceId, byte[] content) throws CmsDataAccessException; | void writeContent(CmsDbContext dbc, CmsProject project, CmsUUID resourceId, byte[] content) throws CmsDataAccessException; | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/ffc41838b2d111ebeb91e9a4f240187165ad24d5/I_CmsVfsDriver.java/buggy/src/org/opencms/db/I_CmsVfsDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1045,
1350,
12,
4747,
4331,
1042,
9881,
16,
2149,
4109,
1984,
16,
15792,
15035,
16,
1160,
8526,
913,
13,
1216,
2149,
751,
9773,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1045,
1350,
12,
4747,
4331,
1042,
9881,
16,
2149,
4109,
1984,
16,
15792,
15035,
16,
1160,
8526,
913,
13,
1216,
2149,
751,
9773,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
final PaymentsManagementDTO managementDTO = (PaymentsManagementDTO) RenderUtils.getViewState( "paymentsManagementDTO").getMetaObject().getObject(); request.setAttribute("paymentsManagementDTO", managementDTO); if (managementDTO.getSelectedEntries().isEmpty()) { addActionMessage(request, "error.administrativeOffice.payments.guide.entries.selection.is.required"); return mapping.findForward("showEvents"); } else { return mapping.findForward("showGuide"); } | return internalPreparePrintGuide(mapping, request, "showGuide", "showEvents"); | public ActionForward preparePrintGuide(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) { final PaymentsManagementDTO managementDTO = (PaymentsManagementDTO) RenderUtils.getViewState( "paymentsManagementDTO").getMetaObject().getObject(); request.setAttribute("paymentsManagementDTO", managementDTO); if (managementDTO.getSelectedEntries().isEmpty()) { addActionMessage(request, "error.administrativeOffice.payments.guide.entries.selection.is.required"); return mapping.findForward("showEvents"); } else { return mapping.findForward("showGuide"); } } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/cefa23f5571b1584f2bdd0fa4b03e59f6afe7e8a/PaymentsManagementDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/commons/administrativeOffice/payments/PaymentsManagementDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
2911,
5108,
17424,
12,
1803,
3233,
2874,
16,
4382,
1204,
1301,
1204,
16,
202,
565,
9984,
590,
16,
12446,
766,
13,
288,
202,
6385,
13838,
1346,
10998,
19792,
11803,
19792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4382,
8514,
2911,
5108,
17424,
12,
1803,
3233,
2874,
16,
4382,
1204,
1301,
1204,
16,
202,
565,
9984,
590,
16,
12446,
766,
13,
288,
202,
6385,
13838,
1346,
10998,
19792,
11803,
19792,
... |
if (infoPopup != null) | if (infoPopup != null) { | public void widgetSelected(SelectionEvent e) { // If a proposal has been selected, show it in the popup. // Otherwise close the popup. if (e.item == null) { if (infoPopup != null) infoPopup.close(); } else { TableItem item = (TableItem) e.item; IContentProposal proposal = (IContentProposal) item .getData(); showProposalDescription(proposal.getDescription()); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
6862,
202,
759,
971,
279,
14708,
711,
2118,
3170,
16,
2405,
518,
316,
326,
10431,
18,
6862,
202,
759,
5272,
1746,
326,
10431,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
6862,
202,
759,
971,
279,
14708,
711,
2118,
3170,
16,
2405,
518,
316,
326,
10431,
18,
6862,
202,
759,
5272,
1746,
326,
10431,
1... |
NativeFunction f = activation.funObj; if (index < f.argCount) activation.put(f.argNames[index], activation, value); else args[index] = value; return; | if (args[index] != NOT_FOUND) { if (sharedWithActivation(index)) { String argName = activation.funObj.argNames[index]; activation.put(argName, activation, value); return; } synchronized (this) { if (args[index] != NOT_FOUND) { if (args == activation.getOriginalArguments()) { args = (Object[])args.clone(); } args[index] = value; return; } } } | public void put(int index, Scriptable start, Object value) { if (0 <= index && index < args.length) { NativeFunction f = activation.funObj; if (index < f.argCount) activation.put(f.argNames[index], activation, value); else args[index] = value; return; } super.put(index, start, value); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/5808f6b10c57fdeefef8f2176ac3d7dbf6310f5b/Arguments.java/buggy/src/org/mozilla/javascript/Arguments.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1378,
12,
474,
770,
16,
22780,
787,
16,
1033,
460,
13,
288,
3639,
309,
261,
20,
1648,
770,
597,
770,
411,
833,
18,
2469,
13,
288,
5411,
16717,
2083,
284,
273,
10027,
18,
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,
1378,
12,
474,
770,
16,
22780,
787,
16,
1033,
460,
13,
288,
3639,
309,
261,
20,
1648,
770,
597,
770,
411,
833,
18,
2469,
13,
288,
5411,
16717,
2083,
284,
273,
10027,
18,
12... |
AnalysisContext analysisContext = new AnalysisContext(lookupFailureCallback); | AnalysisContext analysisContext = AnalysisContext.create(lookupFailureCallback); | public static void main(String[] argv) throws Exception { if (argv.length != 1) { System.err.println("Usage: " + DominatorsAnalysis.class.getName() + " <classfile>"); System.exit(1); } RepositoryLookupFailureCallback lookupFailureCallback = new DebugRepositoryLookupFailureCallback(); AnalysisContext analysisContext = new AnalysisContext(lookupFailureCallback); JavaClass jclass = new ClassParser(argv[0]).parse(); ClassContext classContext = analysisContext.getClassContext(jclass); String methodName = System.getProperty("dominators.method"); boolean ignoreExceptionEdges = Boolean.getBoolean("dominators.ignoreExceptionEdges"); Method[] methodList = jclass.getMethods(); for (Method method : methodList) { if (method.isNative() || method.isAbstract()) continue; if (methodName != null && !methodName.equals(method.getName())) continue; System.out.println("Method: " + method.getName()); CFG cfg = classContext.getCFG(method); DepthFirstSearch dfs = classContext.getDepthFirstSearch(method); DominatorsAnalysis analysis = new DominatorsAnalysis(cfg, dfs, ignoreExceptionEdges); Dataflow<BitSet, DominatorsAnalysis> dataflow = new Dataflow<BitSet, DominatorsAnalysis>(cfg, analysis); dataflow.execute(); for (Iterator<BasicBlock> j = cfg.blockIterator(); j.hasNext();) { BasicBlock block = j.next(); BitSet dominators = analysis.getResultFact(block); System.out.println("Block " + block.getId() + ": " + dominators); } } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1e623e9ca4892a064c56767266a899bd70d63789/DominatorsAnalysis.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/DominatorsAnalysis.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
430,
261,
19485,
18,
2469,
480,
404,
13,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
5357,
30,
315,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
430,
261,
19485,
18,
2469,
480,
404,
13,
288,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
5357,
30,
315,
39... |
synchronized (m_doc) | Document doc = DocumentHolder.m_doc; synchronized (doc) | public static NodeList split(String str, String pattern) { try { // Lock the instance to ensure thread safety if (m_doc == null) { synchronized (m_instance) { if (m_doc == null) m_doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); } } } catch(ParserConfigurationException pce) { throw new org.apache.xml.utils.WrappedRuntimeException(pce); } NodeSet resultSet = new NodeSet(); resultSet.setShouldCacheNodes(true); boolean done = false; int fromIndex = 0; int matchIndex = 0; String token = null; while (!done && fromIndex < str.length()) { matchIndex = str.indexOf(pattern, fromIndex); if (matchIndex >= 0) { token = str.substring(fromIndex, matchIndex); fromIndex = matchIndex + pattern.length(); } else { done = true; token = str.substring(fromIndex); } synchronized (m_doc) { Element element = m_doc.createElement("token"); Text text = m_doc.createTextNode(token); element.appendChild(text); resultSet.addNode(element); } } return resultSet; } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/1d55a0e1d61c15bdbc27b22dba8853a8acf4cc5b/ExsltStrings.java/buggy/src/org/apache/xalan/lib/ExsltStrings.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
16781,
1416,
12,
780,
609,
16,
514,
1936,
13,
225,
288,
565,
775,
565,
288,
1377,
368,
3488,
326,
791,
358,
3387,
2650,
24179,
1377,
309,
261,
81,
67,
2434,
422,
446,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
16781,
1416,
12,
780,
609,
16,
514,
1936,
13,
225,
288,
565,
775,
565,
288,
1377,
368,
3488,
326,
791,
358,
3387,
2650,
24179,
1377,
309,
261,
81,
67,
2434,
422,
446,
13,
1... |
viewer.setSorter(new ViewerSorter()); | viewer.setSorter(new ViewerSorter() { @Override public int compare(Viewer viewer, Object e1, Object e2) { if (e1 instanceof TaskRepository && e2 instanceof TaskRepository) { TaskRepository t1 = (TaskRepository)e1; TaskRepository t2 = (TaskRepository)e2; return (t1.getKind() + t1.getUrl()).compareTo(t2.getKind() + t2.getUrl()); } else { return super.compare(viewer, e1, e2); } } }); | public void createPartControl(Composite parent) { viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); viewer.setContentProvider(new ViewContentProvider()); viewer.setLabelProvider(new TaskRepositoryLabelProvider()); viewer.setSorter(new ViewerSorter()); viewer.setInput(getViewSite()); hookContextMenu(); contributeToActionBars(); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/bdcbae990a075b8b4ed1f30e4e6d0b8f052af02b/TaskRepositoriesView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskRepositoriesView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
1988,
3367,
12,
9400,
982,
13,
288,
202,
202,
25256,
273,
394,
3555,
18415,
12,
2938,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
1988,
3367,
12,
9400,
982,
13,
288,
202,
202,
25256,
273,
394,
3555,
18415,
12,
2938,
16,
348,
8588,
18,
26588,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
... |
setSamples, 2, 2, null, null, null, false); | setSamples, 2, 2, null, null, null, false, false); | public DataImpl getData() { float padding = 0.02f * overlay.getScalingValue(); double xx = x2 - x1; double yy = y2 - y1; double dist = Math.sqrt(xx * xx + yy * yy); double mult = padding / dist; float qx = (float) (mult * xx); float qy = (float) (mult * yy); RealTupleType domain = overlay.getDomainType(); RealTupleType range = overlay.getRangeType(); float[][] setSamples = { {x1, x2 - qy, x2 + qy, x1}, {y1, y2 + qx, y2 - qx, y1} }; boolean missing = false; for (int i=0; i<setSamples.length; i++) { for (int j=0; j<setSamples[i].length; j++) { if (Float.isNaN(setSamples[i][j])) missing = true; } } GriddedSet fieldSet = null; try { if (filled && !missing) { // CTR START HERE figure out how to make the friggin' grid valid setSamples[0][0] = (x1 + x2) / 2; setSamples[1][0] = (y1 + y2) / 2; fieldSet = new Gridded2DSet(domain, setSamples, 2, 2, null, null, null, false); } else { fieldSet = new Gridded2DSet(domain, setSamples, setSamples[0].length, null, null, null, false); } } catch (VisADException exc) { exc.printStackTrace(); } float r = color.getRed() / 255f; float g = color.getGreen() / 255f; float b = color.getBlue() / 255f; float[][] fieldSamples = new float[3][setSamples[0].length]; Arrays.fill(fieldSamples[0], r); Arrays.fill(fieldSamples[1], g); Arrays.fill(fieldSamples[2], b); FlatField field = null; try { FunctionType fieldType = new FunctionType(domain, range); field = new FlatField(fieldType, fieldSet); field.setSamples(fieldSamples, false); } catch (VisADException exc) { exc.printStackTrace(); } catch (RemoteException exc) { exc.printStackTrace(); } return field; } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/fd1b0a858f008d0748107a71f2765d636dcdbf20/OverlayArrow.java/clean/loci/visbio/overlays/OverlayArrow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1910,
2828,
4303,
1435,
288,
565,
1431,
4992,
273,
374,
18,
3103,
74,
380,
9218,
18,
588,
8471,
620,
5621,
565,
1645,
12223,
273,
619,
22,
300,
619,
21,
31,
565,
1645,
9016,
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,
282,
1071,
1910,
2828,
4303,
1435,
288,
565,
1431,
4992,
273,
374,
18,
3103,
74,
380,
9218,
18,
588,
8471,
620,
5621,
565,
1645,
12223,
273,
619,
22,
300,
619,
21,
31,
565,
1645,
9016,
273,
... |
if (log.isDebug()) debug = "Execute sql: "+sql; | public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException { meta=(ExecSQLMeta)smi; data=(ExecSQLData)sdi; debug = "execute SQL start"; //$NON-NLS-1$ Row row = null; if (!meta.isExecutedEachInputRow()) { debug = "exec once: return result"; //$NON-NLS-1$ row = getResultRow(data.result, meta.getUpdateField(), meta.getInsertField(), meta.getDeleteField(), meta.getReadField()); putRow(row); setOutputDone(); // Stop processing, this is all we do! return false; } row = getRow(); if (row==null) // no more input to be expected... { setOutputDone(); return false; } StringBuffer sql = new StringBuffer( meta.getSql() ); if (first) // we just got started { first=false; debug = "Find the indexes of the arguments"; //$NON-NLS-1$ // Find the indexes of the arguments data.argumentIndexes = new int[meta.getArguments().length]; for (int i=0;i<meta.getArguments().length;i++) { data.argumentIndexes[i] = row.searchValueIndex(meta.getArguments()[i]); if (data.argumentIndexes[i]<0) { logError(Messages.getString("ExecSQL.Log.ErrorFindingField")+meta.getArguments()[i]+"]"); //$NON-NLS-1$ //$NON-NLS-2$ throw new KettleStepException(Messages.getString("ExecSQL.Exception.CouldNotFindField",meta.getArguments()[i])); //$NON-NLS-1$ //$NON-NLS-2$ } } debug = "Find the locations of the question marks in the String..."; //$NON-NLS-1$ // Find the locations of the question marks in the String... // We replace the question marks with the values... // We ignore quotes etc. to make inserts easier... data.markerPositions = new ArrayList(); int len = sql.length(); int pos = len-1; while (pos>=0) { if (sql.charAt(pos)=='?') data.markerPositions.add(new Integer(pos)); // save the marker position pos--; } } debug = "Replace the values in the SQL string..."; //$NON-NLS-1$ // Replace the values in the SQL string... for (int i=0;i<data.markerPositions.size();i++) { Value value = row.getValue( data.argumentIndexes[data.markerPositions.size()-i-1]); int pos = ((Integer)data.markerPositions.get(i)).intValue(); sql.replace(pos, pos+1, value.getString()); // replace the '?' with the String in the row. } if (log.isDebug()) debug = "Execute sql: "+sql; //$NON-NLS-1$ if (log.isRowLevel()) logRowlevel(Messages.getString("ExecSQL.Log.ExecutingSQLScript")+Const.CR+sql); //$NON-NLS-1$ data.result = data.db.execStatements(sql.toString()); debug = "Get result"; //$NON-NLS-1$ Row add = getResultRow(data.result, meta.getUpdateField(), meta.getInsertField(), meta.getDeleteField(), meta.getReadField()); row.addRow(add); if (!data.db.isAutoCommit()) data.db.commit(); putRow(row); // send it out! if ((linesWritten>0) && (linesWritten%Const.ROWS_UPDATE)==0) logBasic(Messages.getString("ExecSQL.Log.LineNumber")+linesWritten); //$NON-NLS-1$ return true; } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/3f39d037ba2ddf06fc422d6ae1f3add16df6eae5/ExecSQL.java/clean/src/be/ibridge/kettle/trans/step/sql/ExecSQL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1207,
1999,
12,
4160,
2781,
1358,
3029,
77,
16,
8693,
751,
1358,
272,
3211,
13,
1216,
1475,
278,
5929,
503,
202,
95,
3639,
2191,
28657,
1905,
3997,
2781,
13,
4808,
77,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1207,
1999,
12,
4160,
2781,
1358,
3029,
77,
16,
8693,
751,
1358,
272,
3211,
13,
1216,
1475,
278,
5929,
503,
202,
95,
3639,
2191,
28657,
1905,
3997,
2781,
13,
4808,
77,
3... | |
TokenMarker.LineContext context = lineMgr.getLineContext(i); ParserRule oldRule; ParserRuleSet oldRules; char[] oldSpanEndSubst; if(context == null) { oldRule = null; oldRules = null; oldSpanEndSubst = null; } else { oldRule = context.inRule; oldRules = context.rules; oldSpanEndSubst = (context.parent != null ? context.parent.spanEndSubst : null); } | oldContext = lineMgr.getLineContext(i); | public void markTokens(int lineIndex, TokenHandler tokenHandler) { Segment seg; if(SwingUtilities.isEventDispatchThread()) seg = this.seg; else seg = new Segment(); if(lineIndex < 0 || lineIndex >= lineMgr.getLineCount()) throw new ArrayIndexOutOfBoundsException(lineIndex); int firstInvalidLineContext = lineMgr.getFirstInvalidLineContext(); int start; if(textMode || firstInvalidLineContext == -1) { start = lineIndex; } else { start = Math.min(firstInvalidLineContext, lineIndex); } if(Debug.TOKEN_MARKER_DEBUG) Log.log(Log.DEBUG,this,"tokenize from " + start + " to " + lineIndex); for(int i = start; i <= lineIndex; i++) { getLineText(i,seg); TokenMarker.LineContext context = lineMgr.getLineContext(i); ParserRule oldRule; ParserRuleSet oldRules; char[] oldSpanEndSubst; if(context == null) { //System.err.println(i + ": null context"); oldRule = null; oldRules = null; oldSpanEndSubst = null; } else { oldRule = context.inRule; oldRules = context.rules; oldSpanEndSubst = (context.parent != null ? context.parent.spanEndSubst : null); } TokenMarker.LineContext prevContext = ( (i == 0 || textMode) ? null : lineMgr.getLineContext(i - 1) ); context = tokenMarker.markTokens(prevContext, (i == lineIndex ? tokenHandler : DummyTokenHandler.INSTANCE),seg); lineMgr.setLineContext(i,context); } int lineCount = lineMgr.getLineCount(); if(lineCount - 1 == lineIndex) lineMgr.setFirstInvalidLineContext(-1); //XXX //else if(nextLineRequested) // lineMgr.setFirstInvalidLineContext(lineIndex + 1); else if(firstInvalidLineContext == -1) /* do nothing */; else { lineMgr.setFirstInvalidLineContext(Math.max( firstInvalidLineContext,lineIndex + 1)); } } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/222c09d9e5611fef4dfb1ac6f0298aedd5529681/Buffer.java/clean/org/gjt/sp/jedit/Buffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2267,
5157,
12,
474,
980,
1016,
16,
3155,
1503,
1147,
1503,
13,
202,
95,
202,
202,
4131,
2291,
31,
202,
202,
430,
12,
6050,
310,
11864,
18,
291,
1133,
5325,
3830,
10756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2267,
5157,
12,
474,
980,
1016,
16,
3155,
1503,
1147,
1503,
13,
202,
95,
202,
202,
4131,
2291,
31,
202,
202,
430,
12,
6050,
310,
11864,
18,
291,
1133,
5325,
3830,
10756,
... |
if(rp.getTurn()%100==0 && getHP()<getBaseHP()); | if(rp.getTurn()%100==0 && getHP()<getBaseHP()) | public void logic() { Log4J.startMethod(logger,"logic"); if(getNearestPlayer(20)==null && owner==null) // if there is no player near and none will see us... { stop(); world.modify(this); return; } hungry++; SheepFood food=null; if(hungry>50 && (food=getNearestFood(6))!=null && weight<MAX_WEIGHT) { if(nextto(food,0.25)) { logger.debug("Sheep eats"); setIdea("eat"); eat(food); clearPath(); stop(); } else { logger.debug("Sheep moves to food"); setIdea("food");// setMovement(food,0,0); setAsynchonousMovement(food,0,0); moveto(SPEED); } } else if(owner==null) { logger.debug("Sheep(ownerless) moves randomly"); setIdea("walk"); moveRandomly(SPEED); } else if(owner!=null && !nextto(owner,0.25)) { logger.debug("Sheep(owner) moves to Owner"); setIdea("follow");// setMovement(owner,0,0); setAsynchonousMovement(owner,0,0); moveto(SPEED); } else { logger.debug("Sheep has nothing to do"); setIdea("stop"); stop(); clearPath(); } if(owner!=null && owner.has("text") && owner.get("text").contains("sheep")) { logger.debug("Sheep(owner) moves to Owner"); setIdea("follow"); clearPath();// setMovement(owner,0,0); setAsynchonousMovement(owner,0,0); moveto(SPEED); } if(!stopped()) { StendhalRPAction.move(this); // if we collided with something we stop and clear the path if (collided()) { stop(); clearPath(); } } if(rp.getTurn()%100==0 && getHP()<getBaseHP()); { if(getHP()+5<=getBaseHP()) { setHP(getHP()+5); } else { setHP(getBaseHP()); } } world.modify(this); Log4J.finishMethod(logger,"logic"); } | 4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/1e56146169cbcd6f1065cc0b235e5f35055c7c5d/Sheep.java/buggy/src/games/stendhal/server/entity/creature/Sheep.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4058,
1435,
565,
288,
565,
1827,
24,
46,
18,
1937,
1305,
12,
4901,
10837,
28339,
8863,
565,
309,
12,
588,
28031,
12148,
12,
3462,
13,
631,
2011,
597,
3410,
631,
2011,
13,
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,
282,
1071,
918,
4058,
1435,
565,
288,
565,
1827,
24,
46,
18,
1937,
1305,
12,
4901,
10837,
28339,
8863,
565,
309,
12,
588,
28031,
12148,
12,
3462,
13,
631,
2011,
597,
3410,
631,
2011,
13,
368... |
return graphics.indexOf(geometry); | synchronized (graphics) { return graphics.indexOf(geometry); } | protected int _indexOf(OMGeometry geometry) { return graphics.indexOf(geometry); } | 47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/5c8becaa532b8787aab339fe2dead5d8a29304d4/OMGraphicList.java/buggy/src/openmap/com/bbn/openmap/omGraphics/OMGraphicList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
389,
31806,
12,
1872,
9823,
5316,
13,
288,
202,
22043,
261,
31586,
13,
288,
327,
17313,
18,
31806,
12,
14330,
1769,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
389,
31806,
12,
1872,
9823,
5316,
13,
288,
202,
22043,
261,
31586,
13,
288,
327,
17313,
18,
31806,
12,
14330,
1769,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
break; | continue Loop; | static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; String[] strings = idata.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: for (;;) { try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); int pcNew = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcNew >= 0) { // Has catch block doCatch = true; } } if (pcNew < 0) { pcNew = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcNew < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // Notify instruction observer if necessary // and point pc and pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = pcNew; continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); javaException = new JavaScriptException(value, idata.itsSourceFile, sourceLine); exceptionPC = pc - 1; if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getJavaCatchPC(iCode); continue Loop; } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; } pc += 2; break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); stack[stackTop--] = null; continue Loop; } pc += 2; break; } case Token.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc); continue Loop; case Icode_RETSUB : { int slot = (iCode[pc] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 1 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } int newPC; Object value = stack[LOCAL_SHFT + slot]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; newPC = getJavaCatchPC(iCode); } else { // Normal return from GOSUB newPC = (int)sDbl[LOCAL_SHFT + slot]; } pcPrevBranch = pc = newPC; continue Loop; } case Token.POP : stack[stackTop] = null; stackTop--; break; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; break; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; break; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; break; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; break; } case Token.BINDNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case Token.SETNAME : { String name = strings[getIndex(iCode, pc)]; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, name); pc += 2; break; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); break; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); break; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); break; } case Token.LOCAL_SAVE : { int slot = (iCode[pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; --stackTop; ++pc; break; } case Token.LOCAL_LOAD : { int slot = (iCode[pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; ++pc; break; } case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); int count = getIndex(iCode, pc + 4); stackTop -= count; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, count); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 6; break; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, count, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getIndex(iCode, pc + 2); stackTop -= count; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, count, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, count); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = strings[getIndex(iCode, pc)]; if (lhs == null) lhs = undefined; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; pc += 4; break; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case Icode_TYPEOFNAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case Icode_NAME_AND_THIS : { String name = strings[getIndex(iCode, pc)]; boolean skipGetThis = (0 != iCode[pc + 2]); stackTop = do_nameAndThis(stack, stackTop, scope, name, skipGetThis); pc += 3; break; } case Token.STRING : stack[++stackTop] = strings[getIndex(iCode, pc)]; pc += 2; break; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; break; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; break; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[getIndex(iCode, pc)]; pc += 2; break; case Token.NAME : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.name(scope, name); pc += 2; break; } case Icode_NAMEINC : case Icode_NAMEDEC : { String name = strings[getIndex(iCode, pc)]; stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, name, op == Icode_NAMEINC); pc += 2; break; } case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; break; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; break; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case Token.NULL : stack[++stackTop] = null; break; case Token.THIS : stack[++stackTop] = thisObj; break; case Token.THISFN : stack[++stackTop] = fnOrScript; break; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; break; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; break; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; break; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; break; case Token.CATCH_SCOPE : { String name = strings[getIndex(iCode, pc)]; stack[stackTop] = ScriptRuntime.newCatchScope(name, stack[stackTop]); pc += 2; break; } case Token.ENUM_INIT : { int slot = (iCode[pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.enumInit(lhs, scope); ++pc; break; } case Token.ENUM_NEXT : case Token.ENUM_ID : { int slot = (iCode[pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); ++pc; break; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); break; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; break; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; break; } case Icode_SCOPE : stack[++stackTop] = scope; break; case Icode_CLOSURE : { int i = getIndex(iCode, pc); InterpreterData closureData = idata.itsNestedFunctions[i]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); pc += 2; break; } case Token.REGEXP : { int i = getIndex(iCode, pc); Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[i]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[i]; } stack[++stackTop] = regexp; pc += 2; break; } case Icode_LITERAL_NEW : { int i = getInt(iCode, pc); ++stackTop; stack[stackTop] = new Object[i]; sDbl[stackTop] = 0; pc += 4; break; } case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; break; } case Token.ARRAYLIT : case Token.OBJECTLIT : { int offset = getInt(iCode, pc); Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.ARRAYLIT) { int[] skipIndexces = null; if (offset >= 0) { skipIndexces = (int[])idata.literalIds[offset]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } else { Object[] ids = (Object[])idata.literalIds[offset]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } stack[stackTop] = val; pc += 4; break; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; break; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } // end of interpreter switch } } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } javaException = ex; exceptionPC = pc; pc = getJavaCatchPC(iCode); continue Loop; } } cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/369d8e109106915195bef3af1282543ab09e3869/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701... |
subtemplates = doc.getAllSubElements(); | subtemplates = doc.getAllSubElements(templateSelector); | public boolean subtemplatesCacheable(A_CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) { boolean cacheable = true; CmsXmlTemplateFile doc = null; Vector subtemplates = null; try { doc = this.getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector); doc.init(cms, templateFile); subtemplates = doc.getAllSubElements(); } catch(Exception e) { System.err.println(e); return false; } int numSubtemplates = subtemplates.size(); for(int i=0; i<numSubtemplates; i++) { String elName = (String)subtemplates.elementAt(i); String className = null; String templateName = null; try { className = getTemplateClassName(elName, doc, parameters); templateName = getTemplateFileName(elName, doc, parameters); } catch(CmsException e) { // There was an error while reading the class name or template name // from the subtemplate. // So we cannot determine the cacheability. if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, getClassName() + "Could not determine cacheability of subelement " + elName + " in template file " + doc.getFilename() + ". There were missing datablocks."); } return false; } try { I_CmsTemplate templClass = (I_CmsTemplate)CmsTemplateClassManager.getClassInstance(cms, className); cacheable = cacheable && templClass.isCacheable(cms, templateName, elName, parameters, null); } catch(Exception e) { System.err.println("E: " + e); } } return cacheable; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a095732b650580ceb1110310aced8c5bc3844074/CmsXmlTemplate.java/clean/src/com/opencms/template/CmsXmlTemplate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
720,
8502,
1649,
429,
12,
37,
67,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
18559,
1472,
16,
514,
1542,
4320,
13,
288,
540,
1250,
27730,
273,
638,
31,
3639,
16084... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
720,
8502,
1649,
429,
12,
37,
67,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
18559,
1472,
16,
514,
1542,
4320,
13,
288,
540,
1250,
27730,
273,
638,
31,
3639,
16084... |
if (IS_ARG() && ISSPACE(c)) { | if (isArgState() && isSpace(c)) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261... |
double d = toNumber(val); if (d != d || d == 0.0 || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY) { return 0; } | double d = toNumber(val); if (d != d || d == 0.0 || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY) { return 0; } | public static char toUint16(Object val) { long int16 = 0x10000; double d = toNumber(val); if (d != d || d == 0.0 || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY) { return 0; } d = Math.IEEEremainder(d, int16); d = d >= 0 ? d : d + int16; return (char) Math.floor(d); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/143829c7ce50e2f730490d4ac63f6e9ac9322095/ScriptRuntime.java/buggy/js/rhino/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1149,
358,
5487,
2313,
12,
921,
1244,
13,
288,
202,
5748,
509,
2313,
273,
374,
92,
23899,
31,
202,
9056,
302,
273,
358,
1854,
12,
1125,
1769,
202,
430,
261,
72,
480,
302,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1149,
358,
5487,
2313,
12,
921,
1244,
13,
288,
202,
5748,
509,
2313,
273,
374,
92,
23899,
31,
202,
9056,
302,
273,
358,
1854,
12,
1125,
1769,
202,
430,
261,
72,
480,
302,
7... |
addMenuItem(menu, "Game Info", KeyEvent.VK_G, KeyEvent.VK_I, m_shortcutKeyMask, "game-info"); | menu.addItem("Game Info", KeyEvent.VK_G, KeyEvent.VK_I, m_shortcut, "game-info"); | private JMenu createMenuEdit() { JMenu menu = createMenu("Edit", KeyEvent.VK_E); addMenuItem(menu, "Find in Comments...", KeyEvent.VK_F, KeyEvent.VK_F, m_shortcutKeyMask, "find-in-comments"); m_itemFindNext = addMenuItem(menu, "Find Next", KeyEvent.VK_N, KeyEvent.VK_F3, getFunctionKeyShortcut(), "find-next"); m_itemFindNext.setEnabled(false); menu.addSeparator(); addMenuItem(menu, "Game Info", KeyEvent.VK_G, KeyEvent.VK_I, m_shortcutKeyMask, "game-info"); menu.add(createBoardSizeMenu()); menu.add(createHandicapMenu()); menu.addSeparator(); m_itemMakeMainVar = addMenuItem(menu, "Make Main Variation", KeyEvent.VK_M, "make-main-variation"); m_itemKeepOnlyMainVar = addMenuItem(menu, "Delete Side Variations", KeyEvent.VK_D, "keep-only-main-variation"); m_itemKeepOnlyPosition = addMenuItem(menu, "Keep Only Position", KeyEvent.VK_K, "keep-only-position"); m_itemTruncate = addMenuItem(menu, "Truncate", KeyEvent.VK_T, "truncate"); m_itemTruncateChildren = addMenuItem(menu, "Truncate Children", KeyEvent.VK_C, "truncate-children"); menu.addSeparator(); m_itemSetup = new JCheckBoxMenuItem("Setup Mode"); addMenuItem(menu, m_itemSetup, KeyEvent.VK_S, "setup"); ButtonGroup group = new ButtonGroup(); m_itemSetupBlack = addRadioItem(menu, group, "Setup Black", KeyEvent.VK_B, "setup-black"); m_itemSetupBlack.setSelected(true); m_itemSetupWhite = addRadioItem(menu, group, "Setup White", KeyEvent.VK_W, "setup-white"); return menu; } | 51310 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51310/d10ef3afb87b5fa533364efda721c197866c21a6/GoGuiMenuBar.java/buggy/src/net/sf/gogui/gogui/GoGuiMenuBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
804,
4599,
752,
4599,
4666,
1435,
565,
288,
3639,
804,
4599,
3824,
273,
752,
4599,
2932,
4666,
3113,
23737,
18,
58,
47,
67,
41,
1769,
3639,
527,
12958,
12,
5414,
16,
315,
3125,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
804,
4599,
752,
4599,
4666,
1435,
565,
288,
3639,
804,
4599,
3824,
273,
752,
4599,
2932,
4666,
3113,
23737,
18,
58,
47,
67,
41,
1769,
3639,
527,
12958,
12,
5414,
16,
315,
3125,
31... |
public AdminWriter(String lineSeparator) { | public AdminWriter(String lineSeparator, final String charset) { | public AdminWriter(String lineSeparator) { myLineSeparator = lineSeparator; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/3de0fd6612b01325d3a8e2dd29c980447948f32c/AdminWriter.java/buggy/plugins/cvs2/smartcvs-src/org/netbeans/lib/cvsclient/admin/AdminWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
7807,
2289,
12,
780,
31053,
16,
727,
514,
4856,
13,
288,
1850,
3399,
1670,
6581,
273,
31053,
31,
3639,
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,
540,
1071,
7807,
2289,
12,
780,
31053,
16,
727,
514,
4856,
13,
288,
1850,
3399,
1670,
6581,
273,
31053,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
throw new IllegalStateException("Method '" + GETTER_PREFIX + name + "' was not found for " | throw new IllegalStateException("Method '" + GETTER_PREFIX + name + "' was not found for " | public void addProperty(final String name, final boolean readable, final boolean writeable) { final PropertyInfo info = new PropertyInfo(); info.setReadable(readable); info.setWriteable(writeable); try { if (readable) { info.setReadMethod(linkedClass_.getMethod(GETTER_PREFIX + name, null)); } } catch (final NoSuchMethodException e) { throw new IllegalStateException("Method '" + GETTER_PREFIX + name + "' was not found for " + name + " property in " + linkedClass_.getName()); } // For the setters, we have to loop through the methods since we do not know what type of argument // the method takes. if (writeable) { final Method[] methods = linkedClass_.getMethods(); final String setMethodName = SETTER_PREFIX + name; for( int i=0; i<methods.length; i++ ) { if( methods[i].getName().equals(setMethodName) && methods[i].getParameterTypes().length == 1 ) { info.setWriteMethod(methods[i]); break; } } if(info.getWriteMethod() == null) { throw new IllegalStateException("Method '" + SETTER_PREFIX + name + "' was not found for " + name + " property in " + linkedClass_.getName()); } } propertyMap_.put(name, info); } | 47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/a29b4d215e65ac8211b0fc8aaf4d375d3c5c55c3/ClassConfiguration.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/configuration/ClassConfiguration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14324,
12,
6385,
514,
508,
16,
727,
1250,
7471,
16,
727,
1250,
30223,
13,
288,
3639,
727,
4276,
966,
1123,
273,
394,
4276,
966,
5621,
3639,
1123,
18,
542,
14151,
12,
11018,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14324,
12,
6385,
514,
508,
16,
727,
1250,
7471,
16,
727,
1250,
30223,
13,
288,
3639,
727,
4276,
966,
1123,
273,
394,
4276,
966,
5621,
3639,
1123,
18,
542,
14151,
12,
11018,
1... |
private void pushAsWrapperObject(double num) { // Generate code to create the new numeric constant // // new java/lang/<WrapperType> // dup // push <number> // invokestatic java/lang/<WrapperType>/<init>(X)V String wrapperType; String signature; boolean isInteger; int inum = (int)num; if (inum == num) { isInteger = true; if ((byte)inum == inum) { wrapperType = "java/lang/Byte"; signature = "(B)V"; } else if ((short)inum == inum) { wrapperType = "java/lang/Short"; signature = "(S)V"; } else { wrapperType = "java/lang/Integer"; signature = "(I)V"; } } else { isInteger = false; // See comments in push(double) //if ((float)num == num) { // wrapperType = "java/lang/Float"; // signature = "(F)V"; //} //else { wrapperType = "java/lang/Double"; signature = "(D)V"; //} } addByteCode(ByteCode.NEW, wrapperType); addByteCode(ByteCode.DUP); if (isInteger) { push(inum); } else { push(num); } addSpecialInvoke(wrapperType, "<init>", signature); } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/64dc04549cad044865eae2e65e775ddc0f292717/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1817,
1463,
3611,
921,
12,
9056,
818,
13,
565,
288,
3639,
368,
6654,
981,
358,
752,
326,
394,
6389,
5381,
3639,
368,
3639,
368,
394,
2252,
19,
4936,
28177,
3611,
559,
34,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1817,
1463,
3611,
921,
12,
9056,
818,
13,
565,
288,
3639,
368,
6654,
981,
358,
752,
326,
394,
6389,
5381,
3639,
368,
3639,
368,
394,
2252,
19,
4936,
28177,
3611,
559,
34,
363... | ||
for (int idx = 0; idx < table.getColumnCount(); idx++) | for (int idx = 0; idx < pkColumns.length; idx++) | private Identity buildIdentityFromPKs(Table table, DynaBean bean) { Identity identity = new Identity(table.getName()); for (int idx = 0; idx < table.getColumnCount(); idx++) { Column column = table.getColumn(idx); identity.setIdentityColumn(column.getName(), bean.get(column.getName())); } return identity; } | 1224 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1224/a1e8106e78949f71a018fcfcf77f648db0ac37b1/DataToDatabaseSink.java/buggy/src/java/org/apache/ddlutils/io/DataToDatabaseSink.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
7808,
1361,
4334,
1265,
8784,
87,
12,
1388,
1014,
16,
463,
23041,
3381,
3931,
13,
565,
288,
3639,
7808,
4215,
273,
394,
7808,
12,
2121,
18,
17994,
10663,
3639,
364,
261,
474,
2067,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7808,
1361,
4334,
1265,
8784,
87,
12,
1388,
1014,
16,
463,
23041,
3381,
3931,
13,
565,
288,
3639,
7808,
4215,
273,
394,
7808,
12,
2121,
18,
17994,
10663,
3639,
364,
261,
474,
2067,
... |
AbstractTableModel model = new AbstractTableModel() { public int getRowCount() { return quickDialData.size(); } public int getColumnCount() { return 4; } public String getColumnName(int column) { switch (column) { case 0: return messages.getString("description"); case 1: return messages.getString("quickdial"); case 2: return messages.getString("vanity"); case 3: return messages.getString("number"); default: return null; } } public Object getValueAt(int rowIndex, int columnIndex) { QuickDial quick = (QuickDial) quickDialData.get(rowIndex); switch (columnIndex) { case 0: return quick.getDescription(); case 1: return quick.getQuickdial(); case 2: return quick.getVanity(); case 3: return quick.getNumber(); default: return null; } } /** * Sets a value to a specific position */ public void setValueAt(Object object, int rowIndex, int columnIndex) { if (rowIndex < table.getRowCount()) { QuickDial dial = (QuickDial) quickDialData.get(rowIndex); switch (columnIndex) { case 0: dial.setDescription(object.toString()); break; case 1: dial.setQuickdial(object.toString()); break; case 2: dial.setVanity(object.toString()); break; case 3: dial.setNumber(object.toString()); break; } fireTableCellUpdated(rowIndex, columnIndex); } } }; table = new JTable(model) { | table = new JTable(dataModel) { | private void drawDialog() { super.dialogInit(); setTitle(messages.getString("quickdial")); setModal(true); setLayout(new BorderLayout()); getContentPane().setLayout(new BorderLayout()); JPanel bottomPane = new JPanel(); JPanel topPane = new JPanel(); topPane.setLayout(new FlowLayout(FlowLayout.CENTER)); KeyListener keyListener = (new KeyAdapter() { public void keyPressed(KeyEvent e) { Debug.msg("KEY: " + e); if (e.getKeyCode() == KeyEvent.VK_ESCAPE || (e.getSource() == cancelButton && e.getKeyCode() == KeyEvent.VK_ENTER)) { pressed_OK = false; setVisible(false); } if (e.getSource() == okButton && e.getKeyCode() == KeyEvent.VK_ENTER) { pressed_OK = true; setVisible(false); } } }); addKeyListener(keyListener); ActionListener actionListener = new ActionListener() { public void actionPerformed(ActionEvent e) { Object source = e.getSource(); pressed_OK = (source == okButton); setVisible((source != okButton) && (source != cancelButton)); if (e.getSource() == delButton) { int row = table.getSelectedRow(); if (row >= 0) { quickDialData.remove(row); AbstractTableModel model = (AbstractTableModel) table .getModel(); model.fireTableRowsDeleted(row, row); } } } }; okButton = new JButton("Okay"); okButton.setEnabled(JFritz.DEVEL_VERSION); cancelButton = new JButton("Abbruch"); newButton = new JButton("Neue Kurzwahl"); newButton.setIcon(new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/modify.png")))); delButton = new JButton("Kurzwahl lschen"); delButton.setIcon(new ImageIcon(Toolkit.getDefaultToolkit().getImage( getClass().getResource( "/de/moonflower/jfritz/resources/images/delete.png")))); topPane.add(newButton); topPane.add(delButton); JButton b1 = new JButton("Von der Box holen"); b1.setActionCommand("fetchSIP"); b1.addActionListener(actionListener); JButton b2 = new JButton("Auf die Box speichern"); b2.setEnabled(false); topPane.add(b1); topPane.add(b2); okButton.addActionListener(actionListener); okButton.addKeyListener(keyListener); cancelButton.addActionListener(actionListener); cancelButton.addKeyListener(keyListener); newButton.addActionListener(actionListener); delButton.addActionListener(actionListener); bottomPane.add(okButton); bottomPane.add(cancelButton); AbstractTableModel model = new AbstractTableModel() { public int getRowCount() { return quickDialData.size(); } public int getColumnCount() { return 4; } public String getColumnName(int column) { switch (column) { case 0: return messages.getString("description"); case 1: return messages.getString("quickdial"); case 2: return messages.getString("vanity"); case 3: return messages.getString("number"); default: return null; } } public Object getValueAt(int rowIndex, int columnIndex) { QuickDial quick = (QuickDial) quickDialData.get(rowIndex); switch (columnIndex) { case 0: return quick.getDescription(); case 1: return quick.getQuickdial(); case 2: return quick.getVanity(); case 3: return quick.getNumber(); default: return null; } } /** * Sets a value to a specific position */ public void setValueAt(Object object, int rowIndex, int columnIndex) { if (rowIndex < table.getRowCount()) { QuickDial dial = (QuickDial) quickDialData.get(rowIndex); switch (columnIndex) { case 0: dial.setDescription(object.toString()); break; case 1: dial.setQuickdial(object.toString()); break; case 2: dial.setVanity(object.toString()); break; case 3: dial.setNumber(object.toString()); break; } fireTableCellUpdated(rowIndex, columnIndex); } } }; table = new JTable(model) { public Component prepareRenderer(TableCellRenderer renderer, int rowIndex, int vColIndex) { Component c = super.prepareRenderer(renderer, rowIndex, vColIndex); if (rowIndex % 2 == 0 && !isCellSelected(rowIndex, vColIndex)) { c.setBackground(new Color(255, 255, 200)); } else if (!isCellSelected(rowIndex, vColIndex)) { c.setBackground(getBackground()); } else { c.setBackground(new Color(204, 204, 255)); } return c; } public boolean isCellEditable(int rowIndex, int columnIndex) { return true; } }; table.setRowHeight(24); table.setFocusable(false); table.setAutoCreateColumnsFromModel(false); table.setColumnSelectionAllowed(false); table.setCellSelectionEnabled(false); table.setRowSelectionAllowed(true); table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); if (table.getRowCount() != 0) table.setRowSelectionInterval(0, 0); table.getColumnModel().getColumn(0).setCellEditor( new ParticipantCellEditor()); table.getColumnModel().getColumn(1).setCellEditor( new ParticipantCellEditor()); table.getColumnModel().getColumn(2).setCellEditor( new ParticipantCellEditor()); JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); panel.add(topPane, BorderLayout.NORTH); panel.add(new JScrollPane(table), BorderLayout.CENTER); panel.add(bottomPane, BorderLayout.SOUTH); getContentPane().add(panel); setSize(new Dimension(400,350)); // setResizable(false); // pack(); } | 7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/b1f015cd662602824d1219daaa6ae8536cabc7ef/QuickDialDialog.java/buggy/jfritz/src/de/moonflower/jfritz/dialogs/quickdial/QuickDialDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3724,
6353,
1435,
288,
202,
202,
9565,
18,
12730,
2570,
5621,
202,
202,
542,
4247,
12,
6833,
18,
588,
780,
2932,
19525,
25909,
7923,
1769,
202,
202,
542,
20191,
12,
3767,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
6353,
1435,
288,
202,
202,
9565,
18,
12730,
2570,
5621,
202,
202,
542,
4247,
12,
6833,
18,
588,
780,
2932,
19525,
25909,
7923,
1769,
202,
202,
542,
20191,
12,
3767,
... |
chkBox .setEnabled( !( ( (Template) templates.get( selectedIndex ) ) .getCheatSheetId( ).equals( "" ) || ( (Template) templates .get( selectedIndex ) ) .getCheatSheetId( ) .equals( "org.eclipse.birt.report.designer.ui.cheatsheet.firstreport" ) ) ); | chkBox.setEnabled( !( ( (Template) templates.get( selectedIndex ) ).getCheatSheetId( ) .equals( "" ) || ( (Template) templates.get( selectedIndex ) ).getCheatSheetId( ) .equals( "org.eclipse.birt.report.designer.ui.cheatsheet.firstreport" ) ) ); | public void handleEvent( Event event ) { // change description/image selectedIndex = templateList.getSelectionIndex( ); description.setText( ( (Template) templates.get( selectedIndex ) ) .getTemplateDescription( ) ); // we need to relayout if the new text has different number of lines previewPane.layout( ); String key = ( (Template) templates.get( selectedIndex ) ) .getPicturePath( ); Object img = null; if ( key == null || "".equals( key.trim( ) ) ) { img = ReportPlatformUIImages .getImage( IReportGraphicConstants.ICON_TEMPLATE_NO_PREVIEW ); } else { img = imageMap.get( key ); if ( img == null ) { img = ReportPlugin.getImage( key ); imageMap.put( key, img ); } } previewCanvas.clear( ); previewCanvas.loadImage( ( (Image) img ) ); previewCanvas.showOriginal( ); chkBox .setEnabled( !( ( (Template) templates.get( selectedIndex ) ) .getCheatSheetId( ).equals( "" ) || ( (Template) templates .get( selectedIndex ) ) .getCheatSheetId( ) .equals( "org.eclipse.birt.report.designer.ui.cheatsheet.firstreport" ) ) ); //$NON-NLS-1$ } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b537714732979acce16d6e2b388b62e52e38b0ca/WizardTemplateChoicePage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardTemplateChoicePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1640,
1133,
12,
2587,
871,
262,
202,
202,
95,
1082,
202,
759,
2549,
2477,
19,
2730,
1082,
202,
8109,
1016,
273,
1542,
682,
18,
588,
6233,
1016,
12,
11272,
1082,
202,
338... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
1133,
12,
2587,
871,
262,
202,
202,
95,
1082,
202,
759,
2549,
2477,
19,
2730,
1082,
202,
8109,
1016,
273,
1542,
682,
18,
588,
6233,
1016,
12,
11272,
1082,
202,
338... |
public PruneInfeasibleExceptionEdges(CFG cfg, TypeDataflow typeDataflow, ConstantPoolGen cpg) { | public PruneInfeasibleExceptionEdges(CFG cfg, MethodGen methodGen, TypeDataflow typeDataflow, ConstantPoolGen cpg) { | public PruneInfeasibleExceptionEdges(CFG cfg, TypeDataflow typeDataflow, ConstantPoolGen cpg) { this.cfg = cfg; this.typeDataflow = typeDataflow; this.cpg = cpg; } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/0182fa6e66a762f3778ecd658f861ed1093cf9b6/PruneInfeasibleExceptionEdges.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/PruneInfeasibleExceptionEdges.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2301,
7556,
382,
3030,
30711,
503,
10697,
12,
19727,
2776,
16,
1412,
751,
2426,
618,
751,
2426,
16,
10551,
2864,
7642,
3283,
75,
13,
288,
202,
202,
2211,
18,
7066,
273,
2776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2301,
7556,
382,
3030,
30711,
503,
10697,
12,
19727,
2776,
16,
1412,
751,
2426,
618,
751,
2426,
16,
10551,
2864,
7642,
3283,
75,
13,
288,
202,
202,
2211,
18,
7066,
273,
2776,
... |
ZParameter(ICalTok tok, String value) { mTok = tok; mName = tok.toString(); | ZParameter(String name, String value) { setName(name); | ZParameter(ICalTok tok, String value) { mTok = tok; mName = tok.toString(); setValue(value); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/0c9fab6c109d16c5d723fd25631e62949944518a/ZCalendar.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/calendar/ZCalendar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
2285,
1662,
12,
2871,
287,
20477,
946,
16,
514,
460,
13,
288,
5411,
312,
20477,
273,
946,
31,
5411,
312,
461,
273,
946,
18,
10492,
5621,
5411,
5524,
12,
1132,
1769,
3639,
289,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2285,
1662,
12,
2871,
287,
20477,
946,
16,
514,
460,
13,
288,
5411,
312,
20477,
273,
946,
31,
5411,
312,
461,
273,
946,
18,
10492,
5621,
5411,
5524,
12,
1132,
1769,
3639,
289,
2,
-100,
... |
private void addCondition( Condition c ) { if ( conditions == null ) { | private void addCondition(Condition c) { if (conditions == null) { | private void addCondition( Condition c ) { if ( conditions == null ) { conditions = new java.util.ArrayList(); } conditions.add( c ); } | 8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/c5e4137650b883bbb105b1671ee06fa69cd65ec3/Selector.java/buggy/src/java/org/xhtmlrenderer/css/newmatch/Selector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
3418,
12,
7949,
276,
262,
288,
3639,
309,
261,
4636,
422,
446,
262,
288,
5411,
4636,
273,
394,
2252,
18,
1367,
18,
19558,
5621,
3639,
289,
3639,
4636,
18,
1289,
12,
276,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
3418,
12,
7949,
276,
262,
288,
3639,
309,
261,
4636,
422,
446,
262,
288,
5411,
4636,
273,
394,
2252,
18,
1367,
18,
19558,
5621,
3639,
289,
3639,
4636,
18,
1289,
12,
276,... |
scalars[i] = OPT_IRTools.moveIntoRegister(ir.regpool, defI, defaultValue); | scalars[i] = OPT_IRTools.moveIntoRegister(ir.regpool, defI, defaultValue.copy()); | public void transform () { // first set up temporary scalars for the array elements // initialize them before the def. OPT_RegisterOperand scalars[] = new OPT_RegisterOperand[size]; VM_Type elementType = vmArray.getElementType(); OPT_RegisterOperand def = reg.defList; OPT_Instruction defI = def.instruction; OPT_Operand defaultValue = OPT_IRTools.getDefaultOperand(elementType.getTypeRef()); for (int i = 0; i < size; i++) { scalars[i] = OPT_IRTools.moveIntoRegister(ir.regpool, defI, defaultValue); } // now remove the def if (DEBUG) System.out.println("Removing " + defI); OPT_DefUse.removeInstructionAndUpdateDU(defI); // now handle the uses for (OPT_RegisterOperand use = reg.useList; use != null; use = (OPT_RegisterOperand)use.getNext()) { scalarReplace(use, scalars); } } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/f058924457fa7c3534598c7957e9a277335f4b1b/OPT_ShortArrayReplacer.java/clean/rvm/src/vm/compilers/optimizing/optimizations/global/simpleSSA/escape/OPT_ShortArrayReplacer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2510,
1832,
288,
565,
368,
1122,
444,
731,
6269,
23743,
364,
326,
526,
2186,
565,
368,
4046,
2182,
1865,
326,
1652,
18,
565,
16456,
67,
3996,
10265,
23743,
8526,
273,
394,
1645... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2510,
1832,
288,
565,
368,
1122,
444,
731,
6269,
23743,
364,
326,
526,
2186,
565,
368,
4046,
2182,
1865,
326,
1652,
18,
565,
16456,
67,
3996,
10265,
23743,
8526,
273,
394,
1645... |
cmof.reflection.Object object = new cmof.PropertyImpl(_414, extent, null, "cmof.PropertyImpl", new String[]{"cmof.RedefinableElementCustom", "core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.redefinitions.RedefinableElementCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("subsettedProperty", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinitionContext", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedProperty", new java.lang.Object[] {_735});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("datatype", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedElement", new java.lang.Object[] {_735});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("association", _697);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isComposite", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("upper", new Long(1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("lower", new Integer(0));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isReadOnly", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("featuringClassifier", new java.lang.Object[] {_578});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "owner");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _725);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owningAssociation", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("class", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("details", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("default", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Element.owner");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerivedUnion", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("opposite", _516);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isID", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {}); | cmof.reflection.Object object = new cmof.AssociationImpl(_464, extent, null, "cmof.AssociationImpl", new String[]{"cmof.ClassifierCustom", "core.abstractions.umlsuper.ClassifierCustom", "cmof.TypeCustom", "core.abstractions.classifiers.ClassifierCustom", "core.abstractions.typedelements.TypeCustom", "core.abstractions.namespaces.NamespaceCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("packageImport", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("metaClassifier", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isAbstract", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("attribute", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("member", new java.lang.Object[] {_639,_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedMember", new java.lang.Object[] {_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("metaInstances", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _485);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("feature", new java.lang.Object[] {_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _649);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _485);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("elementImport", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("relatedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedRule", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _485);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("endType", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("importedMember", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedEnd", new java.lang.Object[] {_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("general", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.null");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("inheritedMember", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("memberEnd", new java.lang.Object[] {_639,_222});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("package", _485); | private static cmof.reflection.Object getObject746(hub.sam.mof.reflection.ExtentImpl extent) { cmof.reflection.Object object = new cmof.PropertyImpl(_414, extent, null, "cmof.PropertyImpl", new String[]{"cmof.RedefinableElementCustom", "core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.redefinitions.RedefinableElementCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("subsettedProperty", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinitionContext", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedProperty", new java.lang.Object[] {_735});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("datatype", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedElement", new java.lang.Object[] {_735});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("association", _697);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isComposite", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("upper", new Long(1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("lower", new Integer(0));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isReadOnly", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("featuringClassifier", new java.lang.Object[] {_578});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "owner");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _725);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owningAssociation", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("class", _578);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("details", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("default", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Element.owner");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerivedUnion", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("opposite", _516);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isID", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {}); return object; } | 11562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11562/de04478dee56227ec288b43e5ca731f9bbd84f7c/CMOF.java/buggy/SimpleMOF2/resources/repository/initial-src/cmof/CMOF.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
5003,
792,
18,
26606,
18,
921,
6455,
5608,
26,
12,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
17639,
2828,
11933,
13,
288,
3639,
5003,
792,
18,
26606,
18,
921,
733,
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,
5003,
792,
18,
26606,
18,
921,
6455,
5608,
26,
12,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
17639,
2828,
11933,
13,
288,
3639,
5003,
792,
18,
26606,
18,
921,
733,
273,
... |
if (viewer != null) viewer.setSelection(selection, reveal); | if (viewer != null) { viewer.setSelection(selection, reveal); } | public void setSelection(ISelection selection, boolean reveal) { Assert.isTrue(selection instanceof IStructuredSelection); IStructuredSelection ssel = (IStructuredSelection) selection; for (Iterator i = ssel.iterator(); i.hasNext();) Assert.isTrue(i.next() instanceof IMarker); if (viewer != null) viewer.setSelection(selection, reveal); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/TaskList.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/tasklist/TaskList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
6233,
12,
45,
6233,
4421,
16,
1250,
283,
24293,
13,
288,
3639,
5452,
18,
291,
5510,
12,
10705,
1276,
467,
30733,
6233,
1769,
3639,
467,
30733,
6233,
272,
1786,
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,
377,
1071,
918,
444,
6233,
12,
45,
6233,
4421,
16,
1250,
283,
24293,
13,
288,
3639,
5452,
18,
291,
5510,
12,
10705,
1276,
467,
30733,
6233,
1769,
3639,
467,
30733,
6233,
272,
1786,
273,
261,
... |
nf.addChildToBack(tempBlock, function(ts, false)); | n = function(ts, FunctionNode.FUNCTION_STATEMENT); | public Object parse(TokenStream ts) throws IOException { this.ok = true; sourceTop = 0; functionNumber = 0; int tt; // last token from getToken(); int baseLineno = ts.getLineno(); // line number where source starts /* so we have something to add nodes to until * we've collected all the source */ Object tempBlock = nf.createLeaf(TokenStream.BLOCK); // Add script indicator sourceAdd((char)ts.SCRIPT); while (true) { ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; if (tt <= ts.EOF) { break; } if (tt == ts.FUNCTION) { try { nf.addChildToBack(tempBlock, function(ts, false)); } catch (JavaScriptException e) { this.ok = false; break; } } else { ts.ungetToken(tt); nf.addChildToBack(tempBlock, statement(ts)); } } if (!this.ok) { // XXX ts.clearPushback() call here? return null; } String source = sourceToString(0); sourceBuffer = null; // To help GC Object pn = nf.createScript(tempBlock, ts.getSourceName(), baseLineno, ts.getLineno(), source); return pn; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/cb9350e1a2eb151e87843cfcd75986fa06c9fdeb/Parser.java/buggy/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1109,
12,
1345,
1228,
3742,
13,
3639,
1216,
1860,
565,
288,
3639,
333,
18,
601,
273,
638,
31,
3639,
1084,
3401,
273,
374,
31,
3639,
445,
1854,
273,
374,
31,
3639,
509,
3574,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1109,
12,
1345,
1228,
3742,
13,
3639,
1216,
1860,
565,
288,
3639,
333,
18,
601,
273,
638,
31,
3639,
1084,
3401,
273,
374,
31,
3639,
445,
1854,
273,
374,
31,
3639,
509,
3574,... |
String value = combo.getText( ); if ( value.equals( NONE ) ) | String value = null; if ( combo.getSelectionIndex( ) != 0 ) | public void widgetSelected( SelectionEvent event ) { String value = combo.getText( ); if ( value.equals( NONE ) ) { value = null; } int rCode = canChangeDataSet( value ); if ( rCode == 2 ) { combo.setText( getDataSetName( ) ); } else { try { DataSetHandle dataSet = null; if ( value != null ) { dataSet = inputElement.getModuleHandle( ) .findDataSet( value ); } inputElement.setDataSet( dataSet ); getParameterBindingPropertyHandle( ).clearValue( ); if ( rCode == 0 ) { inputElement.getColumnBindings( ).clearValue( ); } generateBindingColumns( ); setHihtLightColumn( ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); } } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/4a4bb70b0839e47bd10454d7eff3a69c006e37d4/ColumnBindingDialog.java/clean/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,
4697,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
871,
262,
9506,
202,
95,
6862,
202,
780,
460,
273,
16778,
18,
588,
1528,
12,
11272,
6862,
202,
430,
261,
460,
18,
14963,
12,
11829,
262,
262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
871,
262,
9506,
202,
95,
6862,
202,
780,
460,
273,
16778,
18,
588,
1528,
12,
11272,
6862,
202,
430,
261,
460,
18,
14963,
12,
11829,
262,
262... |
setModified(true); | public void setUserId(String userId) { if (((userId == null) && (_userId != null)) || ((userId != null) && (_userId == null)) || ((userId != null) && (_userId != null) && !userId.equals(_userId))) { if (!XSS_ALLOW_USERID) { userId = XSSUtil.strip(userId); } _userId = userId; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCategoryModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCategoryModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
10502,
12,
780,
6249,
13,
288,
202,
202,
430,
261,
12443,
18991,
422,
446,
13,
597,
261,
67,
18991,
480,
446,
3719,
747,
9506,
202,
12443,
18991,
480,
446,
13,
597,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
10502,
12,
780,
6249,
13,
288,
202,
202,
430,
261,
12443,
18991,
422,
446,
13,
597,
261,
67,
18991,
480,
446,
3719,
747,
9506,
202,
12443,
18991,
480,
446,
13,
597,
... | |
public void saveBugReport(IBugzillaBug bugzillaBug) { | public void saveBugReport(BugzillaReport bugzillaBug) { | public void saveBugReport(IBugzillaBug bugzillaBug) { String handle = AbstractRepositoryTask.getHandle(bugzillaBug.getRepositoryUrl(), bugzillaBug.getId()); ITask task = MylarTaskListPlugin.getTaskListManager().getTaskList().getTask(handle); if (task instanceof BugzillaTask) { BugzillaTask bugzillaTask = (BugzillaTask) task; bugzillaTask.setBugReport((BugReport) bugzillaBug); if (bugzillaBug.hasChanges()) { bugzillaTask.setSyncState(RepositoryTaskSyncState.OUTGOING); } else { bugzillaTask.setSyncState(RepositoryTaskSyncState.SYNCHRONIZED); } } saveOffline(bugzillaBug, true); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/021b803558816829652dd500f5695e5bfd03ae6c/BugzillaRepositoryConnector.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryConnector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1923,
19865,
4820,
12,
13450,
637,
15990,
19865,
7934,
15990,
19865,
13,
288,
202,
202,
780,
1640,
273,
4115,
3305,
2174,
18,
588,
3259,
12,
925,
15990,
19865,
18,
588,
330... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
19865,
4820,
12,
13450,
637,
15990,
19865,
7934,
15990,
19865,
13,
288,
202,
202,
780,
1640,
273,
4115,
3305,
2174,
18,
588,
3259,
12,
925,
15990,
19865,
18,
588,
330... |
new UMLComboBox2(new UMLExtendBaseComboBoxModel(), ActionSetExtendBase.SINGLETON)); | new UMLComboBox2(new UMLExtendBaseComboBoxModel(), ActionSetExtendBase.SINGLETON)); | public PropPanelExtend() { super("Extend", ConfigLoader.getTabPropsOrientation()); addField(Argo.localize("UMLMenu", "label.name"), getNameTextField()); addField(Argo.localize("UMLMenu", "label.stereotype"), new UMLComboBoxNavigator(this, Argo.localize("UMLMenu", "tooltip.nav-stereo"),getStereotypeBox())); addField(Argo.localize("UMLMenu", "label.namespace"), getNamespaceScroll()); addSeperator(); // Link to the two ends. This is done as a drop down. First for the // base use case. addField(Argo.localize("UMLMenu", "label.usecase-base"), new UMLComboBox2(new UMLExtendBaseComboBoxModel(), ActionSetExtendBase.SINGLETON)); addField(Argo.localize("UMLMenu", "label.extension"), new UMLComboBox2(new UMLExtendExtensionComboBoxModel(), ActionSetExtendExtension.SINGLETON)); JList extensionPointList = new UMLMutableLinkedList(new UMLExtendExtensionPointListModel(), ActionAddExtendExtensionPoint.SINGLETON, ActionNewExtendExtensionPoint.SINGLETON); addField(Argo.localize("UMLMenu", "label.extension-points"), new JScrollPane(extensionPointList)); addSeperator(); UMLExpressionModel conditionModel = new UMLExpressionModel(this,MExtend.class,"condition", MBooleanExpression.class,"getCondition","setCondition"); JTextArea conditionArea = new UMLExpressionBodyField(conditionModel, true); conditionArea.setRows(5); JScrollPane conditionScroll = new JScrollPane(conditionArea); addField("Condition:", conditionScroll); // Add the toolbar. new PropPanelButton(this, buttonPanel, _navUpIcon, Argo.localize("UMLMenu", "button.go-up"), "navigateNamespace", null); new PropPanelButton(this, buttonPanel, _extensionPointIcon, localize("Add extension point"), "newExtensionPoint", null); new PropPanelButton(this, buttonPanel, _deleteIcon, localize("Delete"), "removeElement", null); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/PropPanelExtend.java/clean/src_new/org/argouml/uml/ui/behavior/use_cases/PropPanelExtend.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10484,
5537,
16675,
1435,
288,
3639,
2240,
2932,
16675,
3113,
1903,
2886,
18,
588,
5661,
5047,
14097,
10663,
3639,
11742,
12,
686,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,
3113,
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,
377,
1071,
10484,
5537,
16675,
1435,
288,
3639,
2240,
2932,
16675,
3113,
1903,
2886,
18,
588,
5661,
5047,
14097,
10663,
3639,
11742,
12,
686,
3240,
18,
3729,
554,
2932,
57,
1495,
4599,
3113,
315... |
"\"" + CVSDATE.format(lastBuildTime) + "<" + CVSDATE.format(currentTime) + "\"", | CVSDATE.format(lastBuildTime) + "<" + CVSDATE.format(currentTime), | String[] buildLogCommand(Date lastBuildTime, Date currentTime) { //(PENDING) get rid of this duplication somehow if (cvsroot == null) { // omit -d CVSROOT return new String[] {"cvs", "log", "-d", "\"" + CVSDATE.format(lastBuildTime) + "<" + CVSDATE.format(currentTime) + "\"", getLocalPath() }; } else { return new String[] {"cvs", "-d", cvsroot, "log", "-d", "\"" + CVSDATE.format(lastBuildTime) + "<" + CVSDATE.format(currentTime) + "\"", getLocalPath() }; } } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/5c45612d06afb7558ab2edf49647601cf94843cc/CVSElement.java/clean/main/src/net/sourceforge/cruisecontrol/CVSElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
514,
8526,
1361,
1343,
2189,
12,
1626,
1142,
3116,
950,
16,
2167,
6680,
13,
288,
3639,
368,
12,
25691,
13,
336,
10911,
434,
333,
31201,
28578,
3639,
309,
261,
71,
6904,
3085,
422,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
514,
8526,
1361,
1343,
2189,
12,
1626,
1142,
3116,
950,
16,
2167,
6680,
13,
288,
3639,
368,
12,
25691,
13,
336,
10911,
434,
333,
31201,
28578,
3639,
309,
261,
71,
6904,
3085,
422,
446,
... |
fsBackup = (FormatSpecifier) EcoreUtil.copy(formatspecifier); | if (formatspecifier == null) { this.formatspecifier = AttributeFactory.eINSTANCE.createNumberFormatSpecifier(); fsBackup = (FormatSpecifier) EcoreUtil.copy(this.formatspecifier); } else { fsBackup = null; } | public FormatSpecifierDialog(FormatSpecifier formatspecifier) { super(); this.formatspecifier = formatspecifier; fsBackup = (FormatSpecifier) EcoreUtil.copy(formatspecifier); shell = new Shell(Display.getCurrent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL); GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 2; shell.setLayout(new FillLayout()); placeComponents(); shell.setText("Format Specifier Dialog:"); shell.setSize(332, 255); shell.setLocation(Display.getCurrent().getClientArea().width / 2 - (shell.getSize().x / 2), Display .getCurrent().getClientArea().height / 2 - (shell.getSize().y / 2)); shell.open(); while (!shell.isDisposed()) { if (!shell.getDisplay().readAndDispatch()) { shell.getDisplay().sleep(); } } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/258bad0d502f0759055374875005f9978172c4d7/FormatSpecifierDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4077,
21416,
6353,
12,
1630,
21416,
740,
2793,
1251,
13,
565,
288,
3639,
2240,
5621,
3639,
333,
18,
2139,
2793,
1251,
273,
740,
2793,
1251,
31,
3639,
309,
261,
2139,
2793,
1251,
422... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4077,
21416,
6353,
12,
1630,
21416,
740,
2793,
1251,
13,
565,
288,
3639,
2240,
5621,
3639,
333,
18,
2139,
2793,
1251,
273,
740,
2793,
1251,
31,
3639,
309,
261,
2139,
2793,
1251,
422... |
super (statement, fields, tuples, status, updateCount, insertOID, binaryCursor); | super (statement, fields, tuples, status, updateCount, insertOID); | public AbstractJdbc3ResultSet(BaseStatement statement, Field[] fields, Vector tuples, String status, int updateCount, long insertOID, boolean binaryCursor) { super (statement, fields, tuples, status, updateCount, insertOID, binaryCursor); } | 2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/dbcc71c724f1a2827ab7522aecf56268dbacf9b6/AbstractJdbc3ResultSet.java/clean/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4115,
25316,
23,
13198,
12,
2171,
3406,
3021,
16,
2286,
8526,
1466,
16,
5589,
10384,
16,
514,
1267,
16,
509,
1089,
1380,
16,
1525,
2243,
12945,
16,
1250,
3112,
6688,
13,
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,
4115,
25316,
23,
13198,
12,
2171,
3406,
3021,
16,
2286,
8526,
1466,
16,
5589,
10384,
16,
514,
1267,
16,
509,
1089,
1380,
16,
1525,
2243,
12945,
16,
1250,
3112,
6688,
13,
202,
... |
return v0 <= v1; | return b0.compareTo(b1) < 0; | public boolean evaluateBoolean(Evaluator evaluator) { final double v0 = calc0.evaluateDouble(evaluator); final double v1 = calc1.evaluateDouble(evaluator); if (v0 == Double.NaN || v1 == Double.NaN || v0 == DoubleNull || v1 == DoubleNull) { return BooleanNull; } return v0 <= v1; } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/759b141925c76c1aa0aaf89d93dc38bfe19d7c5a/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
1250,
5956,
5507,
12,
15876,
18256,
13,
288,
13491,
727,
1645,
331,
20,
273,
7029,
20,
18,
21024,
5265,
12,
14168,
639,
1769,
13491,
727,
1645,
331,
21,
273,
7029,
21,
18,
21024,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
1250,
5956,
5507,
12,
15876,
18256,
13,
288,
13491,
727,
1645,
331,
20,
273,
7029,
20,
18,
21024,
5265,
12,
14168,
639,
1769,
13491,
727,
1645,
331,
21,
273,
7029,
21,
18,
21024,
... |
oldURI = ((SVGOMDocument)svgDocument).getURLObject(); | oldURI = svgDocument.getURL(); | public void loadSVGDocument(String url) { stopProcessing(); URL oldURI = null; if (svgDocument != null) { oldURI = ((SVGOMDocument)svgDocument).getURLObject(); } URL newURI = null; try { newURI = new URL(oldURI, url); } catch (MalformedURLException e) { userAgent.displayError(e); return; } url = newURI.toString(); fragmentIdentifier = newURI.getRef(); loader = new DocumentLoader(userAgent); nextDocumentLoader = new SVGDocumentLoader(url, loader); nextDocumentLoader.setPriority(Thread.MIN_PRIORITY); Iterator it = svgDocumentLoaderListeners.iterator(); while (it.hasNext()) { nextDocumentLoader.addSVGDocumentLoaderListener ((SVGDocumentLoaderListener)it.next()); } if (documentLoader == null && gvtTreeBuilder == null && gvtTreeRenderer == null && svgLoadEventDispatcher == null && updateManager == null) { startDocumentLoader(); } } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/14cb6855dec11e25d5b03410f3137b8f17174d8a/JSVGComponent.java/buggy/sources/org/apache/batik/swing/svg/JSVGComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
26531,
2519,
12,
780,
880,
13,
288,
3639,
2132,
7798,
5621,
3639,
1976,
1592,
3098,
273,
446,
31,
3639,
309,
261,
11451,
2519,
480,
446,
13,
288,
5411,
1592,
3098,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
26531,
2519,
12,
780,
880,
13,
288,
3639,
2132,
7798,
5621,
3639,
1976,
1592,
3098,
273,
446,
31,
3639,
309,
261,
11451,
2519,
480,
446,
13,
288,
5411,
1592,
3098,
273,
... |
public static String decapitalize(String name) { try { if (!Character.isUpperCase(name.charAt(0))) { return name; } else { try { if (Character.isUpperCase(name.charAt(1))) { return name; } else { char[] c = name.toCharArray(); c[0] = Character.toLowerCase(c[0]); return new String(c); } } catch (StringIndexOutOfBoundsException E) { char[] c = new char[1]; c[0] = Character.toLowerCase(name.charAt(0)); return new String(c); } } } catch (StringIndexOutOfBoundsException E) { return name; } catch (NullPointerException E) { return null; } | public static String decapitalize(String name) { try { if(!Character.isUpperCase(name.charAt(0))) { return name; } else { try { if(Character.isUpperCase(name.charAt(1))) { return name; } else { char[] c = name.toCharArray(); c[0] = Character.toLowerCase(c[0]); return new String(c); } } catch(StringIndexOutOfBoundsException E) { char[] c = new char[1]; c[0] = Character.toLowerCase(name.charAt(0)); return new String(c); } | public static String decapitalize(String name) { try { if (!Character.isUpperCase(name.charAt(0))) { return name; } else { try { if (Character.isUpperCase(name.charAt(1))) { return name; } else { char[] c = name.toCharArray(); c[0] = Character.toLowerCase(c[0]); return new String(c); } } catch (StringIndexOutOfBoundsException E) { char[] c = new char[1]; c[0] = Character.toLowerCase(name.charAt(0)); return new String(c); } } } catch (StringIndexOutOfBoundsException E) { return name; } catch (NullPointerException E) { return null; } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/Introspector.java/clean/core/src/classpath/java/java/beans/Introspector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
2109,
438,
7053,
554,
12,
780,
508,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
16051,
7069,
18,
291,
8915,
12,
529,
18,
3001,
861,
12,
20,
20349,
288,
9506,
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,
760,
514,
2109,
438,
7053,
554,
12,
780,
508,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
16051,
7069,
18,
291,
8915,
12,
529,
18,
3001,
861,
12,
20,
20349,
288,
9506,
202,... |
CtClass rtype) | CtClass rtype, int returnVarNo) | private int insertAfterHandler(boolean asFinally, Bytecode b, CtClass rtype) { if (!asFinally) return 0; int var = b.getMaxLocals(); b.incMaxLocals(1); int pc = b.currentPc(); b.addAstore(var); if (rtype.isPrimitive()) { char c = ((CtPrimitiveType)rtype).getDescriptor(); if (c == 'D') b.addDconst(0.0); else if (c == 'F') b.addFconst(0); else if (c == 'J') b.addLconst(0); else if (c != 'V') // int, boolean, char, short, ... b.addIconst(0); } else b.addOpcode(Opcode.ACONST_NULL); b.addOpcode(Opcode.JSR); int pc2 = b.currentPc(); b.addIndex(0); // correct later b.addAload(var); b.addOpcode(Opcode.ATHROW); int pc3 = b.currentPc(); b.write16bit(pc2, pc3 - pc2 + 1); return pc3 - pc; } | 56357 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56357/c8eb33fc60e880e0f8c75d442fa6df7660c87939/CtBehavior.java/clean/src/main/javassist/CtBehavior.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2243,
4436,
1503,
12,
6494,
487,
29987,
16,
2525,
16651,
324,
16,
4766,
282,
30714,
797,
9328,
16,
509,
327,
1537,
2279,
13,
565,
288,
3639,
309,
16051,
345,
29987,
13,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2243,
4436,
1503,
12,
6494,
487,
29987,
16,
2525,
16651,
324,
16,
4766,
282,
30714,
797,
9328,
16,
509,
327,
1537,
2279,
13,
565,
288,
3639,
309,
16051,
345,
29987,
13,
5411,
... |
Assert.isNotNull( columnName); | Assert.isNotNull( columnName ); if ( StringUtil.isBlank( columnName ) ) { return null; } | public static String getColumnExpression(String columnName) { Assert.isNotNull( columnName); return IReportElementConstants.DATA_COLUMN_PREFIX + "[\"" + DEUtil.escape( columnName ) + "\"]";//$NON-NLS-1$ //$NON-NLS-2$ } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/a08454f8a4196b01ad1f775864243017363280f5/DEUtil.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
6716,
2300,
12,
780,
7578,
13,
202,
95,
202,
202,
8213,
18,
291,
5962,
12,
7578,
1769,
202,
202,
2463,
467,
4820,
1046,
2918,
18,
4883,
67,
11009,
67,
6307,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
6716,
2300,
12,
780,
7578,
13,
202,
95,
202,
202,
8213,
18,
291,
5962,
12,
7578,
1769,
202,
202,
2463,
467,
4820,
1046,
2918,
18,
4883,
67,
11009,
67,
6307,
1082,
... |
throw new PSQLException("postgresql.con.type", new Character((char) c)); | throw new PSQLException("postgresql.con.type", PSQLState.CONNECTION_FAILURE, new Character((char) c)); | private BaseResultSet executeV2() throws SQLException { StringBuffer errorMessage = null; if (pgStream == null) { throw new PSQLException("postgresql.con.closed"); } synchronized (pgStream) { sendQueryV2(); int c; boolean l_endQuery = false; while (!l_endQuery) { c = pgStream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify int pid = pgStream.ReceiveInteger(4); String msg = pgStream.ReceiveString(connection.getEncoding()); connection.addNotification(new org.postgresql.core.Notification(msg, pid)); break; case 'B': // Binary Data Transfer receiveTupleV2(true); break; case 'C': // Command Status receiveCommandStatusV2(); break; case 'D': // Text Data Transfer receiveTupleV2(false); break; case 'E': // Error Message // it's possible to get more than one error message for a query // see libpq comments wrt backend closing a connection // so, append messages to a string buffer and keep processing // check at the bottom to see if we need to throw an exception if ( errorMessage == null ) errorMessage = new StringBuffer(); errorMessage.append(pgStream.ReceiveString(connection.getEncoding())); // keep processing break; case 'I': // Empty Query int t = pgStream.ReceiveChar(); break; case 'N': // Error Notification statement.addWarning(pgStream.ReceiveString(connection.getEncoding())); break; case 'P': // Portal Name String pname = pgStream.ReceiveString(connection.getEncoding()); break; case 'T': // MetaData Field Description receiveFieldsV2(); break; case 'Z': l_endQuery = true; break; default: throw new PSQLException("postgresql.con.type", new Character((char) c)); } } // did we get an error during this query? if ( errorMessage != null ) throw new SQLException( errorMessage.toString().trim() ); //if an existing result set was passed in reuse it, else //create a new one if (rs != null) { rs.reInit(fields, tuples, status, update_count, insert_oid, binaryCursor); } else { rs = statement.createResultSet(fields, tuples, status, update_count, insert_oid, binaryCursor); } return rs; } } | 47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/0378a269f3ab3c44e67b14f96414b6ca95263263/QueryExecutor.java/buggy/src/interfaces/jdbc/org/postgresql/core/QueryExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3360,
13198,
1836,
58,
22,
1435,
1216,
6483,
202,
95,
202,
202,
780,
1892,
9324,
273,
446,
31,
202,
202,
430,
261,
8365,
1228,
422,
446,
13,
3196,
202,
95,
1082,
202,
12849,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3360,
13198,
1836,
58,
22,
1435,
1216,
6483,
202,
95,
202,
202,
780,
1892,
9324,
273,
446,
31,
202,
202,
430,
261,
8365,
1228,
422,
446,
13,
3196,
202,
95,
1082,
202,
12849,
... |
protected int addElement(final Object parentElement, int index, final Object value, final boolean fire) { TreeNode parentNode = getTreeNode(parentElement); if (parentNode == null) return -1; if (!hasChildren(parentElement) && parentNode.getChildren()==null) parentNode.setChildren(new ArrayList()); List list = parentNode.getChildren(); int addedIndex = -1; if (!list.contains(value)) { addedIndex = primAddChildElement(list, value, index); TreeNode valueNode = new TreeNode(parentElement); nodes.put(value, valueNode); final int fireIndex=addedIndex; updateViewer(new Runnable() { public void run() { viewer.add(parentElement == null ? viewerInput : parentElement, value); if (fire) fireChangeEvent(ChangeEvent.ADD, null, value, parentElement, fireIndex); } }); } return addedIndex; | public int addElement(final Object parentElement, final int index, final Object value) { SyncRunnable runnable = new SyncRunnable() { public Object run() { return new Integer(addElement(parentElement, index, value, true)); } }; return ((Integer)runnable.run()).intValue(); | protected int addElement(final Object parentElement, int index, final Object value, final boolean fire) { TreeNode parentNode = getTreeNode(parentElement); if (parentNode == null) return -1; if (!hasChildren(parentElement) && parentNode.getChildren()==null) parentNode.setChildren(new ArrayList()); List list = parentNode.getChildren(); int addedIndex = -1; if (!list.contains(value)) { addedIndex = primAddChildElement(list, value, index); TreeNode valueNode = new TreeNode(parentElement); nodes.put(value, valueNode); final int fireIndex=addedIndex; updateViewer(new Runnable() { public void run() { viewer.add(parentElement == null ? viewerInput : parentElement, value); if (fire) fireChangeEvent(ChangeEvent.ADD, null, value, parentElement, fireIndex); } }); } return addedIndex; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9d125503204eb791fd5d7ba10d10960ac0bbffba/TreeViewerUpdatableTree.java/buggy/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/viewers/TreeViewerUpdatableTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
509,
9335,
12,
6385,
1033,
30363,
16,
509,
770,
16,
727,
1033,
460,
16,
727,
1250,
4452,
13,
288,
25083,
202,
12513,
7234,
273,
336,
12513,
12,
2938,
1046,
1769,
202,
202,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
9335,
12,
6385,
1033,
30363,
16,
509,
770,
16,
727,
1033,
460,
16,
727,
1250,
4452,
13,
288,
25083,
202,
12513,
7234,
273,
336,
12513,
12,
2938,
1046,
1769,
202,
202,
43... |
interfaceName); | interfaceName, requestParameters); | protected IRequestTarget resolveRenderedPage(final RequestCycle requestCycle, final RequestParameters requestParameters) { String componentPath = requestParameters.getComponentPath(); Session session = requestCycle.getSession(); Page page = session.getPage(requestParameters.getPageMapName(), componentPath, requestParameters.getVersionNumber()); // Does page exist? if (page != null) { // see whether this resolves to a component call or just the page String interfaceName = requestParameters.getInterfaceName(); if (interfaceName != null) { return resolveListenerInterfaceTarget(requestCycle, page, componentPath, interfaceName); } else { return new PageRequestTarget(page); } } else { // Page was expired from session, probably because backtracking // limit was reached return new ExpiredPageClassRequestTarget(); } } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/939ec30df4d34491207d80658eee36f84667599f/DefaultRequestTargetResolverStrategy.java/clean/wicket/src/java/wicket/request/compound/DefaultRequestTargetResolverStrategy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
691,
2326,
2245,
19222,
1964,
12,
6385,
1567,
13279,
590,
13279,
16,
1082,
202,
6385,
1567,
2402,
590,
2402,
13,
202,
95,
202,
202,
780,
1794,
743,
273,
590,
2402,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
691,
2326,
2245,
19222,
1964,
12,
6385,
1567,
13279,
590,
13279,
16,
1082,
202,
6385,
1567,
2402,
590,
2402,
13,
202,
95,
202,
202,
780,
1794,
743,
273,
590,
2402,
18,
5... |
assertEquals("example.com", sessCtx.getHostName()); | public void testHandshakeWithNoError() throws Exception { StringReader rdr = new StringReader("<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c2s_123' from='example.com' version='1.0'></stream:stream>"); String outRes = "com/echomine/xmpp/data/XMPPEmptyStream.xml"; run(rdr, stream); endOutgoingStreamHeader(); compare(outRes); assertEquals("c2s_123", sessCtx.getSessionId()); // assertEquals("example.com", sessCtx.getHost()); } | 5648 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5648/20e12efa5b91554bf12d196f5b410a2efdfc99fd/XMPPClientHandshakeStreamTest.java/clean/feridian/trunk/test/xmpp/com/echomine/xmpp/stream/XMPPClientHandshakeStreamTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1815,
8867,
2932,
8236,
18,
832,
3113,
8451,
6442,
18,
588,
20946,
10663,
1815,
8867,
2932,
8236,
18,
832,
3113,
8451,
6442,
18,
588,
20946,
10663,
1815,
8867,
2932,
8236,
18,
832,
3113,
8451,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1815,
8867,
2932,
8236,
18,
832,
3113,
8451,
6442,
18,
588,
20946,
10663,
1815,
8867,
2932,
8236,
18,
832,
3113,
8451,
6442,
18,
588,
20946,
10663,
1815,
8867,
2932,
8236,
18,
832,
3113,
8451,
... | |
set(parameterIndex, x.toString()); | if (x == null) setNull(parameterIndex, Types.OTHER); else { set(parameterIndex, x.toString()); } | public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { set(parameterIndex, x.toString()); } | 52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/da631e931f9da4bc5df4bfd39f0c42684adfb8e5/PreparedStatement.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/PreparedStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
29436,
12,
474,
25412,
16,
8150,
619,
13,
1216,
6483,
202,
95,
202,
202,
542,
12,
6775,
1016,
16,
619,
18,
10492,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
29436,
12,
474,
25412,
16,
8150,
619,
13,
1216,
6483,
202,
95,
202,
202,
542,
12,
6775,
1016,
16,
619,
18,
10492,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
... |
String baseColor; | BallColor baseColor; | public String getIconColor() { if(!isBuilding()) { // already built if(result==Result.SUCCESS) return "blue"; if(result== Result.UNSTABLE) return "yellow"; else return "red"; } // a new build is in progress String baseColor; if(previousBuild==null) baseColor = "grey"; else baseColor = previousBuild.getIconColor(); return baseColor +"_anime"; } | 48095 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48095/84e0676229b1f5526d4ad0e0107998685f04a0e2/Run.java/clean/core/src/main/java/hudson/model/Run.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
21724,
2957,
1435,
288,
3639,
309,
12,
5,
291,
16713,
10756,
288,
5411,
368,
1818,
6650,
5411,
309,
12,
2088,
631,
1253,
18,
12778,
13,
7734,
327,
315,
14081,
14432,
5411,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
21724,
2957,
1435,
288,
3639,
309,
12,
5,
291,
16713,
10756,
288,
5411,
368,
1818,
6650,
5411,
309,
12,
2088,
631,
1253,
18,
12778,
13,
7734,
327,
315,
14081,
14432,
5411,
309,... |
return new StringWebResponse(str, url) { public String getContentType() { return contentType; } }; | if (contentType.startsWith("text")) { final String encoding = (new OutputStreamWriter(new ByteArrayOutputStream())).getEncoding(); final String str = IOUtils.toString(new FileInputStream(file), encoding); return new StringWebResponse(str, url) { public String getContentType() { return contentType; } }; } else { final byte[] data = IOUtils.toByteArray(new FileInputStream(file)); return new BinaryWebResponse(data, url, contentType); } | private WebResponse makeWebResponseForFileUrl(final URL url) throws IOException { final File file = FileUtils.toFile(url); // take default encoding of the computer (in J2SE5 it's easier but...) final String encoding = (new OutputStreamWriter(new ByteArrayOutputStream())).getEncoding(); final String str = FileUtils.readFileToString(file, encoding); final String contentType = guessContentType(file); return new StringWebResponse(str, url) { public String getContentType() { return contentType; } }; } | 3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/c94b7421a32b1583fb8dd65d3de21fd43b09dc90/WebClient.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2999,
1064,
1221,
4079,
1064,
1290,
812,
1489,
12,
6385,
1976,
880,
13,
1216,
1860,
288,
3639,
727,
1387,
585,
273,
13779,
18,
869,
812,
12,
718,
1769,
3639,
368,
4862,
805,
2688,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2999,
1064,
1221,
4079,
1064,
1290,
812,
1489,
12,
6385,
1976,
880,
13,
1216,
1860,
288,
3639,
727,
1387,
585,
273,
13779,
18,
869,
812,
12,
718,
1769,
3639,
368,
4862,
805,
2688,
... |
return text; } | return text; } | protected Text getText() { return text;} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b55db1f8df03ebade4e59f55f97c8c3917057362/InputDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/InputDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
3867,
6701,
1435,
288,
202,
2463,
977,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4750,
3867,
6701,
1435,
288,
202,
2463,
977,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (getSite().isPartMoveable(part)) { getSite().dragStart(part, tabFolder.toDisplay(localPos), false); } } | if (getSite().isPartMoveable(part)) { getSite().dragStart(part, tabFolder.toDisplay(localPos), false); } } | public void handleEvent(Event event) { Point localPos = new Point(event.x, event.y); CTabItem tabUnderPointer = tabFolder.getItem(localPos); if (tabUnderPointer == null) { // drag the entire stack if (getSite().isStackMoveable()) getSite().dragStart(tabFolder.toDisplay(localPos), false); return; } IPresentablePart part = getPartForTab(tabUnderPointer); if (getSite().isPartMoveable(part)) { // drag the part getSite().dragStart(part, tabFolder.toDisplay(localPos), false); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/38085a8072ad4fd21bad0983f8bc31ac736c9f72/R21EditorStackPresentation.java/clean/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21EditorStackPresentation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1640,
1133,
12,
1133,
871,
13,
288,
5411,
4686,
1191,
1616,
273,
394,
4686,
12,
2575,
18,
92,
16,
871,
18,
93,
1769,
5411,
385,
5661,
1180,
3246,
14655,
4926,
273,
3246,
3899... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
1133,
12,
1133,
871,
13,
288,
5411,
4686,
1191,
1616,
273,
394,
4686,
12,
2575,
18,
92,
16,
871,
18,
93,
1769,
5411,
385,
5661,
1180,
3246,
14655,
4926,
273,
3246,
3899... |
public int getRowCount() { return rowCount; } | public int getRowCount() { return rowCount; } | public int getRowCount() { return rowCount; } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/c706ac52c9e6b6a05988079a5d1a442784a7531e/PacketEndTokenResult.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/PacketEndTokenResult.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
509,
11835,
1380,
1435,
282,
288,
1377,
327,
14888,
31,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
565,
1071,
509,
11835,
1380,
1435,
282,
288,
1377,
327,
14888,
31,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { I_CmsSession session = cms.getRequestContext().getSession(true); CmsXmlWpTemplateFile xmlTemplateDocument = (CmsXmlWpTemplateFile)getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector); // clear session values on first load String initial = (String)parameters.get(C_PARA_INITIAL); if(initial != null) { // remove all session values session.removeValue(C_PARA_FOLDER); session.removeValue("lasturl"); } // getting the URL to which we need to return when we're done String lasturl = getLastUrl(cms, parameters); // read the parameters String foldername = (String)parameters.get(C_PARA_FOLDER); if(foldername != null) { // need the foldername in the session in case of an exception in the dialog session.putValue(C_PARA_FOLDER, foldername); } else { foldername = (String)session.getValue(C_PARA_FOLDER); } String action = (String)parameters.get("action"); String newname = (String)parameters.get(C_PARA_NAME); String title = (String)parameters.get("TITLE"); // both for gallery and upload file String step = (String)parameters.get("step"); if(foldername == null) { foldername = ""; } if("new".equals(action)) { String galleryname = (String)parameters.get("NAME"); String group = (String)parameters.get("GROUP"); if(galleryname != null && group != null && galleryname != "" && group != "") { boolean read = parameters.get("READ") != null; boolean write = parameters.get("WRITE") != null; try { // create the folder // get the path from the workplace.ini String superfolder = getConfigFile(cms).getPicGalleryPath(); CmsFolder folder = cms.createFolder(superfolder, galleryname); cms.lockResource(folder.getAbsolutePath()); if(title != null) { cms.writeProperty(folder.getAbsolutePath(), C_PROPERTY_TITLE, title); } cms.chgrp(folder.getAbsolutePath(), group); int flag = folder.getAccessFlags(); // set the access rights for 'other' users if(read != ((flag & C_ACCESS_PUBLIC_READ) != 0)) { flag ^= C_ACCESS_PUBLIC_READ; } if(write != ((flag & C_ACCESS_PUBLIC_WRITE) != 0)) { flag ^= C_ACCESS_PUBLIC_WRITE; } cms.chmod(folder.getAbsolutePath(), flag); } catch(CmsException ex) { xmlTemplateDocument.setData("ERRORDETAILS", Utils.getStackTrace(ex)); templateSelector = "error"; } } else { templateSelector = "datamissing"; } } else { if("upload".equals(action)) { // get filename and file content if available String filename = null; byte[] filecontent = new byte[0]; // get the filename Enumeration files = cms.getRequestContext().getRequest().getFileNames(); while(files.hasMoreElements()) { filename = (String)files.nextElement(); } if(filename != null) { session.putValue(C_PARA_FILE, filename); } filename = (String)session.getValue(C_PARA_FILE); // get the filecontent if(filename != null) { filecontent = cms.getRequestContext().getRequest().getFile(filename); } if(filecontent != null) { session.putValue(C_PARA_FILECONTENT, filecontent); } filecontent = (byte[])session.getValue(C_PARA_FILECONTENT); if("0".equals(step)) { templateSelector = ""; } else { if("1".equals(step)) { // display the select filetype screen if(filename != null) { // check if the file size is 0 if(filecontent.length == 0) { templateSelector = "error"; xmlTemplateDocument.setData("details", filename); } else { xmlTemplateDocument.setData("MIME", filename); xmlTemplateDocument.setData("SIZE", "Not yet available"); xmlTemplateDocument.setData("FILESIZE", new Integer(filecontent.length).toString() + " Bytes"); xmlTemplateDocument.setData("FILENAME", filename); templateSelector = "step1"; } } } else { if("2".equals(step)) { // check if a new filename is given if(newname != null) { filename = newname; } try { CmsFile file = cms.createFile(foldername, filename, filecontent, C_TYPE_IMAGE_NAME); if(title != null) { String filepath = file.getAbsolutePath(); cms.lockResource(filepath); cms.writeProperty(filepath, C_PROPERTY_TITLE, title); } } catch(CmsException ex) { xmlTemplateDocument.setData("details", Utils.getStackTrace(ex)); templateSelector = "error"; xmlTemplateDocument.setData("link_value", foldername); xmlTemplateDocument.setData("lasturl", lasturl); return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); } try { cms.getRequestContext().getResponse().sendCmsRedirect(getConfigFile(cms).getWorkplaceActionPath() + lasturl); } catch(Exception ex) { throw new CmsException("Redirect fails :" + getConfigFile(cms).getWorkplaceActionPath() + lasturl, CmsException.C_UNKNOWN_EXCEPTION, ex); } } } } } } xmlTemplateDocument.setData("link_value", foldername); xmlTemplateDocument.setData("lasturl", lasturl); // Finally start the processing return startProcessing(cms, xmlTemplateDocument, elementName, parameters, templateSelector); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/4340319d06bbb57613711013c96d806cebe115b3/CmsAdminPicGalleries.java/buggy/src/com/opencms/workplace/CmsAdminPicGalleries.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
2398,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
467,
67,
4747,
2157,
1339,
273,
6166,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
5154,
12,
4747,
921,
6166,
16,
514,
28215,
16,
514,
14453,
16,
2398,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
3639,
467,
67,
4747,
2157,
1339,
273,
6166,
... | ||
return RubyArray.newArray(getRuntime(), other, this); | return getRuntime().newArray(other, this); | public RubyArray coerce(RubyNumeric other) { if (getMetaClass() == other.getMetaClass()) { return RubyArray.newArray(getRuntime(), other, this); } return RubyArray.newArray( getRuntime(), RubyFloat.newFloat(getRuntime(), other.getDoubleValue()), RubyFloat.newFloat(getRuntime(), getDoubleValue())); } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyNumeric.java/buggy/src/org/jruby/RubyNumeric.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
12270,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
309,
261,
588,
2781,
797,
1435,
422,
1308,
18,
588,
2781,
797,
10756,
288,
5411,
327,
18814,
7675,
2704,
1076,
12,
3011... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
12270,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
309,
261,
588,
2781,
797,
1435,
422,
1308,
18,
588,
2781,
797,
10756,
288,
5411,
327,
18814,
7675,
2704,
1076,
12,
3011... |
void handleIncomingUdpPacket(IpAddress dest, InetAddress sender, int port, byte[] data) { ByteArrayInputStream inp_stream=null; DataInputStream inp=null; Message msg=null; List l; // used if bundling is enabled try { // skip the first n bytes (default: 4), this is the version info inp_stream=new ByteArrayInputStream(data, VERSION_LENGTH, data.length - VERSION_LENGTH); inp=new DataInputStream(inp_stream); // inp=new ObjectInputStream(new BufferedInputStream(inp_stream)); // BufferedInputStream above makes no diff // inp=new ObjectInputStream(inp_stream); // inp=new MagicObjectInputStream(inp_stream); if(enable_bundling) { // l=new List(); // l.readExternal(inp); l=bufferToList(inp, dest, sender, port); for(Enumeration en=l.elements(); en.hasMoreElements();) { msg=(Message)en.nextElement(); try { handleMessage(msg); } catch(Throwable t) { if(log.isErrorEnabled()) log.error("failure: " + t.toString()); } } } else { // msg=new Message(); // msg.readExternal(inp); msg=bufferToMessage(inp, dest, sender, port); handleMessage(msg); } } catch(Throwable e) { if(log.isErrorEnabled()) log.error("exception in processing incoming packet", e); } finally { closeInputStream(inp); closeInputStream(inp_stream); } } | 48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/c8c626436dfef4be1df7bb508ef791d65fdad692/UDP.java/clean/src/org/jgroups/protocols/UDP.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
1640,
20370,
57,
9295,
6667,
12,
16875,
1570,
16,
14218,
5793,
16,
509,
1756,
16,
1160,
8526,
501,
13,
288,
8826,
4348,
12789,
67,
3256,
33,
2011,
31,
751,
4348,
31647,
33,
2011,
31,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
1640,
20370,
57,
9295,
6667,
12,
16875,
1570,
16,
14218,
5793,
16,
509,
1756,
16,
1160,
8526,
501,
13,
288,
8826,
4348,
12789,
67,
3256,
33,
2011,
31,
751,
4348,
31647,
33,
2011,
31,
49... | ||
-1, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 124, -1, 126, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, 41, -1, -1, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, 59, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, 125, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, 346, 257, 258, 259, 260, 261, 262, 263, | private static final short[] yyCheck4() { return new short[] { -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, 33, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, 33, -1, 339, 340, 341, 342, -1, 344, 41, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 33, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 336, -1, -1, 339, 340, 341, 342, -1, 10, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, 58, 59, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, 60, -1, 62, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, 346, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, 40, -1, 42, 43, -1, 45, 344, 47, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, 124, 47, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 257, 258, 259, 260, 261, 262, 263, 264, -1, 344, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, 60, -1, 62, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, 257, 258, 259, -1, 261, -1, -1, 344, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 333, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, }; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/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,
1564,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
225,
9131,
23,
16,
225,
576,
5193,
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,
1564,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
225,
9131,
23,
16,
225,
576,
5193,
16,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.