rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
test.setDescription( name ); | d1.setDescription( name ); | 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) iPojos.updateDataObject( test, null ); | Dataset test = (Dataset) iPojos.updateDataObject( d1, null ); | 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 |
ProjectDatasetLink link1 = (ProjectDatasetLink) iQuery.getById( ProjectDatasetLink.class, l1.getId().longValue() ); assertNotNull( link1 ); assertTrue( link1.parent().getId().equals( p.getId())); assertTrue( link1.child().getId().equals( d1.getId() )); ProjectDatasetLink link2 = (ProjectDatasetLink) iQuery.getById( P... | 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 | |
else if (haltOnFailure) throw new BuildException( "Coverage check failed. See messages above."); | } | public void execute() throws BuildException { if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } if (branchRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchRate); } if (lineRate != null) { g... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/ee8c521f630a11084a33f76a785fc79f30c4ca86/CheckTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/CheckTask.java |
System.err.println("Coverage check failed. See messages above."); | { if (haltOnFailure) throw new BuildException( "Coverage check failed. See messages above."); else if (failureProperty != null) getProject().setProperty(failureProperty, "true"); else System.err .println("Coverage check failed. See messages above."); } | public void execute() throws BuildException { if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } if (branchRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchRate); } if (lineRate != null) { g... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/ee8c521f630a11084a33f76a785fc79f30c4ca86/CheckTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/CheckTask.java |
return context.getProperty(_names[0]); | return context.getProperty(_names); | public Object getValue (Context context) throws PropertyException { return context.getProperty(_names[0]); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/21a2f3f314f3b089827442856f520ede9bc43c20/FunctionVariable.java/buggy/webmacro/src/org/webmacro/engine/FunctionVariable.java |
if (pref.isHideChatHistory()) { | if (!pref.isChatHistoryEnabled()) { | public void chatRoomOpened(final ChatRoom room) { LocalPreferences pref = SettingsManager.getLocalPreferences(); if (pref.isHideChatHistory()) { return; } final String jid = room.getRoomname(); File transcriptFile = ChatTranscripts.getTranscriptFile(jid); if (!tr... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ChatTranscriptPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java |
if (pref.isHideChatHistory()) { | if (!pref.isChatHistoryEnabled()) { | private void persistChatRoom(final ChatRoom room) { LocalPreferences pref = SettingsManager.getLocalPreferences(); if (pref.isHideChatHistory()) { return; } final String jid = room.getRoomname(); List transcripts = room.getTranscripts(); Iterator messages = trans... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ChatTranscriptPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java |
return ChatTranscripts.getChatTranscript(jid); | String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); | private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { return ChatTranscripts.getChatTranscript(jid); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ChatTranscriptPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java |
Collections.sort(list, dateComparator); | private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { return ChatTranscripts.getChatTranscript(jid); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ChatTranscriptPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java | |
return ChatTranscripts.getChatTranscript(jid); | String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); | public Object construct() { return ChatTranscripts.getChatTranscript(jid); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ChatTranscriptPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java |
Collections.sort(list, dateComparator); | public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow wi... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/741ee521da25f1d1608a575dbda0a84d216ed278/ChatTranscriptPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java | |
node.setLocation((int) (r.x*factor/sf), (int) (r.y*factor/sf)); | double ratio = factor/sf; if (ratio < 1) ratio += EPSILON; node.setLocation((int) (r.x*ratio), (int) (r.y*ratio)); | public void visit(ImageNode node) { Rectangle r = node.getBounds(); Thumbnail th = node.getThumbnail(); double sf = th.getScalingFactor(); if (sf != factor) { th.scale(factor); node.setLocation((int) (r.x*factor/sf), (int) (r.y*factor/sf)); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b1b09608165b0b1c6218fe61228bb60c9c8df6f/ZoomVisitor.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/ZoomVisitor.java |
public ServiceEvent(long eventId, Kernel kernel, ServiceName serviceName, ServiceFactory serviceFactory, ClassLoader classLoader, Object service, Set unsatisfiedConditions) { | public ServiceEvent(long eventId, Kernel kernel, ServiceName serviceName, ServiceFactory serviceFactory, ClassLoader classLoader, Object service) { | public ServiceEvent(long eventId, Kernel kernel, ServiceName serviceName, ServiceFactory serviceFactory, ClassLoader classLoader, Object service, Set unsatisfiedConditions) { this.eventId = eventId; this.kernel = kernel; this.serviceName = serviceName; this.serviceFactory = serviceFactor... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceEvent.java/buggy/kernel/src/java/org/gbean/kernel/ServiceEvent.java |
this.unsatisfiedConditions = unsatisfiedConditions; | public ServiceEvent(long eventId, Kernel kernel, ServiceName serviceName, ServiceFactory serviceFactory, ClassLoader classLoader, Object service, Set unsatisfiedConditions) { this.eventId = eventId; this.kernel = kernel; this.serviceName = serviceName; this.serviceFactory = serviceFactor... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceEvent.java/buggy/kernel/src/java/org/gbean/kernel/ServiceEvent.java | |
unsatisfiedConditions = null; | public ServiceEvent(long eventId, Kernel kernel, ServiceName serviceName, ServiceFactory serviceFactory, ClassLoader classLoader, Object service, Set unsatisfiedConditions) { this.eventId = eventId; this.kernel = kernel; this.serviceName = serviceName; this.serviceFactory = serviceFactor... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ServiceEvent.java/buggy/kernel/src/java/org/gbean/kernel/ServiceEvent.java | |
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ea7509babe2344eb702969105eb77096cc5b6bcf/TreeCellRenderer.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/util/TreeCellRenderer.java | ||
} else setText(set.toString()); | } else { setText(set.toString()); w += fm.stringWidth(getText()); } | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ea7509babe2344eb702969105eb77096cc5b6bcf/TreeCellRenderer.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/util/TreeCellRenderer.java |
} else setText(imgNode.toString()); | } else { setText(imgNode.toString()); w += fm.stringWidth(getText()); } | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ea7509babe2344eb702969105eb77096cc5b6bcf/TreeCellRenderer.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/util/TreeCellRenderer.java |
w += fm.stringWidth(node.toString()); | w += fm.stringWidth(getText()); | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ea7509babe2344eb702969105eb77096cc5b6bcf/TreeCellRenderer.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/util/TreeCellRenderer.java |
w += getIcon().getIconWidth(); | if (getIcon() != null) w += getIcon().getIconWidth(); | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ea7509babe2344eb702969105eb77096cc5b6bcf/TreeCellRenderer.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/util/TreeCellRenderer.java |
double ccn = Util.getCCN(finder.findFile(packageData.getSourceFileName()), false); | double ccn = packageData.getCCN(finder); | private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = Util.getCCN(finder.findFile(packageData.getSourceFileName()), false); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate() + "\" bran... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/3e8a06cb6e7e9c5e2474adf5e83e4b6ddcc7a464/XMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
public ArticleBlock(String titleKey, WFTabListener taskbarListener) { super(titleKey); setId(ARTICLE_BLOCK_ID); getTitlebar().setValueRefTitle(true); setMainAreaStyleClass(null); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabBar tb = new WFTabBar(); tb.setId(TASKBAR_ID); add(tb); tb.addButtonVB(TASK_ID_EDIT, bref +... | public ArticleBlock() { | public ArticleBlock(String titleKey, WFTabListener taskbarListener) { super(titleKey); setId(ARTICLE_BLOCK_ID); getTitlebar().setValueRefTitle(true); setMainAreaStyleClass(null); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabBar tb = new WFTabBar(); tb.setId(TASKBAR_ID); add(tb); tb.addButtonVB(TASK_ID_... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/03557bc59a300e92911a58888cf6c73355c98f1c/ArticleBlock.java/clean/src/java/com/idega/block/article/component/ArticleBlock.java |
return new IOModes(getRuntime(), ((RubyString)object).getValue()); | return new IOModes(getRuntime(), ((RubyString)object).toString()); | private IOModes getModes(IRubyObject object) { if (object instanceof RubyString) { return new IOModes(getRuntime(), ((RubyString)object).getValue()); } else if (object instanceof RubyFixnum) { return new IOModes(getRuntime(), ((RubyFixnum)object).getLongValue()); } throw getRuntime().newTypeError("Invalid type... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/RubyFile.java/buggy/src/org/jruby/RubyFile.java |
model.setDefaultLayoutMethod(new NumColsLayoutMethod(8)); | public void loadDataset(int datasetID) { BrowserManager manager = env.getBrowserManager(); int index; if((index = manager.hasBrowser(datasetID)) != BrowserManager.NOT_FOUND) { manager.setActiveBrowser(index); return; } DataManagementServi... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserAgent.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/BrowserAgent.java | |
model.setDefaultLayoutMethod(lm); | public void run() { addLoaderThread(controller,this); final List thumbnails = new ArrayList(); int count = 1; int total = refList.size(); PlateLayoutMethod lm = new PlateLayoutMethod(refInfo.getNumRows(), ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserAgent.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/BrowserAgent.java | |
if(browserManager != null) { browserManager.addSelectionListener(colorMapManager); } | public void setColorMapManager(ColorMapManager manager) { this.colorMapManager = manager; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e83036080b3a8ade884eca150f3f3c2004b556c9/BrowserEnvironment.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/BrowserEnvironment.java | |
public void hidePalette(BPalette palette) | public void hidePalette(String name) | public void hidePalette(BPalette palette) { if(palette != null && paletteMap.containsValue(palette)) { for(Iterator iter = modelListeners.iterator(); iter.hasNext();) { BrowserTopModelListener listener = (BrowserTopModelListener)iter.next(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/913e45a73e803bf6a97dca24496a64546a51c9d5/BrowserTopModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/BrowserTopModel.java |
if(palette != null && paletteMap.containsValue(palette)) { for(Iterator iter = modelListeners.iterator(); iter.hasNext();) { BrowserTopModelListener listener = (BrowserTopModelListener)iter.next(); listener.hidePalette(palette); } paletteStatusMap.put(palette,new Integer(PALETTE_HIDDEN)); } | BPalette palette = (BPalette)paletteMap.get(name); hidePalette(palette); | public void hidePalette(BPalette palette) { if(palette != null && paletteMap.containsValue(palette)) { for(Iterator iter = modelListeners.iterator(); iter.hasNext();) { BrowserTopModelListener listener = (BrowserTopModelListener)iter.next(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/913e45a73e803bf6a97dca24496a64546a51c9d5/BrowserTopModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/BrowserTopModel.java |
if(datasetID == datasetShown) { embeddedUI.modelChanged(model); } | public void putColorMapModel(ColorMapModel model) { if(model == null) return; BrowserModel browserModel = model.getSource(); int datasetID = browserModel.getDataset().getID(); datasetModelMap.put(new Integer(datasetID),model); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0e4e3c4b5f21d2217fc02b1e6846dac6de60570f/ColorMapManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/colormap/ColorMapManager.java | |
if (ChainBuilderAgent.DEBUG) | if (ChainBuilderAgent.DEBUG_TIMING) | public void buildGUI(ModulesData modData) { Container content = getContentPane(); content.setLayout(new BorderLayout()); // what is the window that the chain modules are in? ChainModuleData.setMainWindow(this); JToolBar tb = new JToolBar(); Icon smallChain = icons.getIcon("chains-small.png"); JButton newChai... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ModulePaletteWindow.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/ui/ModulePaletteWindow.java |
if (ChainBuilderAgent.DEBUG) { | if (ChainBuilderAgent.DEBUG_TIMING) { | public void buildGUI(ModulesData modData) { Container content = getContentPane(); content.setLayout(new BorderLayout()); // what is the window that the chain modules are in? ChainModuleData.setMainWindow(this); JToolBar tb = new JToolBar(); Icon smallChain = icons.getIcon("chains-small.png"); JButton newChai... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ModulePaletteWindow.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/ui/ModulePaletteWindow.java |
if (ChainBuilderAgent.DEBUG) { | if (ChainBuilderAgent.DEBUG_TIMING) { | public void contentComplete() { if (dataManager.getChains() != null || dataManager.getModules() != null) { long guiStart =System.currentTimeMillis(); buildGUI((ModulesData) modLoader.getContents()); if (ChainBuilderAgent.DEBUG) { long guiTime =System.currentTimeMillis()-guiStart; System.err.println("time ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ModulePaletteWindow.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/ui/ModulePaletteWindow.java |
if (ChainBuilderAgent.DEBUG) { | if (ChainBuilderAgent.DEBUG_TIMING) { | public void contentComplete() { if (dataManager.getChains() != null || dataManager.getModules() != null) { long guiStart =System.currentTimeMillis(); buildGUI((ModulesData) modLoader.getContents()); if (ChainBuilderAgent.DEBUG) { long guiTime =System.currentTimeMillis()-guiStart; System.err.println("time ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ModulePaletteWindow.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/ui/ModulePaletteWindow.java |
return Collections.EMPTY_LIST; | return EMPTY_LIST; | public List childNodes() { return Collections.EMPTY_LIST; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/FloatNode.java/clean/src/org/jruby/ast/FloatNode.java |
interfaces.addAll( getFullyQulifiedNames( javaClass.getImplementedInterfaces() ) ); | interfaces.addAll( getFullyQualifiedNames( javaClass.getImplementedInterfaces() ) ); | private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/0e1956728573d840a0b90e5409700410c4c9bd55/QdoxMappingLoader.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/QdoxMappingLoader.java |
System.out.println("Checking: "+javaClass.getFullyQualifiedName()); | System.out.println("Checking: "+javaClass.getFullyQualifiedName()); | private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/0e1956728573d840a0b90e5409700410c4c9bd55/QdoxMappingLoader.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/QdoxMappingLoader.java |
ArrayList superClasses = new ArrayList(); | ArrayList superClasses = new ArrayList(); | private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/0e1956728573d840a0b90e5409700410c4c9bd55/QdoxMappingLoader.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/QdoxMappingLoader.java |
JavaClass s = javaClass.getSuperJavaClass(); if( s==null || s.equals(p) || "java.lang.Object".equals(s.getFullyQualifiedName()) ) { break; | JavaClass s = p.getSuperJavaClass(); if( s==null || s.equals(p) || "java.lang.Object".equals(s.getFullyQualifiedName()) ) { break; | private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/0e1956728573d840a0b90e5409700410c4c9bd55/QdoxMappingLoader.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/QdoxMappingLoader.java |
p=s; superClasses.add(p.getFullyQualifiedName()); interfaces.addAll( getFullyQulifiedNames( p.getImplementedInterfaces() ) ); | p = s; superClasses.add(p.getFullyQualifiedName()); interfaces.addAll( getFullyQualifiedNames( p.getImplementedInterfaces() ) ); | private ElementMapping loadElement(JavaClass javaClass) { DocletTag xbeanTag = javaClass.getTagByName(XBEAN_ANNOTATION); if (xbeanTag == null) { return null; } String element = getElementName(javaClass, xbeanTag); String description = getProperty(xbeanTag, "description"... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/0e1956728573d840a0b90e5409700410c4c9bd55/QdoxMappingLoader.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/QdoxMappingLoader.java |
String contentProperty, Set attributes, List constructors, List flatProperties, Map maps, Map flatCollections) { if (namespace == null) throw new NullPointerException("namespace"); | String contentProperty, Set attributes, List constructors, List flatProperties, Map maps, Map flatCollections, List superClasses, HashSet interfaces) { this.superClasses = superClasses; this.interfaces = interfaces; if (namespace == null) throw new NullPointerException("namespace"); | public ElementMapping(String namespace, String elementName, String className, String description, boolean rootElement, String initMethod, String destroyMethod, String factoryMethod, String contentProperty, Set attributes, List constructors, List flatProperties, Map maps, Map flatCollections)... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/82f8c1592f773a8e10d7a95ab3c2405dc29d8a3e/ElementMapping.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/ElementMapping.java |
c = AnnotationMapper.buildImageAnnotationCriteria(ids); | c = AnnotationMapper.buildImageAnnotationCriteria(ids, uc.getUserID()); | public List retrieveImagesWithAnnotations(int datasetID, ImageSummary retVal) throws DSOutOfServiceException, DSAccessException { //Create a new dataObject if none provided. //Object used as prototype. if (retVal == null) retVal = new ImageS... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/DMSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/DMSAdapter.java |
DatasetMapper.fillListAnnotatedImages(dataset, retVal, l, uc.getUserID(), images); | DatasetMapper.fillListAnnotatedImages(dataset, retVal, l, images); | public List retrieveImagesWithAnnotations(int datasetID, ImageSummary retVal) throws DSOutOfServiceException, DSAccessException { //Create a new dataObject if none provided. //Object used as prototype. if (retVal == null) retVal = new ImageS... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/DMSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/DMSAdapter.java |
empty.setCreated(Timestamp.valueOf(image.getCreated())); empty.setInserted(Timestamp.valueOf(image.getInserted())); | empty.setCreated(PrimitiveTypesMapper.getTimestamp(image.getCreated())); empty.setInserted( PrimitiveTypesMapper.getTimestamp(image.getInserted())); | public static void fillImage(Image image, ImageData empty) { //Fill in the data coming from OMEDS object. empty.setID(image.getID()); empty.setName(image.getName()); empty.setDescription(image.getDescription()); empty.setCreated(Timestamp.valueOf(image.getCreated())); empty.setInserted(Timestamp.valueOf(image.g... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5dbbc3e7786c9d237cda00632eddf9d6b5a29870/ImageMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/ImageMapper.java |
int userID, List images) | List images) | public static List fillListAnnotatedImages(Dataset dataset, ImageSummary iProto, List annotations, int userID, List images) { Iterator i = dataset.getImages().iterator(); Image image; ImageSummary is; in... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/DatasetMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/DatasetMapper.java |
Map ids = AnnotationMapper.reverseListImageAnnotations(annotations, userID); | Map ids = AnnotationMapper.reverseListImageAnnotations(annotations); | public static List fillListAnnotatedImages(Dataset dataset, ImageSummary iProto, List annotations, int userID, List images) { Iterator i = dataset.getImages().iterator(); Image image; ImageSummary is; in... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/DatasetMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/DatasetMapper.java |
pProto, DatasetSummary dProto, List annotations, int userID, | pProto, DatasetSummary dProto, List annotations, | public static List fillListAnnotatedDatasets(List projects, ProjectSummary pProto, DatasetSummary dProto, List annotations, int userID, List projectsList) { Map ids = AnnotationMapper.reverseListDatasetAnnotations(annotations, ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/ProjectMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/ProjectMapper.java |
Map ids = AnnotationMapper.reverseListDatasetAnnotations(annotations, userID); | Map ids = AnnotationMapper.reverseListDatasetAnnotations(annotations); | public static List fillListAnnotatedDatasets(List projects, ProjectSummary pProto, DatasetSummary dProto, List annotations, int userID, List projectsList) { Map ids = AnnotationMapper.reverseListDatasetAnnotations(annotations, ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/ProjectMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/ProjectMapper.java |
protected GeneralPath drawBezierCurve(Point2D[] pts) { GeneralPath p = new GeneralPath(); int n = pts.length; //System.err.println("drawing bezier. "+n+" points"); // width of space? int w2=100; double width =w2; double step = 1./width; double t = step; float x; float y; double newx=0; double newy=0; //S... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/Link.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/Link.java | ||
protected GeneralPath drawBezierCurve(Point2D[] pts) { GeneralPath p = new GeneralPath(); int n = pts.length; //System.err.println("drawing bezier. "+n+" points"); // width of space? int w2=100; double width =w2; double step = 1./width; double t = step; float x; float y; double newx=0; double newy=0; //S... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/Link.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/Link.java | ||
if (ChainBuilderAgent.DEBUG) System.err.println("adding link end point "+x+","+y); | public void setEndCoords(float x,float y) { //System.err.println("adding link end point "+x+","+y); setPoint(pointCount,new Point2D.Float(x,y)); setLine(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/Link.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/Link.java | |
if (ChainBuilderAgent.DEBUG) System.err.println("setting point # "+index+", # of points is "+points.size()); | public void setPoint(int index,Point2D pt) { //System.err.println("setting point # "+index+", # of points is "+points.size()); if (points.size() <= index) { points.add(index,pt); } else points.set(index,pt); updateBounds(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/Link.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/Link.java | |
if (ChainBuilderAgent.DEBUG) System.err.println(" setting a link to be selected.."); | public void setSelected(boolean v) { //System.err.println(" setting a link to be selected.."); LinkTarget startTarget = getStartLinkTarget(); LinkTarget endTarget = getEndLinkTarget(); startTarget.setSelected(v); endTarget.setSelected(v); targets.removeAllChildren(); if (v == true) { // set up children bulb.... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/Link.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/Link.java | |
WebDAVCategories categoriesUI = (WebDAVCategories)findComponent(WebDAVCategories.CATEGORIES_BLOCK_ID); | WebDAVCategories categoriesUI = (WebDAVCategories)findComponent(CATEGORY_EDITOR_ID); | private UIComponent getCategoryEditor() { WebDAVCategories categoriesUI = (WebDAVCategories)findComponent(WebDAVCategories.CATEGORIES_BLOCK_ID); if(categoriesUI==null){ //id on the component is set implicitly categoriesUI=new WebDAVCategories(); //we want to set the categories also on the parent ".article" fol... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java |
categoriesUI.setId(CATEGORY_EDITOR_ID); | private UIComponent getCategoryEditor() { WebDAVCategories categoriesUI = (WebDAVCategories)findComponent(WebDAVCategories.CATEGORIES_BLOCK_ID); if(categoriesUI==null){ //id on the component is set implicitly categoriesUI=new WebDAVCategories(); //we want to set the categories also on the parent ".article" fol... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java | |
bodyArea.addValueChangeListener(this); bodyArea.setImmediate(true); | public UIComponent getEditContainer() { FacesContext context = FacesContext.getCurrentInstance(); IWContext iwc = IWContext.getIWContext(context); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = getMainContainer(); /... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java | |
categoriesUI.saveCategoriesSettings(fileResourcePath, categoriesUI); | categoriesUI.saveCategoriesSettings(); | public void processAction(ActionEvent event) { String id = event.getComponent().getId(); UIComponent rootParent = rootParent = event.getComponent().getParent().getParent().getParent(); EditArticleView ab = (EditArticleView) rootParent.findComponent(EDIT_ARTICLE_BLOCK_ID); if (id.equals(SAVE_ID)) { //We have the ... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java |
public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { if(arg0.getOldValue()==null) { return; } if(arg0.getNewValue()==null) { return; } System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); | public void processValueChange(ValueChangeEvent event) throws AbortProcessingException { | public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { if(arg0.getOldValue()==null) { return; } if(arg0.getNewValue()==null) { return; } System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); ArticleItemBean bean = getArticleIte... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java |
ArticleItemBean bean = getArticleItemBean(); String articlePath = bean.getResourcePath(); if(null==articlePath) { return; } System.out.println("processValueChange: Article path: "+articlePath); | if(event.getComponent().getId().equals(LOCALE_ID)){ if(event.getOldValue()==null) { return; } if(event.getNewValue()==null) { return; } System.out.println("Language value has changed from "+event.getOldValue()+" to "+event.getNewValue()); ArticleItemBean bean = getArticleItemBean(); String articlePath = bean.getReso... | public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { if(arg0.getOldValue()==null) { return; } if(arg0.getNewValue()==null) { return; } System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); ArticleItemBean bean = getArticleIte... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java |
String langChange = arg0.getNewValue().toString(); | String langChange = event.getNewValue().toString(); | public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { if(arg0.getOldValue()==null) { return; } if(arg0.getNewValue()==null) { return; } System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); ArticleItemBean bean = getArticleIte... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java |
} else if(event.getComponent().getId().equals(BODY_ID)){ String newBodyValue = event.getNewValue().toString(); getArticleItemBean().setBody(newBodyValue); } else if(event.getComponent().getId().equals(HEADLINE_ID)){ String newValue = event.getNewValue().toString(); getArticleItemBean().setHeadline(newValue); } else if(... | public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { if(arg0.getOldValue()==null) { return; } if(arg0.getNewValue()==null) { return; } System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); ArticleItemBean bean = getArticleIte... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java | |
view.onDisplayChange( model.getParentModel().getBrowser().getSelectedDisplay()); | ImageDisplay node = model.getParentModel().getBrowser().getSelectedDisplay(); view.onDisplayChange(node); | private void handleBrowserSelectedDisplay(PropertyChangeEvent pce) { if (!(pce.getNewValue().equals(pce.getOldValue())) && pce.getNewValue() != null) { ImageDisplay oldNode, newNode; Colors colors = Colors.getInstance(); newNode = (ImageDisplay) pce.getNewV... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b4992016524102ee0a5c7465d4cc7a94e9ffce2d/ClipBoardControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/ClipBoardControl.java |
else if (propName.equals(SearchResultsPane.LOCALIZE_IMAGE_DISPLAY)) { | else if (propName.equals(ClipBoard.LOCALIZE_IMAGE_DISPLAY)) { | public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (propName.equals(Browser.SELECTED_DISPLAY_PROPERTY)) handleBrowserSelectedDisplay(pce); else if (propName.equals(SearchResultsPane.LOCALIZE_IMAGE_DISPLAY)) { ImageDisplay ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b4992016524102ee0a5c7465d4cc7a94e9ffce2d/ClipBoardControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/ClipBoardControl.java |
void setPaneIndex(int index) { component.setPaneIndex(index); } | void setPaneIndex(int index){ component.setPaneIndex(index, null); } | void setPaneIndex(int index) { component.setPaneIndex(index); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b4992016524102ee0a5c7465d4cc7a94e9ffce2d/ClipBoardControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/ClipBoardControl.java |
wheelwidth = this.getWidth(); | wheelwidth = this.getWidth() < this.getHeight() ? this.getWidth() : this.getHeight(); | void changePanelSize() { wheelwidth = this.getWidth(); radius = wheelwidth/2; puckColour = Color.black; puckfillColour = Color.white; img = new BufferedImage((int) wheelwidth,(int) wheelwidth, BufferedImage.TYPE_INT_ARGB); buildLUT(); createColourWheelFromLUT(); findPuck(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a120269806e5dce185dd2b5b26374a782df23119/HSVWheel.java/clean/SRC/org/openmicroscopy/shoola/util/ui/colourpicker/HSVWheel.java |
wheelwidth = this.getWidth() < this.getHeight() ? this.getWidth() : this.getHeight(); | void render(Graphics2D g) { wheelwidth = this.getWidth() < this.getHeight() ? this.getWidth() : this.getHeight(); g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g.drawImage(img, 0, 0, (int) wheelwidth, (int) wheelwidth, null); g.setRenderingHint(Renderin... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a120269806e5dce185dd2b5b26374a782df23119/HSVWheel.java/clean/SRC/org/openmicroscopy/shoola/util/ui/colourpicker/HSVWheel.java | |
stringClass.defineMethod("to_s", CallbackFactory.getSelfMethod()); stringClass.defineMethod("to_str", CallbackFactory.getSelfMethod()); | stringClass.defineMethod("to_s", CallbackFactory.getSelfMethod(0)); stringClass.defineMethod("to_str", CallbackFactory.getSelfMethod(0)); | public static RubyClass createStringClass(Ruby ruby) { RubyClass stringClass = ruby.defineClass("String", ruby.getClasses().getObjectClass()); stringClass.includeModule(ruby.getClasses().getComparableModule()); stringClass.includeModule(ruby.getClasses().getEnumerableModule()); stringClass.defineSingletonMethod("n... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/RubyString.java/buggy/org/jruby/RubyString.java |
List contents = getContents(getDir(recv.getRuntime(), path.getValue())); for (Iterator i=contents.iterator(); i.hasNext();) { String name = (String) i.next(); recv.getRuntime().yield(new RubyString(recv.getRuntime(), name)); } | RubyDir dir = (RubyDir) newInstance(recv.getRuntime().getClasses().getDirClass(), new IRubyObject[] { path }); dir.each(); | public static IRubyObject foreach(IRubyObject recv, RubyString path) { path.checkSafeString(); List contents = getContents(getDir(recv.getRuntime(), path.getValue())); for (Iterator i=contents.iterator(); i.hasNext();) { String name = (String) i.next(); recv.getRuntime().y... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a63c3a2bda4f5cc63232e1265228dad5fdecc71e/RubyDir.java/buggy/org/jruby/RubyDir.java |
contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl F11"), "viewClient"); | contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control F11"), "viewClient"); | public void initialize() { // Create IQ Filter PacketFilter packetFilter = new PacketTypeFilter(IQ.class); SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(Packet packet) { IQ iq = (IQ)packet; // Handle Vers... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/5e1d8400b514b5787162e272df97866d10408dc2/JabberVersion.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/jabber/JabberVersion.java |
data[i][1] = is.getDate(); | data[i][1] = ""; | private ImagesTableModel() { ImageSummary is; for (int i = 0; i < images.length; i++) { is = (ImageSummary) images[i]; data[i][0] = is.getName(); data[i][1] = is.getDate(); //TODO } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3babe21fc0b956c19a60ec0a4b2e1a3f2da5a7c1/ImagesPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/ImagesPaneManager.java |
public Image(Integer imageId, Date inserted, String name, String description, Date created, String imageGuid, org.openmicroscopy.omero.model.ImagePixel imagePixel, org.openmicroscopy.omero.model.Group group, org.openmicroscopy.omero.model.Experimenter experimenter, Set thumbnails, Set classifications, Set displayRois, ... | public Image() { | public Image(Integer imageId, Date inserted, String name, String description, Date created, String imageGuid, org.openmicroscopy.omero.model.ImagePixel imagePixel, org.openmicroscopy.omero.model.Group group, org.openmicroscopy.omero.model.Experimenter experimenter, Set thumbnails, Set classifications, Set displayRo... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Image.java/clean/components/common/src/org/openmicroscopy/omero/model/Image.java |
public org.openmicroscopy.omero.model.Experimenter getExperimenter() { | public Experimenter getExperimenter() { | public org.openmicroscopy.omero.model.Experimenter getExperimenter() { return this.experimenter; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Image.java/clean/components/common/src/org/openmicroscopy/omero/model/Image.java |
public org.openmicroscopy.omero.model.Group getGroup() { | public Group getGroup() { | public org.openmicroscopy.omero.model.Group getGroup() { return this.group; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Image.java/clean/components/common/src/org/openmicroscopy/omero/model/Image.java |
public org.openmicroscopy.omero.model.ImagePixel getImagePixel() { | public ImagePixel getImagePixel() { | public org.openmicroscopy.omero.model.ImagePixel getImagePixel() { return this.imagePixel; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Image.java/clean/components/common/src/org/openmicroscopy/omero/model/Image.java |
public void setExperimenter(org.openmicroscopy.omero.model.Experimenter experimenter) { | public void setExperimenter(Experimenter experimenter) { | public void setExperimenter(org.openmicroscopy.omero.model.Experimenter experimenter) { this.experimenter = experimenter; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Image.java/clean/components/common/src/org/openmicroscopy/omero/model/Image.java |
public void setGroup(org.openmicroscopy.omero.model.Group group) { | public void setGroup(Group group) { | public void setGroup(org.openmicroscopy.omero.model.Group group) { this.group = group; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Image.java/clean/components/common/src/org/openmicroscopy/omero/model/Image.java |
public void setImagePixel(org.openmicroscopy.omero.model.ImagePixel imagePixel) { | public void setImagePixel(ImagePixel imagePixel) { | public void setImagePixel(org.openmicroscopy.omero.model.ImagePixel imagePixel) { this.imagePixel = imagePixel; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Image.java/clean/components/common/src/org/openmicroscopy/omero/model/Image.java |
this.context = context; if (initializedSignal != null) { initializedSignal.countDown(); } | public void initialize(ServiceConditionContext context) { initializeCalled = true; } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java | |
this.context = context; if (initializedSignal != null) { initializedSignal.countDown(); } | public void initialize(ServiceConditionContext context) { initializeCalled = true; } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java | |
private void destroy() throws UnsatisfiedConditionsException, IllegalServiceStateException { | private void destroy(StopStrategy stopStrategy) { ServiceState initialState = serviceManager.getState(); | private void destroy() throws UnsatisfiedConditionsException, IllegalServiceStateException { serviceMonitor.reset(); serviceManager.destroy(StopStrategies.SYNCHRONOUS); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
serviceManager.destroy(StopStrategies.SYNCHRONOUS); | startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.destroy(stopStrategy); } catch (IllegalServiceStateException e) { assertFalse(stopCondition.satisfied); assertSame(StopStrategies.ASYNCHRONOUS, stopStrategy); } catch (UnsatisfiedConditionsException e) { assertFalse(stopCondition.satisf... | private void destroy() throws UnsatisfiedConditionsException, IllegalServiceStateException { serviceMonitor.reset(); serviceManager.destroy(StopStrategies.SYNCHRONOUS); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertSame(ServiceState.STOPPED, serviceManager.get... | if (serviceFactory.restartable || initialState == ServiceState.STOPPED) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); asser... | private void destroy() throws UnsatisfiedConditionsException, IllegalServiceStateException { serviceMonitor.reset(); serviceManager.destroy(StopStrategies.SYNCHRONOUS); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
private void disabledStart(StartStrategy startStrategy) throws Exception { serviceFactory.setEnabled(false); try { serviceManager.start(false, startStrategy); fail("A disabled service should throw an IllegalServiceStateException from start"); } catch (IllegalServiceStateEx... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java | ||
try { start(false, startStrategy); } catch (IllegalServiceStateException e) { assertTrue(startStrategy == StartStrategies.UNREGISTER); } try { start(false, startStrategy); } catch (IllegalServiceStateException e) { assertTrue(startStrategy == StartStrategies.UNREGISTER); } | start(false, startStrategy); start(false, startStrategy); | private void disabledStart(StartStrategy startStrategy) throws Exception { serviceFactory.setEnabled(false); try { serviceManager.start(false, startStrategy); fail("A disabled service should throw an IllegalServiceStateException from start"); } catch (IllegalServiceStateEx... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
serviceManager.initialize(); | startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.initialize(); } catch (MockCreateException e) { assertTrue(serviceFactory.throwExceptionFromCreate == true); assertSame(serviceFactory.createException, e); } catch (UnsatisfiedConditionsException e) { assertTrue(startCondition.satisfied... | private void initialize() throws Exception { serviceMonitor.reset(); serviceManager.initialize(); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertSame(ServiceState.STOPPED, serviceManager.getState()); assertNotNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(serviceMonitor.startError); assertNu... | if (serviceFactory.restartable) { assertSame(ServiceState.STOPPED, serviceManager.getState()); assertEquals(0, serviceManager.getStartTime()); assertNull(serviceManager.getService()); assertNotNull(serviceMonitor.registered); assertNull(serviceMonitor.starting); assertNull(serviceMonitor.waitingToStart); assertNull(se... | private void initialize() throws Exception { serviceMonitor.reset(); serviceManager.initialize(); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
private void startException(StartStrategy startStrategy) throws Exception { | private void startException(StartStrategy startStrategy, boolean recursive) throws Exception { | private void startException(StartStrategy startStrategy) throws Exception { serviceFactory.throwExceptionFromCreate = true; try { start(false, startStrategy); } catch (MockCreateException e) { assertTrue(startStrategy == StartStrategies.SYNCHRONOUS || startStrategy == Star... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
start(false, startStrategy); | start(recursive, startStrategy); | private void startException(StartStrategy startStrategy) throws Exception { serviceFactory.throwExceptionFromCreate = true; try { start(false, startStrategy); } catch (MockCreateException e) { assertTrue(startStrategy == StartStrategies.SYNCHRONOUS || startStrategy == Star... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
private void startStop(StartStrategy startStrategy) throws Exception { start(false, startStrategy); | private void startStop(StartStrategy startStrategy, boolean recursive) throws Exception { start(recursive, startStrategy); | private void startStop(StartStrategy startStrategy) throws Exception { start(false, startStrategy); stop(StopStrategies.SYNCHRONOUS); start(false, startStrategy); start(false, startStrategy); stop(StopStrategies.SYNCHRONOUS); stop(StopStrategies.SYNCHRONOUS); } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
start(false, startStrategy); start(false, startStrategy); | start(recursive, startStrategy); start(recursive, startStrategy); | private void startStop(StartStrategy startStrategy) throws Exception { start(false, startStrategy); stop(StopStrategies.SYNCHRONOUS); start(false, startStrategy); start(false, startStrategy); stop(StopStrategies.SYNCHRONOUS); stop(StopStrategies.SYNCHRONOUS); } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
} else if (!stopCondition.satisfied) { | } else if (!stopCondition.satisfied && stopStrategy != StopStrategies.FORCE) { | private void stop(StopStrategy stopStrategy) throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); ServiceState initialState = serviceManager.getState(); serviceManager.stop(stopStrategy); assertSame(serviceName, serviceManager.getService... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
assertNull(serviceMonitor.stopError); | if (stopStrategy == StopStrategies.FORCE) { assertNotNull(serviceMonitor.stopError); ForcedStopException cause = (ForcedStopException) serviceMonitor.stopError.getCause(); assertTrue(cause.getUnsatisfiedConditions().contains(stopCondition)); } else { assertNull(serviceMonitor.stopError); } | private void stop(StopStrategy stopStrategy) throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); ServiceState initialState = serviceManager.getState(); serviceManager.stop(stopStrategy); assertSame(serviceName, serviceManager.getService... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
if (initialState != ServiceState.STOPPING) { | if (stopStrategy == StopStrategies.FORCE) { assertEquals(serviceMonitor.stopping.getEventId() + 1, serviceMonitor.stopError.getEventId()); assertEquals(serviceMonitor.stopping.getEventId() + 2, serviceMonitor.stopped.getEventId()); } else if (initialState != ServiceState.STOPPING) { | private void stop(StopStrategy stopStrategy) throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); ServiceState initialState = serviceManager.getState(); serviceManager.stop(stopStrategy); assertSame(serviceName, serviceManager.getService... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
destroy(); | destroy(StopStrategies.SYNCHRONOUS); | public void testInitializeDestroy() throws Exception { initialize(); destroy(); initialize(); destroy(); } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
destroy(); | destroy(StopStrategies.SYNCHRONOUS); | public void testInitializeDestroy() throws Exception { initialize(); destroy(); initialize(); destroy(); } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
startException(StartStrategies.ASYNCHRONOUS); startException(StartStrategies.SYNCHRONOUS); startException(StartStrategies.UNREGISTER); startException(StartStrategies.BLOCK); | startException(StartStrategies.ASYNCHRONOUS, false); startException(StartStrategies.SYNCHRONOUS, false); startException(StartStrategies.UNREGISTER, false); startException(StartStrategies.BLOCK, false); | public void testStartException() throws Exception { startException(StartStrategies.ASYNCHRONOUS); startException(StartStrategies.SYNCHRONOUS); startException(StartStrategies.UNREGISTER); startException(StartStrategies.BLOCK); startException(StartStrategies.ASYNCHRONOUS); st... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
startException(StartStrategies.ASYNCHRONOUS); startException(StartStrategies.SYNCHRONOUS); startException(StartStrategies.UNREGISTER); startException(StartStrategies.BLOCK); | startException(StartStrategies.ASYNCHRONOUS, false); startException(StartStrategies.SYNCHRONOUS, false); startException(StartStrategies.UNREGISTER, false); startException(StartStrategies.BLOCK, false); | public void testStartException() throws Exception { startException(StartStrategies.ASYNCHRONOUS); startException(StartStrategies.SYNCHRONOUS); startException(StartStrategies.UNREGISTER); startException(StartStrategies.BLOCK); startException(StartStrategies.ASYNCHRONOUS); st... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
startRecursive(StartStrategies.ASYNCHRONOUS); startRecursive(StartStrategies.SYNCHRONOUS); startRecursive(StartStrategies.UNREGISTER); startRecursive(StartStrategies.BLOCK); | startStop(StartStrategies.ASYNCHRONOUS, true); startStop(StartStrategies.SYNCHRONOUS, true); startStop(StartStrategies.UNREGISTER, true); startStop(StartStrategies.BLOCK, true); | public void testStartRecursive() throws Exception { startRecursive(StartStrategies.ASYNCHRONOUS); startRecursive(StartStrategies.SYNCHRONOUS); startRecursive(StartStrategies.UNREGISTER); startRecursive(StartStrategies.BLOCK); startRecursive(StartStrategies.ASYNCHRONOUS); st... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
startRecursive(StartStrategies.ASYNCHRONOUS); startRecursive(StartStrategies.SYNCHRONOUS); startRecursive(StartStrategies.UNREGISTER); startRecursive(StartStrategies.BLOCK); | startStop(StartStrategies.ASYNCHRONOUS, true); startStop(StartStrategies.SYNCHRONOUS, true); startStop(StartStrategies.UNREGISTER, true); startStop(StartStrategies.BLOCK, true); | public void testStartRecursive() throws Exception { startRecursive(StartStrategies.ASYNCHRONOUS); startRecursive(StartStrategies.SYNCHRONOUS); startRecursive(StartStrategies.UNREGISTER); startRecursive(StartStrategies.BLOCK); startRecursive(StartStrategies.ASYNCHRONOUS); st... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHRONOUS); startStop(StartStrategies.UNREGISTER); startStop(StartStrategies.BLOCK); | startStop(StartStrategies.ASYNCHRONOUS, false); startStop(StartStrategies.SYNCHRONOUS, false); startStop(StartStrategies.UNREGISTER, false); startStop(StartStrategies.BLOCK, false); | public void testStartStop() throws Exception { startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHRONOUS); startStop(StartStrategies.UNREGISTER); startStop(StartStrategies.BLOCK); startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHR... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.