rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
else if (status == FileTransfer.Status.IN_PROGRESS) { titleLabel.setText("You are receiving a file from " + contactItem.getNickname()); | else if (status == FileTransfer.Status.in_progress) { titleLabel.setText(Res.getString("message.receiving.file", contactItem.getNickname())); | public Object construct() { try { transfer.recieveFile(downloadedFile); } catch (XMPPException e) { Log.error(e); } while (true) { try { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
imageLabel.setToolTipText("Click to open"); titleLabel.setToolTipText("Click to open"); | imageLabel.setToolTipText(Res.getString("message.click.to.open")); titleLabel.setToolTipText(Res.getString("message.click.to.open")); | public void finished() { if (transfer.getAmountWritten() >= request.getFileSize()) { transferDone(request, transfer); imageLabel.setToolTipText("Click to open"); titleLabel.setToolTipText("Click to open"); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
if (transfer.getStatus() == FileTransfer.Status.ERROR) { | if (transfer.getStatus() == FileTransfer.Status.error) { | public void finished() { if (transfer.getAmountWritten() >= request.getFileSize()) { transferDone(request, transfer); imageLabel.setToolTipText("Click to open"); titleLabel.setToolTipText("Click to open"); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
transferMessage = "There was an error during file transfer."; | transferMessage = Res.getString("message.error.during.file.transfer"); | public void finished() { if (transfer.getAmountWritten() >= request.getFileSize()) { transferDone(request, transfer); imageLabel.setToolTipText("Click to open"); titleLabel.setToolTipText("Click to open"); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
else if (transfer.getStatus() == FileTransfer.Status.REFUSED) { transferMessage = "The file transfer was refused."; | else if (transfer.getStatus() == FileTransfer.Status.refused) { transferMessage = Res.getString("message.transfer.refused"); | public void finished() { if (transfer.getAmountWritten() >= request.getFileSize()) { transferDone(request, transfer); imageLabel.setToolTipText("Click to open"); titleLabel.setToolTipText("Click to open"); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
else if (transfer.getStatus() == FileTransfer.Status.CANCLED || | else if (transfer.getStatus() == FileTransfer.Status.cancelled || | public void finished() { if (transfer.getAmountWritten() >= request.getFileSize()) { transferDone(request, transfer); imageLabel.setToolTipText("Click to open"); titleLabel.setToolTipText("Click to open"); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
transferMessage = "The file transfer was cancelled."; | transferMessage = Res.getString("message.transfer.cancelled"); | public void finished() { if (transfer.getAmountWritten() >= request.getFileSize()) { transferDone(request, transfer); imageLabel.setToolTipText("Click to open"); titleLabel.setToolTipText("Click to open"); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
ResourceUtils.resButton(cancelButton, "Cancel"); | ResourceUtils.resButton(cancelButton, Res.getString("cancel")); | private void decorateCancelButton() { cancelButton.setVisible(false); ResourceUtils.resButton(cancelButton, "Cancel"); cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); cancelButton.setForeground(new Color(73, 113, 196)); cancelButton.se... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
cancelButton.setFont(new Font("Verdana", Font.BOLD, 10)); | cancelButton.setFont(new Font("Dialog", Font.BOLD, 10)); | private void decorateCancelButton() { cancelButton.setVisible(false); ResourceUtils.resButton(cancelButton, "Cancel"); cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); cancelButton.setForeground(new Color(73, 113, 196)); cancelButton.se... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
titleLabel.setText("You have cancelled the file transfer."); | titleLabel.setText(Res.getString("message.file.transfer.canceled")); | private void rejectRequest(FileTransferRequest request) { request.reject(); setBackground(new Color(239, 245, 250)); acceptLabel.setText(""); declineLabel.setText(""); fileLabel.setText(""); titleLabel.setText("You have cancelled the file transfer."); titleLabel.setF... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
int confirm = JOptionPane.showConfirmDialog(ui, "The file already exists. Overwrite?", "File Exists", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); | int confirm = JOptionPane.showConfirmDialog(ui, Res.getString("message.file.exists.question"), Res.getString("title.file.exists"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); | private void showPopup(MouseEvent e, final File downloadedFile) { if (e.isPopupTrigger()) { final JPopupMenu popup = new JPopupMenu(); final ReceiveMessage ui = this; Action saveAsAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
saveAsAction.putValue(Action.NAME, "Save As..."); | saveAsAction.putValue(Action.NAME, Res.getString("menuitem.save.as")); | private void showPopup(MouseEvent e, final File downloadedFile) { if (e.isPopupTrigger()) { final JPopupMenu popup = new JPopupMenu(); final ReceiveMessage ui = this; Action saveAsAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
int confirm = JOptionPane.showConfirmDialog(ui, "The file already exists. Overwrite?", "File Exists", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); | int confirm = JOptionPane.showConfirmDialog(ui, Res.getString("message.file.exists.question"), Res.getString("title.file.exists"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); | public void actionPerformed(ActionEvent e) { final JFileChooser chooser = Downloads.getInstance().getFileChooser(); File selectedFile = chooser.getSelectedFile(); if (selectedFile != null) { selectedFile = new File(selectedF... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
titleLabel.setText("You have received a file from " + contactItem.getNickname() + "."); | titleLabel.setText(Res.getString("message.received.file", contactItem.getNickname())); | private void transferDone(final FileTransferRequest request, FileTransfer transfer) { cancelButton.setVisible(false); showAlert(true); String bareJID = StringUtils.parseBareAddress(request.getRequestor()); ContactList contactList = SparkManager.getWorkspace().getContactList(); Con... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
ResourceUtils.resButton(openFileButton, "Open"); ResourceUtils.resButton(openFolderButton, "Open Folder"); | ResourceUtils.resButton(openFileButton, Res.getString("open")); ResourceUtils.resButton(openFolderButton, Res.getString("open.folder")); | private void transferDone(final FileTransferRequest request, FileTransfer transfer) { cancelButton.setVisible(false); showAlert(true); String bareJID = StringUtils.parseBareAddress(request.getRequestor()); ContactList contactList = SparkManager.getWorkspace().getContactList(); Con... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
openFileButton.setFont(new Font("Verdana", Font.BOLD, 10)); | openFileButton.setFont(new Font("Dialog", Font.BOLD, 10)); | private void transferDone(final FileTransferRequest request, FileTransfer transfer) { cancelButton.setVisible(false); showAlert(true); String bareJID = StringUtils.parseBareAddress(request.getRequestor()); ContactList contactList = SparkManager.getWorkspace().getContactList(); Con... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
openFolderButton.setFont(new Font("Verdana", Font.BOLD, 10)); | openFolderButton.setFont(new Font("Dialog", Font.BOLD, 10)); | private void transferDone(final FileTransferRequest request, FileTransfer transfer) { cancelButton.setVisible(false); showAlert(true); String bareJID = StringUtils.parseBareAddress(request.getRequestor()); ContactList contactList = SparkManager.getWorkspace().getContactList(); Con... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
suite.addTest(new ScriptTest(ruby, "testFile")); | suite.addTest(new ScriptTest(ruby, "testFile")); | public static Test suite() { TestSuite suite = new TestSuite(); Ruby ruby = Ruby.getDefaultInstance(null); ruby.initLoad(new ArrayList()); suite.addTest(new ScriptTest(ruby, "testRegexp")); suite.addTest(new ScriptTest(ruby, "testStringEval")); suite.addTest(new ScriptTest(ruby, "testHereDocument")); s... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a3a14c0a68f0036a9a25b161b3023eb829eeac7b/ScriptTestSuite.java/clean/org/jruby/test/ScriptTestSuite.java |
suite.addTest(new ScriptTest(ruby, "testStruct")); | public static Test suite() { TestSuite suite = new TestSuite(); Ruby ruby = Ruby.getDefaultInstance(null); ruby.initLoad(new ArrayList()); suite.addTest(new ScriptTest(ruby, "testRegexp")); suite.addTest(new ScriptTest(ruby, "testStringEval")); suite.addTest(new ScriptTest(ruby, "testHereDocument")); s... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a3a14c0a68f0036a9a25b161b3023eb829eeac7b/ScriptTestSuite.java/clean/org/jruby/test/ScriptTestSuite.java | |
String list = null; | String list = ""; | private boolean attempt() { UserCredentials uc = config.getCredentials(); try { if (uc == null) throw new DSOutOfServiceException( "No user's credentials have been entered yet."); //NOTE: This will never happen if the Splash Scree... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c41eaa212f1aa7884be174de7ed21c2dfeceed96/LoginServiceImpl.java/clean/SRC/org/openmicroscopy/shoola/env/data/login/LoginServiceImpl.java |
if (index == 0) list = host; else list += host; if (index != n) list += ","; | list += host; if (index != n) list += LoginConfig.SERVER_NAME_SEPARATOR; | private boolean attempt() { UserCredentials uc = config.getCredentials(); try { if (uc == null) throw new DSOutOfServiceException( "No user's credentials have been entered yet."); //NOTE: This will never happen if the Splash Scree... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c41eaa212f1aa7884be174de7ed21c2dfeceed96/LoginServiceImpl.java/clean/SRC/org/openmicroscopy/shoola/env/data/login/LoginServiceImpl.java |
listOfServers = uc.getHostName()+","+list; | listOfServers = uc.getHostName()+ LoginConfig.SERVER_NAME_SEPARATOR+list; | private boolean attempt() { UserCredentials uc = config.getCredentials(); try { if (uc == null) throw new DSOutOfServiceException( "No user's credentials have been entered yet."); //NOTE: This will never happen if the Splash Scree... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c41eaa212f1aa7884be174de7ed21c2dfeceed96/LoginServiceImpl.java/clean/SRC/org/openmicroscopy/shoola/env/data/login/LoginServiceImpl.java |
if (nonHTMLsrc == null) return null; | public static final String escape (String nonHTMLsrc) { StringBuffer res = new StringBuffer(); int l = nonHTMLsrc.length(); int idx; char c; for (int i = 0; i < l; i++) { c = nonHTMLsrc.charAt(i); idx = entityMap.indexOf(c); if (idx == -1... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/48800e75790b125baa3467012ddae0ffedaffadb/HTMLEscaper.java/clean/webmacro/src/org/webmacro/util/HTMLEscaper.java | |
model.getTreeView().sortNodes(index, (ImageDisplay) model.getBrowser().getUI()); | TreeView tv = model.getTreeView(); if (tv != null) tv.sortNodes(index, (ImageDisplay) model.getBrowser().getUI()); | public void sortBy(int index) { model.getSorter().setByDate(SortByAction.BY_DATE == index); view.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); Browser browser = getBrowser(); switch (browser.getSelectedLayout()) { case LayoutFactory.SQUARY_LAYOUT: ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1811507ad4983eef432b6c41a94f9b778b5701cd/HiViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerComponent.java |
ChannelToggleButton channelButton; | ChannelToggleButton item; | private JPanel createChannelButtons() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); ChannelMetadata[] data = model.getChannelData(); boolean gs = model.getColorModel().equals(ImViewer.GREY_SCALE_MODEL); ChannelMetadata d; ChannelToggleButton... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/DomainPane.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/DomainPane.java |
channelButton = new ChannelToggleButton(""+d.getEmissionWavelength() , model.getChannelColor(j), j); channelList.add(channelButton); if (model.getSelectedChannel() == j) channelButton.setSelected(true); | item = new ChannelToggleButton(""+d.getEmissionWavelength(), model.getChannelColor(j), j); channelList.add(item); item.setSelected(model.getSelectedChannel() == j); | private JPanel createChannelButtons() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); ChannelMetadata[] data = model.getChannelData(); boolean gs = model.getColorModel().equals(ImViewer.GREY_SCALE_MODEL); ChannelMetadata d; ChannelToggleButton... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/DomainPane.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/DomainPane.java |
channelButton.setGrayedOut(gs); channelButton.addPropertyChangeListener(controller); channelButton.setPreferredSize(new Dimension(30, 30)); channelButton.setMinimumSize(new Dimension(30, 30)); p.add(channelButton); | item.setGrayedOut(gs); item.addPropertyChangeListener(controller); item.setPreferredSize(ChannelButton.DEFAULT_MIN_SIZE); item.setMinimumSize(ChannelButton.DEFAULT_MIN_SIZE); p.add(item); | private JPanel createChannelButtons() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); ChannelMetadata[] data = model.getChannelData(); boolean gs = model.getColorModel().equals(ImViewer.GREY_SCALE_MODEL); ChannelMetadata d; ChannelToggleButton... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/DomainPane.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/DomainPane.java |
public void activate() { } | public void activate() {} | public void activate() { } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e717f628b707987e5b693ea9d57b6ef34b300679/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
if (presentation != null) { topFrame.addToDesktop(presentation, TopFrame.PALETTE_LAYER); presentation.setVisible(true); } | topFrame.addToDesktop(presentation, TopFrame.PALETTE_LAYER); presentation.setVisible(true); | void showPresentation() { if (presentation != null) { topFrame.addToDesktop(presentation, TopFrame.PALETTE_LAYER); presentation.setVisible(true); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e717f628b707987e5b693ea9d57b6ef34b300679/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
if (root.equals(display)) loadData(); else model.refreshSelectedDisplay(); | if (root.equals(display)) { if (model.getBrowserType() == IMAGES_EXPLORER) loadFilteredImagesForHierarchy(); else loadData(); } else model.refreshSelectedDisplay(); | public void refresh() { switch (model.getState()) { case LOADING_DATA: case LOADING_LEAVES: case DISCARDED: throw new IllegalStateException( "This method cannot be invoked in the LOADING_DATA, "+ " LOADING_LEAVES... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/79512e4e932534e29dad48577ab56b1f09f02fc7/BrowserComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java |
acrossT.setSelected(true); acrossZ.setSelected(true); | acrossZT.setSelected(true); | void setDefaults() { int maxZ = model.getMaxZ(); int maxT = model.getMaxT(); zSlider.setEnabled(maxZ != 0); startZ.setEnabled(maxZ != 0); endZ.setEnabled(maxZ != 0); tSlider.setEnabled(maxT != 0); startT.setEnabled(maxT != 0); endT.setEnabled(maxT != 0); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/10741ce22be9051166109de0c40e67fef675822e/MoviePlayerUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/util/MoviePlayerUI.java |
if ( ! Hibernate.isInitialized( o )) return true; | protected boolean alreadySeen( Object o ) { if ( o == null ) return false; return hasReplacement( o ) ? true : _cache.containsKey( o ); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5455b73a435a252c2c058cc4c625f039b667cd2f/UpdateFilter.java/clean/components/server/src/ome/tools/hibernate/UpdateFilter.java | |
if ( ! Hibernate.isInitialized( o )) return o; | protected Object returnSeen( Object o ) { if ( o == null) return null; if ( hasReplacement( o )) { IObject obj = (IObject) o; IObject replacement = obj.getDetails().getReplacement(); obj.unload(); return replacement; } return o; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5455b73a435a252c2c058cc4c625f039b667cd2f/UpdateFilter.java/clean/components/server/src/ome/tools/hibernate/UpdateFilter.java | |
final DelayInformation offlineInformation = (DelayInformation)message.getExtension("x", "jabber:x:delay"); if (offlineInformation != null || message.getError() != null) { return; } | public void processPacket(final Packet packet) { SwingUtilities.invokeLater(new Runnable() { public void run() { final Message message = (Message)packet; boolean broadcast = message.getProperty("broadcast") != null; if ((broadcast || (message.getType() ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e51fe7fc839fd9898d56e3951ad79de91d48b592/BroadcastPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/alerts/BroadcastPlugin.java | |
final DelayInformation offlineInformation = (DelayInformation)message.getExtension("x", "jabber:x:delay"); if (offlineInformation != null || message.getError() != null) { return; } | public void run() { final Message message = (Message)packet; boolean broadcast = message.getProperty("broadcast") != null; if ((broadcast || (message.getType() == Message.Type.NORMAL) || message.getType() == Message.Type.HEADLINE) && message.getBody() != null) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e51fe7fc839fd9898d56e3951ad79de91d48b592/BroadcastPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/alerts/BroadcastPlugin.java | |
long s = System.currentTimeMillis(); | RGBByteBuffer j2DBuf = new RGBByteBuffer(buf); | public BufferedImage render(PlaneDef pDef) { if (pDef == null) throw new IllegalArgumentException("Plane def cannot be null."); //See if the requested image is in cache. //BufferedImage img = null;//getFromCache(pDef); //if (img == null) { //If not, ask the server to rend... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2bd1ad73aba0e6043358bdc7f229b530947958a1/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java |
xyImage.setRGB(x, y, makeRGB(buf.getRedBand()[pos], buf.getGreenBand()[pos], buf.getBlueBand()[pos])); | xyImage.setRGB(x, y, makeRGB( j2DBuf.getElem(0,pos), j2DBuf.getElem(1,pos), j2DBuf.getElem(2,pos))); | public BufferedImage render(PlaneDef pDef) { if (pDef == null) throw new IllegalArgumentException("Plane def cannot be null."); //See if the requested image is in cache. //BufferedImage img = null;//getFromCache(pDef); //if (img == null) { //If not, ask the server to rend... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2bd1ad73aba0e6043358bdc7f229b530947958a1/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java |
System.out.println("creation: "+(System.currentTimeMillis()-s)); | public BufferedImage render(PlaneDef pDef) { if (pDef == null) throw new IllegalArgumentException("Plane def cannot be null."); //See if the requested image is in cache. //BufferedImage img = null;//getFromCache(pDef); //if (img == null) { //If not, ask the server to rend... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2bd1ad73aba0e6043358bdc7f229b530947958a1/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java | |
if (!view.isPartialName()) { PartialNameVisitor v = new PartialNameVisitor(view.isPartialName()); accept(v, TreeImageDisplayVisitor.TREEIMAGE_NODE_ONLY); } | public void setLeaves(Set leaves, TreeImageSet parent) { if (model.getState() != LOADING_LEAVES) throw new IllegalStateException( "This method can only be invoked in the LOADING_LEAVES "+ "state."); if (leaves == null) throw new NullPointerException(... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5aacd98a1cfb2219e218c87eed17b5a0f0e9738a/BrowserComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java | |
if (!view.isPartialName()) { PartialNameVisitor v = new PartialNameVisitor(view.isPartialName()); accept(v, TreeImageDisplayVisitor.TREEIMAGE_NODE_ONLY); } | public void setNodes(Set nodes) { if (model.getState() != LOADING_DATA) throw new IllegalStateException( "This method can only be invoked in the LOADING_DATA "+ "state."); if (nodes == null) throw new NullPointerException("No nodes."); long us... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5aacd98a1cfb2219e218c87eed17b5a0f0e9738a/BrowserComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java | |
setCurrentException(je); | private void handleReturn(JumpException je) { // make sure ensures fire while (!getCurrentInstructionStack().isEmpty()) { InstructionBundle ib = peekCurrentInstructionBundle(); if (ib.ensured) { // exec ensured node, return to "breaking" afterwards ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ad0296bc87cc61adf9b46eadf0ad38b553e7da8c/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java | |
if (listDatasets == null) listDatasets = new ArrayList(); | private void buildGUI() { listDatasets = manager.getProjectData().getDatasets(); buildTablePanel(); buildButtonsPanel(); buildButtonsToAddPanel(); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(tablePanel); add(Box.createRigidArea(DataManagerUIF.VBOX)); add(buttonsPanel); add(Box.createRigidArea(DataMa... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/983b9ea2ea56f723b31a22821e03a449360b8a2b/ProjectDatasetsPane.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/project/ProjectDatasetsPane.java | |
setConfig(configHash, "arch", "java"); | public void load(IRuby runtime) { RubyModule configModule = runtime.defineModule("Config"); RubyHash configHash = RubyHash.newHash(runtime); configModule.defineConstant("CONFIG", configHash); String[] versionParts = Constants.RUBY_VERSION.split("\\."); setConfig(configHash, "MAJOR... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ecaa1075877123d6bc029331082a3fbb34a47c21/RbConfigLibrary.java/buggy/src/org/jruby/libraries/RbConfigLibrary.java | |
return "ImageInfo"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); | return "ImageInfo"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); | public String toString(){ return "ImageInfo"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/ImageInfo.java/clean/components/common/src/ome/model/ImageInfo.java |
module.definePublicModuleFunction("singleton_methods", objectCallbackFactory.getMethod("singleton_methods")); | module.definePublicModuleFunction("singleton_methods", objectCallbackFactory.getOptMethod("singleton_methods")); | public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineMo... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7a32a4636ecb1df6caaf05de241ff89fc6fd721a/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java |
show(currentWin, p.x, p.y); | Point pNew = SwingUtilities.convertPoint(currentWin, p.x, p.y, null); show(currentWin.getParent(), pNew.x, pNew.y); | private void showMenu() { Point p = currentWin.getPopupPoint(); show(currentWin, p.x, p.y); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/11fc11c4e769e382f5279d4e21088d468940d1b6/ThumbWinPopupMenu.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/ThumbWinPopupMenu.java |
public Object get(int i){ if ((i<1) || (i>fields.size())){ return _tbl.formatError("Invalid index: " + i + ". The column index must be between 1 and " + fields.size()); | public Object get(Object key){ Object o = super.get((_tbl.isCaseSensitive()) ? key : key.toString().toUpperCase()); if ((o == null) && (!fields.contains(key))){ return _tbl.formatError( key + " is not a column of this table!"); | public Object get(int i){ if ((i<1) || (i>fields.size())){ return _tbl.formatError("Invalid index: " + i + ". The column index must be between 1 and " + fields.size()); } return fields.getEntry(i-1); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5729b41ccfce450fabc642c0d322460672dd0ddb/SimpleTableRow.java/buggy/contrib/DataTable/org/webmacro/datatable/SimpleTableRow.java |
return fields.getEntry(i-1); | return o; | public Object get(int i){ if ((i<1) || (i>fields.size())){ return _tbl.formatError("Invalid index: " + i + ". The column index must be between 1 and " + fields.size()); } return fields.getEntry(i-1); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5729b41ccfce450fabc642c0d322460672dd0ddb/SimpleTableRow.java/buggy/contrib/DataTable/org/webmacro/datatable/SimpleTableRow.java |
if (argsNode.getBlockArgNode() != null) { | if (argsNode.getBlockArgNode() != null && ruby.isBlockGiven()) { | public RubyObject execute(Ruby ruby, RubyObject receiver, String name, RubyObject[] args, boolean noSuper) { if (args == null) { args = new RubyObject[0]; } RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null) { optionalBlockArg = RubyProc.newPr... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/af3b33b4255b64ca8a03cfabfd2435bc65c83091/DefaultMethod.java/buggy/org/jruby/internal/runtime/methods/DefaultMethod.java |
runtime.getBlockStack().getCurrent().getScope().setVisibility(Visibility.PUBLIC); | private IRubyObject yieldUnder(RubyModule under) { return under.executeUnder(new Callback() { public IRubyObject execute(IRubyObject self, IRubyObject[] args) { Block savedBlock = runtime.getBlockStack().getCurrent().cloneBlock(); Namespace ns = runtime.getCurrentFram... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f848ba29fc8a834cb1adbc99411904d4a2393723/RubyObject.java/buggy/src/org/jruby/RubyObject.java | |
runtime.getBlockStack().getCurrent().getScope().setVisibility(Visibility.PUBLIC); | public IRubyObject execute(IRubyObject self, IRubyObject[] args) { Block savedBlock = runtime.getBlockStack().getCurrent().cloneBlock(); Namespace ns = runtime.getCurrentFrame().getNamespace(); runtime.getBlockStack().getCurrent().getFrame().setNamespace(ns); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f848ba29fc8a834cb1adbc99411904d4a2393723/RubyObject.java/buggy/src/org/jruby/RubyObject.java | |
log.info("loadCGCI-C:"+data.cId); | public Object testLoadCGCIHierarchyCategory(){ setUp(); log.info("loadCGCI-C:"+data.cId); hbw.loadHierarchy(CategoryData.class, data.cId, observer); return observer.result; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9cc885fa28a62ed7b7bf1dbcf110c443345339d1/ShoolaGrinderTest.java/clean/components/test/src/org/openmicroscopy/shoola/env/data/t/ShoolaGrinderTest.java | |
log.info("loadCGCI-CG:"+data.cgId); | public Object testLoadCGCIHierarchyCategoryGroup(){ setUp(); log.info("loadCGCI-CG:"+data.cgId); hbw.loadHierarchy(CategoryGroupData.class, data.cgId, observer); return observer.result; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9cc885fa28a62ed7b7bf1dbcf110c443345339d1/ShoolaGrinderTest.java/clean/components/test/src/org/openmicroscopy/shoola/env/data/t/ShoolaGrinderTest.java | |
System.out.println(doc); | public void testSearch() throws IOException, ParseException{ IndexSearcher is = new IndexSearcher("/tmp/j"); Analyzer analyzer = new StandardAnalyzer(); QueryParser parser = new QueryParser("class", analyzer); Query query = parser.parse("Roi"); Hits hits = is.search(query); fo... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1713e2c03207b5a19e514c71f0f3e4c76ef3e020/ModelTest.java/buggy/components/server/meta/ome/ModelTest.java | |
setCategories (new HashSet( | setCategories (makeSet( cg.sizeOfCategoryLinks(), | public void copy(IObject model, ModelMapper mapper) { if (model instanceof CategoryGroup) { CategoryGroup cg = (CategoryGroup) model; super.copy(model,mapper); // Details if (cg.getDetails()!=null){ this.setOwner((ExperimenterData) mapper.findTarg... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9638b50efec05ce0b3d19bbef1c149c757b964aa/CategoryGroupData.java/clean/components/shoola-adapter/src/pojos/CategoryGroupData.java |
public void copy(IObject model, ModelMapper mapper) { if (model instanceof CategoryGroup) { CategoryGroup cg = (CategoryGroup) model; super.copy(model,mapper); // Details if (cg.getDetails()!=null){ this.setOwner((ExperimenterData) mapper.findTarg... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9638b50efec05ce0b3d19bbef1c149c757b964aa/CategoryGroupData.java/clean/components/shoola-adapter/src/pojos/CategoryGroupData.java | ||
setToolTipText(((SemanticTypeTree.TreeNode)value).getFQName()); | setToolTipText(getToolTip(value)); | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTree... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/4cf433422d8c15e5f7030e055c5c942d76836275/HeatMapTreeRenderer.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/heatmap/HeatMapTreeRenderer.java |
Enumeration enum = elements(); | Enumeration enumeration = elements(); | final public Object build (BuildContext bc) throws BuildException { StringBuffer str = new StringBuffer(100); QuotedString qs = new QuotedString(); Enumeration enum = elements(); while (enum.hasMoreElements()) { Object txt = enum.nextElement(); if (txt ins... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/66b6fa23bd4cbc41e75a36f1705ebb0db3d2f013/QuotedStringBuilder.java/clean/webmacro/src/org/webmacro/engine/QuotedStringBuilder.java |
while (enum.hasMoreElements()) | while (enumeration.hasMoreElements()) | final public Object build (BuildContext bc) throws BuildException { StringBuffer str = new StringBuffer(100); QuotedString qs = new QuotedString(); Enumeration enum = elements(); while (enum.hasMoreElements()) { Object txt = enum.nextElement(); if (txt ins... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/66b6fa23bd4cbc41e75a36f1705ebb0db3d2f013/QuotedStringBuilder.java/clean/webmacro/src/org/webmacro/engine/QuotedStringBuilder.java |
Object txt = enum.nextElement(); | Object txt = enumeration.nextElement(); | final public Object build (BuildContext bc) throws BuildException { StringBuffer str = new StringBuffer(100); QuotedString qs = new QuotedString(); Enumeration enum = elements(); while (enum.hasMoreElements()) { Object txt = enum.nextElement(); if (txt ins... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/66b6fa23bd4cbc41e75a36f1705ebb0db3d2f013/QuotedStringBuilder.java/clean/webmacro/src/org/webmacro/engine/QuotedStringBuilder.java |
if (str.length() > 0) { qs.addElement(str.toString()); } if (qs.size() == 1) { return qs.elementAt(0); } else { return qs; } } | final public Object build (BuildContext bc) throws BuildException { StringBuffer str = new StringBuffer(100); QuotedString qs = new QuotedString(); Enumeration enum = elements(); while (enum.hasMoreElements()) { Object txt = enum.nextElement(); if (txt ins... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/66b6fa23bd4cbc41e75a36f1705ebb0db3d2f013/QuotedStringBuilder.java/clean/webmacro/src/org/webmacro/engine/QuotedStringBuilder.java | |
c = AnnotationMapper.buildImageAnnotationCriteria(ids); | c = AnnotationMapper.buildImageAnnotationCriteria(ids, uc.getUserID()); | private CategoryData getCategory(int id, boolean withAnnotation) throws DSOutOfServiceException, DSAccessException { //Retrieve the user ID. UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); //Retrieve the specified category. C... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java |
private CategoryData getCategory(int id, boolean withAnnotation) throws DSOutOfServiceException, DSAccessException { //Retrieve the user ID. UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); //Retrieve the specified category. C... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java | ||
model.getClassifications(), l, uc.getUserID()); | model.getClassifications(), l); | private CategoryData getCategory(int id, boolean withAnnotation) throws DSOutOfServiceException, DSAccessException { //Retrieve the user ID. UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); //Retrieve the specified category. C... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java |
group.getID()); | group.getID(), uc.getUserID()); | public List retrieveCategoriesNotInGroup(CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { //List of categorySummary objects List result = new ArrayList(); Criteria c = CategoryMapper.buildCategoryWithClassificationsCriteria( group.get... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java |
UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); | public List retrieveCategoriesNotInGroup(CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { //List of categorySummary objects List result = new ArrayList(); Criteria c = CategoryMapper.buildCategoryWithClassificationsCriteria( group.get... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java | |
CategoryMapper.fillCategoryWithClassifications(l, result, group, uc.getUserID()); | CategoryMapper.fillCategoryWithClassifications(l, result, group); | public List retrieveCategoriesNotInGroup(CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { //List of categorySummary objects List result = new ArrayList(); Criteria c = CategoryMapper.buildCategoryWithClassificationsCriteria( group.get... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java |
Criteria c = CategoryMapper.buildCategoryGroupCriteria(-1); List l = (List) gateway.retrieveListSTSData("CategoryGroup", c); | UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); Criteria c = CategoryMapper.buildCategoryGroupCriteria(-1, uc.getUserID()); List l = (List) gateway.retrieveListSTSData("CategoryGroup", c); | public List retrieveCategoryGroups() throws DSOutOfServiceException, DSAccessException { Criteria c = CategoryMapper.buildCategoryGroupCriteria(-1); List l = (List) gateway.retrieveListSTSData("CategoryGroup", c); List result = new ArrayList(); UserCredentials uc = ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java |
UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); | public List retrieveCategoryGroups() throws DSOutOfServiceException, DSAccessException { Criteria c = CategoryMapper.buildCategoryGroupCriteria(-1); List l = (List) gateway.retrieveListSTSData("CategoryGroup", c); List result = new ArrayList(); UserCredentials uc = ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java | |
Criteria c = HierarchyMapper.buildICGHierarchyCriteria(ids); | UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); Criteria c = HierarchyMapper.buildICGHierarchyCriteria(ids, uc.getUserID()); | public Object[] retrieveICGHierarchy(List imageSummaries) throws DSOutOfServiceException, DSAccessException { if (imageSummaries == null) throw new NullPointerException("List of imageSummaries " + "cannot be null"); if (imageSummaries.size() == 0) thr... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java |
UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); return HierarchyMapper.fillICGHierarchy(classifications, map, uc.getUserID()); | return HierarchyMapper.fillICGHierarchy(classifications, map); | public Object[] retrieveICGHierarchy(List imageSummaries) throws DSOutOfServiceException, DSAccessException { if (imageSummaries == null) throw new NullPointerException("List of imageSummaries " + "cannot be null"); if (imageSummaries.size() == 0) thr... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java |
Criteria c = CategoryMapper.buildBasicCriteria(data.getID()); | UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); Criteria c = CategoryMapper.buildBasicCriteria(data.getID(), uc.getUserID()); | public void updateCategory(CategoryData data, List imgsToRemove, List imgsToAdd) throws DSOutOfServiceException, DSAccessException { Criteria c = CategoryMapper.buildBasicCriteria(data.getID()); Category category = (Category) gateway.retrieveSTSDat... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java |
Criteria c = CategoryMapper.buildBasicCriteria(data.getID()); | UserCredentials uc = (UserCredentials) registry.lookup(LookupNames.USER_CREDENTIALS); Criteria c = CategoryMapper.buildBasicCriteria(data.getID(), uc.getUserID()); | public void updateCategoryGroup(CategoryGroupData data, List toAdd) throws DSOutOfServiceException, DSAccessException { Criteria c = CategoryMapper.buildBasicCriteria(data.getID()); CategoryGroup cg = (CategoryGroup) gateway.retrieveSTSData("CategoryGroup", c); cg.setName(... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java |
public static void fillImageAnnotationInCategory(Map map, List annotations, int userID) | public static void fillImageAnnotationInCategory(Map map, List annotations) | public static void fillImageAnnotationInCategory(Map map, List annotations, int userID) { Map ids = AnnotationMapper.reverseListImageAnnotations(annotations, userID); Iterator i = map.key... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java |
Map ids = AnnotationMapper.reverseListImageAnnotations(annotations, userID); | Map ids = AnnotationMapper.reverseListImageAnnotations(annotations); | public static void fillImageAnnotationInCategory(Map map, List annotations, int userID) { Map ids = AnnotationMapper.reverseListImageAnnotations(annotations, userID); Iterator i = map.key... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java |
public static Criteria buildCategoryWithClassificationsCriteria(int groupID) | public static Criteria buildCategoryWithClassificationsCriteria(int groupID, int userID) | public static Criteria buildCategoryWithClassificationsCriteria(int groupID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("CategoryGroup"); c.addWantedField("ClassificationList"); c.addWantedField("ClassificationList", "Valid"); c.add... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java |
c.addWantedField("module_execution"); c.addWantedField("module_execution", "experimenter"); | public static Criteria buildCategoryWithClassificationsCriteria(int groupID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("CategoryGroup"); c.addWantedField("ClassificationList"); c.addWantedField("ClassificationList", "Valid"); c.add... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java | |
if (userID != -1) c.addFilter("module_execution.experimenter_id", new Integer(userID)); | public static Criteria buildCategoryWithClassificationsCriteria(int groupID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("CategoryGroup"); c.addWantedField("ClassificationList"); c.addWantedField("ClassificationList", "Valid"); c.add... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java | |
CategoryGroupData group, int userID) | CategoryGroupData group) | public static void fillCategoryWithClassifications(List l, List result, CategoryGroupData group, int userID) { //Map of ID of the images contained in the group. Map ids = new HashMap(); CategorySummary cs; Iterator i = group.getCategories().iterato... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java |
if (c.getModuleExecution().getExperimenter().getID() == userID) { id = new Integer(c.getID()); cs = (CategorySummary) categoryMap.get(id); if (cs == null) { cs = createCategorySummary(c, ids); if (cs != null) { categoryMap.put(id, cs); result.add(cs); } } else result.add(cs); } | id = new Integer(c.getID()); cs = (CategorySummary) categoryMap.get(id); if (cs == null) { cs = createCategorySummary(c, ids); if (cs != null) { categoryMap.put(id, cs); result.add(cs); } } else result.add(cs); | public static void fillCategoryWithClassifications(List l, List result, CategoryGroupData group, int userID) { //Map of ID of the images contained in the group. Map ids = new HashMap(); CategorySummary cs; Iterator i = group.getCategories().iterato... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java |
if (cg.getModuleExecution().getExperimenter().getID() == userID) { cgd = buildCategoryGroup(cg); categories = new ArrayList(); if (cg.getCategoryList() != null) { j = cg.getCategoryList().iterator(); while (j.hasNext()) { c = (Category) j.next(); if (c.getModuleExecution().getExperimenter().getID() == userID) { id = ne... | cgd = buildCategoryGroup(cg); categories = new ArrayList(); if (cg.getCategoryList() != null) { j = cg.getCategoryList().iterator(); while (j.hasNext()) { c = (Category) j.next(); if (c.getModuleExecution().getExperimenter().getID() == userID) { id = new Integer(c.getID()); cs = (CategorySummary) cMap.get(id); if (cs ... | public static void fillCategoryGroup(List l, List result, int userID) { Map cMap = new HashMap(); Iterator i = l.iterator(); CategoryGroup cg; CategoryGroupData cgd; CategorySummary cs; Category c; Iterator j; List categories; Integer id; whi... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java |
cgd.setCategories(categories); result.add(cgd); | public static void fillCategoryGroup(List l, List result, int userID) { Map cMap = new HashMap(); Iterator i = l.iterator(); CategoryGroup cg; CategoryGroupData cgd; CategorySummary cs; Category c; Iterator j; List categories; Integer id; whi... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java | |
cgd.setCategories(categories); result.add(cgd); | public static void fillCategoryGroup(List l, List result, int userID) { Map cMap = new HashMap(); Iterator i = l.iterator(); CategoryGroup cg; CategoryGroupData cgd; CategorySummary cs; Category c; Iterator j; List categories; Integer id; whi... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java | |
throw new RubyArgumentException(getRuby(), "wrong number of arguments"); | String msg = "Wrong number of arguments for method '" + ruby.getRubyFrame().getLastFunc() + "' in class " + getRubyClass().toName() + ". " + args.length + " is not in Range " + min + ".." + max; throw new RubyArgumentException(getRuby(), msg); | protected int argCount(RubyObject[] args, int min, int max) { int len = args.length; if (len < min || (max > -1 && len > max)) { throw new RubyArgumentException(getRuby(), "wrong number of arguments"); } return len; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/RubyObject.java/clean/org/jruby/RubyObject.java |
uiDelegate.setComponentsEnabled(false); | void save() { //TODO Add controls if annotated AnnotationData data = model.getUserAnnotationData(); String text = uiDelegate.getAnnotationText().trim(); if (data == null) { //creation Object ho = model.getHierarchyObject(); if (ho instanceof ImageData) ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fa3d7c2352dfbc9f73f26510e5aed556f4c86872/AnnotationPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/annotator/AnnotationPane.java | |
return str.getValue().length() == 0 ? str.getRuntime().getNil() : str; | return (str.getValue().length() == 0 && ((org.jvyaml.nodes.ScalarNode)node).getStyle() == 0) ? str.getRuntime().getNil() : str; | public static Object constructYamlStr(final Constructor ctor, final Node node) { final org.jruby.RubyString str = (org.jruby.RubyString)((JRubyConstructor)ctor).constructRubyScalar(node); return str.getValue().length() == 0 ? str.getRuntime().getNil() : str; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6cb3a81e54d5a1bc0b4bbfbada7e947760f668f1/JRubyConstructor.java/clean/src/org/jruby/yaml/JRubyConstructor.java |
true); | false); | public void invoke(JFrame parentFrame, PreferencesPanel contentPane) { this.prefPanel = contentPane; // Construct main panel w/ layout. final JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); // Construct Dialog preferenceDialog = new JDialog(parentF... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/7645851bdaa2a933966642360f8bb4b56e708043/PreferenceDialog.java/clean/src/java/org/jivesoftware/sparkimpl/preference/PreferenceDialog.java |
throw new IllegalArgumentException("Could not load property editor: "+propertyEditor, e); | throw (IllegalArgumentException)new IllegalArgumentException("Could not load property editor: "+propertyEditor).initCause(e); | protected PropertyEditor createPropertyEditor(String propertyEditor) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if( cl==null ) { cl = XBeanNamespaceHandler.class.getClassLoader(); } try { return (PropertyEditor)cl.loadClass(propertyEditor).newInstance(); ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/354c41d6c2c4265c5e2ce703503def790f084e2e/XBeanNamespaceHandler.java/clean/xbean-spring-v2/src/main/java/org/apache/xbean/spring/context/v2/XBeanNamespaceHandler.java |
if (ChainBuilderAgent.DEBUG) | if (ChainBuilderAgent.DEBUG_TIMING) | public Object getContents() { long start; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (chains == null) { chains = chainDataManager.getChains(); } Iterator iter = chains.iterator(); while (iter.hasNext()) { Layou... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ChainLoader.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/data/ChainLoader.java |
if (ChainBuilderAgent.DEBUG) { | if (ChainBuilderAgent.DEBUG_TIMING) { | public Object getContents() { long start; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (chains == null) { chains = chainDataManager.getChains(); } Iterator iter = chains.iterator(); while (iter.hasNext()) { Layou... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ChainLoader.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/data/ChainLoader.java |
traceLines.add(new RubyString(interpreter, testLine(i))); | traceLines.add(RubyString.newString(interpreter, testLine(i))); | private void setBackTrace(int lineCount) { List traceLines = new ArrayList(); for (int i=0; i<lineCount; i++) traceLines.add(new RubyString(interpreter, testLine(i))); exception.set_backtrace(RubyArray.newArray(interpreter, traceLines)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/TestRubyException.java/clean/test/org/jruby/test/TestRubyException.java |
public void testPrintBacktraceWithHiddenLevels() throws Exception { setBackTrace(19); String[] lines = printError(); assertEquals(expectedTraceLine(1), lines[0]); assertEquals("\t ... 7 levels...", lines[RubyException.TRACE_HEAD]); assertEquals(expectedTraceLine(16), lines[RubyException.TRACE_HEAD + 1]); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/TestRubyException.java/clean/test/org/jruby/test/TestRubyException.java | ||
klass.equals(CategoryGroup.class)) | klass.equals(CategoryGroupData.class)) | private void checkClass(Class klass) { if (klass.equals(ProjectData.class) || klass.equals(CategoryGroup.class)) return; throw new IllegalArgumentException("Root node not supported."); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/53473ec69ff72f3c6a693dea151fde37deb95ff1/RefreshDataLoader.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/RefreshDataLoader.java |
new BuiltinScript("zlib").load(runtime); | public void load(final IRuby runtime) throws IOException { RubyZlib.createZlibModule(runtime); new BuiltinScript("zlib").load(runtime); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/510a41b06f3103200e881725915b7cc1a5a10b39/ZlibLibrary.java/buggy/src/org/jruby/libraries/ZlibLibrary.java | |
result.defineConstant("ZLIB_VERSION",runtime.newString("1.2.1")); result.defineConstant("VERSION",runtime.newString("0.6.0")); result.defineConstant("BINARY",runtime.newFixnum(0)); result.defineConstant("ASCII",runtime.newFixnum(1)); result.defineConstant("UNKNOWN",runtime.newFixnum(2)); result.defineConstant("DEF_ME... | public static RubyModule createZlibModule(IRuby runtime) { RubyModule result = runtime.defineModule("Zlib"); RubyClass gzfile = result.defineClassUnder("GzipFile", runtime.getObject()); CallbackFactory callbackFactory = runtime.callbackFactory(RubyGzipFile.class); gzfile.defineSingletonM... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/510a41b06f3103200e881725915b7cc1a5a10b39/RubyZlib.java/buggy/src/org/jruby/RubyZlib.java | |
original = annotation.getDataset(); | public void test_annotating_a_dataset_three() throws Exception { String name = " two rows "+System.currentTimeMillis(); String text = " two rows content "+System.currentTimeMillis(); String desc = " new description "+System.currentTimeMillis(); // Setup: original is our in-mem... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b7d44d4a82558acd2336a661072dda1f38cfc0b3/PojosServiceTest.java/clean/components/shoola-adapter/test/ome/adapters/pojos/itests/PojosServiceTest.java | |
Object o = iQuery.getById( DatasetAnnotation.class, a.getId().longValue() ); assertNull( o ); | public void test_delete_annotation() throws Exception { String string = "delete_annotation"+System.currentTimeMillis(); Dataset d = new Dataset(); d.setName( string ); DatasetAnnotation a = new DatasetAnnotation(); a.setDataset( d ); a.setContent( string ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b7d44d4a82558acd2336a661072dda1f38cfc0b3/PojosServiceTest.java/clean/components/shoola-adapter/test/ome/adapters/pojos/itests/PojosServiceTest.java | |
p.linkDataset( d1 ); p.linkDataset( d2 ); | ProjectDatasetLink l1 = new ProjectDatasetLink(); ProjectDatasetLink l2 = new ProjectDatasetLink(); l1.setParent( p ); l1.setChild( d1 ); l2.setParent( p ); l2.setChild( d2 ); p.addProjectDatasetLink( l1, true ); p.addProjectDatasetLink( l2, true ); | public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b7d44d4a82558acd2336a661072dda1f38cfc0b3/PojosServiceTest.java/clean/components/shoola-adapter/test/ome/adapters/pojos/itests/PojosServiceTest.java |
Iterator it = p.linkedDatasetIterator(); Dataset test = null; | Iterator it = p.iterateDatasetLinks(); | public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b7d44d4a82558acd2336a661072dda1f38cfc0b3/PojosServiceTest.java/clean/components/shoola-adapter/test/ome/adapters/pojos/itests/PojosServiceTest.java |
test = (Dataset) it.next(); if ( d1.getId().equals(test.getId())) break; | ProjectDatasetLink link = (ProjectDatasetLink) it.next(); if ( link.child().getId().equals( d1.getId() )) { l1 = link; d1 = link.child(); } else if ( link.child().getId().equals( d2.getId() )) { l2 = link; d2 = link.child(); } else { fail( " Links aren't set up propertly"); } | public void test_two_datasets_and_a_project() throws Exception { String name = " 2&1 "+System.currentTimeMillis(); Project p = new Project(); p.setName( name ); p = (Project) iPojos.createDataObject( p, null ); Dataset d1 = new Dataset(); d1.setName( name... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b7d44d4a82558acd2336a661072dda1f38cfc0b3/PojosServiceTest.java/clean/components/shoola-adapter/test/ome/adapters/pojos/itests/PojosServiceTest.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.