bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
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 ... | 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 ... | 3,231,656 |
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... | 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... | 3,231,657 |
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... | 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... | 3,231,658 |
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... | 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... | 3,231,659 |
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... | 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... | 3,231,661 |
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 ... | public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (propName.equals(Browser.SELECTED_DISPLAY_PROPERTY)) handleBrowserSelectedDisplay(pce); else if (propName.equals(ClipBoard.LOCALIZE_IMAGE_DISPLAY)) { ImageDisplay node = (... | 3,231,662 |
void setPaneIndex(int index) { component.setPaneIndex(index); } | void setPaneIndex(int index) { component.setPaneIndex(index); } | 3,231,663 |
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(); } | 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(); } | 3,231,664 |
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... | 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... | 3,231,665 |
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... | 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... | 3,231,666 |
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... | 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... | 3,231,667 |
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... | 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... | 3,231,668 |
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 } } | private ImagesTableModel() { ImageSummary is; for (int i = 0; i < images.length; i++) { is = (ImageSummary) images[i]; data[i][0] = is.getName(); data[i][1] = ""; //TODO } } | 3,231,669 |
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... | 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... | 3,231,670 |
public org.openmicroscopy.omero.model.Experimenter getExperimenter() { return this.experimenter; } | public Experimenter getExperimenter() { return this.experimenter; } | 3,231,671 |
public org.openmicroscopy.omero.model.Group getGroup() { return this.group; } | public Group getGroup() { return this.group; } | 3,231,672 |
public org.openmicroscopy.omero.model.ImagePixel getImagePixel() { return this.imagePixel; } | public ImagePixel getImagePixel() { return this.imagePixel; } | 3,231,673 |
public void setExperimenter(org.openmicroscopy.omero.model.Experimenter experimenter) { this.experimenter = experimenter; } | public void setExperimenter(Experimenter experimenter) { this.experimenter = experimenter; } | 3,231,674 |
public void setGroup(org.openmicroscopy.omero.model.Group group) { this.group = group; } | public void setGroup(Group group) { this.group = group; } | 3,231,675 |
public void setImagePixel(org.openmicroscopy.omero.model.ImagePixel imagePixel) { this.imagePixel = imagePixel; } | public void setImagePixel(ImagePixel imagePixel) { this.imagePixel = imagePixel; } | 3,231,676 |
private void destroy() throws UnsatisfiedConditionsException, IllegalServiceStateException { serviceMonitor.reset(); serviceManager.destroy(StopStrategies.SYNCHRONOUS); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()... | private void destroy(StopStrategy stopStrategy) { ServiceState initialState = serviceManager.getState(); serviceMonitor.reset(); serviceManager.destroy(StopStrategies.SYNCHRONOUS); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServ... | 3,231,679 |
private void destroy() throws UnsatisfiedConditionsException, IllegalServiceStateException { serviceMonitor.reset(); serviceManager.destroy(StopStrategies.SYNCHRONOUS); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()... | private void destroy() throws UnsatisfiedConditionsException, IllegalServiceStateException { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.destroy(stopStrategy); } catch (IllegalServiceStateException e) { assertFalse(stopCondition.satisfied... | 3,231,680 |
private void destroy() throws UnsatisfiedConditionsException, IllegalServiceStateException { serviceMonitor.reset(); serviceManager.destroy(StopStrategies.SYNCHRONOUS); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()... | private void destroy() throws UnsatisfiedConditionsException, IllegalServiceStateException { serviceMonitor.reset(); serviceManager.destroy(StopStrategies.SYNCHRONOUS); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()... | 3,231,681 |
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... | 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... | 3,231,682 |
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... | 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... | 3,231,683 |
private void initialize() throws Exception { serviceMonitor.reset(); serviceManager.initialize(); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); ... | private void initialize() throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.initialize(); } catch (MockCreateException e) { assertTrue(serviceFactory.throwExceptionFromCreate == true); assertSame(serviceFactory.createExceptio... | 3,231,684 |
private void initialize() throws Exception { serviceMonitor.reset(); serviceManager.initialize(); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); ... | private void initialize() throws Exception { serviceMonitor.reset(); serviceManager.initialize(); assertSame(serviceName, serviceManager.getServiceName()); assertSame(serviceFactory, serviceManager.getServiceFactory()); assertSame(classLoader, serviceManager.getClassLoader()); ... | 3,231,685 |
private void startException(StartStrategy startStrategy) throws Exception { serviceFactory.throwExceptionFromCreate = true; try { start(false, startStrategy); } catch (MockCreateException e) { assertTrue(startStrategy == StartStrategies.SYNCHRONOUS || startStrategy == Star... | private void startException(StartStrategy startStrategy, boolean recursive) throws Exception { serviceFactory.throwExceptionFromCreate = true; try { start(false, startStrategy); } catch (MockCreateException e) { assertTrue(startStrategy == StartStrategies.SYNCHRONOUS || st... | 3,231,686 |
private void startException(StartStrategy startStrategy) throws Exception { serviceFactory.throwExceptionFromCreate = true; try { start(false, startStrategy); } catch (MockCreateException e) { assertTrue(startStrategy == StartStrategies.SYNCHRONOUS || startStrategy == Star... | private void startException(StartStrategy startStrategy) throws Exception { serviceFactory.throwExceptionFromCreate = true; try { start(recursive, startStrategy); } catch (MockCreateException e) { assertTrue(startStrategy == StartStrategies.SYNCHRONOUS || startStrategy == ... | 3,231,687 |
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); } | 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); } | 3,231,688 |
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); } | 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); } | 3,231,689 |
private void stop(StopStrategy stopStrategy) throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); ServiceState initialState = serviceManager.getState(); serviceManager.stop(stopStrategy); assertSame(serviceName, serviceManager.getService... | private void stop(StopStrategy stopStrategy) throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); ServiceState initialState = serviceManager.getState(); serviceManager.stop(stopStrategy); assertSame(serviceName, serviceManager.getService... | 3,231,690 |
private void stop(StopStrategy stopStrategy) throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); ServiceState initialState = serviceManager.getState(); serviceManager.stop(stopStrategy); assertSame(serviceName, serviceManager.getService... | private void stop(StopStrategy stopStrategy) throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); ServiceState initialState = serviceManager.getState(); serviceManager.stop(stopStrategy); assertSame(serviceName, serviceManager.getService... | 3,231,691 |
private void stop(StopStrategy stopStrategy) throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); ServiceState initialState = serviceManager.getState(); serviceManager.stop(stopStrategy); assertSame(serviceName, serviceManager.getService... | private void stop(StopStrategy stopStrategy) throws Exception { serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); ServiceState initialState = serviceManager.getState(); serviceManager.stop(stopStrategy); assertSame(serviceName, serviceManager.getService... | 3,231,692 |
public void testInitializeDestroy() throws Exception { initialize(); destroy(); initialize(); destroy(); } | public void testInitializeDestroy() throws Exception { initialize(); destroy(StopStrategies.SYNCHRONOUS); initialize(); destroy(StopStrategies.SYNCHRONOUS); } | 3,231,693 |
public void testInitializeDestroy() throws Exception { initialize(); destroy(); initialize(); destroy(); } | public void testInitializeDestroy() throws Exception { initialize(); destroy(StopStrategies.SYNCHRONOUS); initialize(); destroy(StopStrategies.SYNCHRONOUS); } | 3,231,694 |
public void testStartException() throws Exception { startException(StartStrategies.ASYNCHRONOUS); startException(StartStrategies.SYNCHRONOUS); startException(StartStrategies.UNREGISTER); startException(StartStrategies.BLOCK); startException(StartStrategies.ASYNCHRONOUS); st... | public void testStartException() throws Exception { startException(StartStrategies.ASYNCHRONOUS); startException(StartStrategies.SYNCHRONOUS); startException(StartStrategies.UNREGISTER); startException(StartStrategies.BLOCK); startException(StartStrategies.ASYNCHRONOUS); st... | 3,231,695 |
public void testStartException() throws Exception { startException(StartStrategies.ASYNCHRONOUS); startException(StartStrategies.SYNCHRONOUS); startException(StartStrategies.UNREGISTER); startException(StartStrategies.BLOCK); startException(StartStrategies.ASYNCHRONOUS); st... | public void testStartException() throws Exception { startException(StartStrategies.ASYNCHRONOUS); startException(StartStrategies.SYNCHRONOUS); startException(StartStrategies.UNREGISTER); startException(StartStrategies.BLOCK); startException(StartStrategies.ASYNCHRONOUS); st... | 3,231,696 |
public void testStartRecursive() throws Exception { startRecursive(StartStrategies.ASYNCHRONOUS); startRecursive(StartStrategies.SYNCHRONOUS); startRecursive(StartStrategies.UNREGISTER); startRecursive(StartStrategies.BLOCK); startRecursive(StartStrategies.ASYNCHRONOUS); st... | public void testStartRecursive() throws Exception { startRecursive(StartStrategies.ASYNCHRONOUS); startRecursive(StartStrategies.SYNCHRONOUS); startRecursive(StartStrategies.UNREGISTER); startRecursive(StartStrategies.BLOCK); startRecursive(StartStrategies.ASYNCHRONOUS); st... | 3,231,697 |
public void testStartRecursive() throws Exception { startRecursive(StartStrategies.ASYNCHRONOUS); startRecursive(StartStrategies.SYNCHRONOUS); startRecursive(StartStrategies.UNREGISTER); startRecursive(StartStrategies.BLOCK); startRecursive(StartStrategies.ASYNCHRONOUS); st... | public void testStartRecursive() throws Exception { startRecursive(StartStrategies.ASYNCHRONOUS); startRecursive(StartStrategies.SYNCHRONOUS); startRecursive(StartStrategies.UNREGISTER); startRecursive(StartStrategies.BLOCK); startRecursive(StartStrategies.ASYNCHRONOUS); st... | 3,231,698 |
public void testStartStop() throws Exception { startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHRONOUS); startStop(StartStrategies.UNREGISTER); startStop(StartStrategies.BLOCK); startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHR... | public void testStartStop() throws Exception { startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHRONOUS); startStop(StartStrategies.UNREGISTER); startStop(StartStrategies.BLOCK); startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHR... | 3,231,699 |
public void testStartStop() throws Exception { startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHRONOUS); startStop(StartStrategies.UNREGISTER); startStop(StartStrategies.BLOCK); startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHR... | public void testStartStop() throws Exception { startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHRONOUS); startStop(StartStrategies.UNREGISTER); startStop(StartStrategies.BLOCK); startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHR... | 3,231,700 |
public void testStartWaiting() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); } | public void testStartWaiting() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); } | 3,231,701 |
public void testStartWaiting() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); } | public void testStartWaiting() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); } | 3,231,702 |
public void testStartWaitingStart() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); startCondition.satisfied = true; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartSt... | public void testStartWaitingStart() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); startCondition.satisfied = true; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartSt... | 3,231,703 |
public void testStartWaitingStart() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); startCondition.satisfied = true; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartSt... | public void testStartWaitingStart() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); startCondition.satisfied = true; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartSt... | 3,231,704 |
public void testWaitingStop() throws Exception { start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); stopCondition.satisfied = true; stop(StopStrategies.ASYNCHRONOUS); star... | public void testWaitingStop() throws Exception { start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); stopCondition.satisfied = true; stop(StopStrategies.ASYNCHRONOUS); star... | 3,231,705 |
public void stateChanged(ChangeEvent ce) { int state = model.getState(); switch (state) { case HiViewer.LOADING_THUMBNAILS: Browser browser = model.getBrowser(); browser.addPropertyChangeListener(Browser.POPUP_POINT_PROPERTY, ... | public void stateChanged(ChangeEvent ce) { int state = model.getState(); switch (state) { case HiViewer.LOADING_THUMBNAILS: Browser browser = model.getBrowser(); browser.addPropertyChangeListener(Browser.POPUP_POINT_PROPERTY, ... | 3,231,707 |
public final RubyFixnum hash() { return RubyFixnum.newFixnum(getRuby(), hashCode()); } | public final RubyFixnum hash() { return RubyFixnum.newFixnum(getRuby(), hashCode()); } | 3,231,709 |
private void configureMenu() { // setup file menu JMenuItem exitMenuItem = new JMenuItem("Exit"); // Setup ResourceUtils ResourceUtils.resButton(connectMenu, "&" + Default.getString(Default.APPLICATION_NAME)); ResourceUtils.resButton(contactsMenu, "Con&tacts"); ResourceUtil... | private void configureMenu() { // setup file menu JMenuItem exitMenuItem = new JMenuItem("Exit"); // Setup ResourceUtils ResourceUtils.resButton(connectMenu, "&" + Default.getString(Default.APPLICATION_NAME)); ResourceUtils.resButton(contactsMenu, "Con&tacts"); ResourceUtil... | 3,231,710 |
public CheckUpdates() { // Set the Jabber IQ Provider for Jabber:iq:spark ProviderManager.addIQProvider("query", "jabber:iq:spark", new SparkVersion.Provider()); // For simplicity, use an alias for the root xml tag xstream.alias("Version", SparkVersion.class); // Specify the main ... | public CheckUpdates() { // Set the Jabber IQ Provider for Jabber:iq:spark ProviderManager.addIQProvider("query", "jabber:iq:spark", new SparkVersion.Provider()); // For simplicity, use an alias for the root xml tag xstream.alias("Version", SparkVersion.class); // Specify the main ... | 3,231,711 |
public String getInput(String title, String description, Icon icon, Component parent) { textArea = new JTextArea(); subjectField = new JTextField(); textArea.setLineWrap(true); TitlePanel titlePanel = new TitlePanel(title, description, icon, true); // Construct main panel w/ layou... | public String getInput(String title, String description, Icon icon, Component parent) { textArea = new JTextArea(); subjectField = new JTextField(); textArea.setLineWrap(true); TitlePanel titlePanel = new TitlePanel(title, description, icon, true); // Construct main panel w/ layou... | 3,231,712 |
public String getInput(String title, String description, Icon icon, Component parent) { textArea = new JTextArea(); subjectField = new JTextField(); textArea.setLineWrap(true); TitlePanel titlePanel = new TitlePanel(title, description, icon, true); // Construct main panel w/ layou... | public String getInput(String title, String description, Icon icon, Component parent) { textArea = new JTextArea(); subjectField = new JTextField(); textArea.setLineWrap(true); TitlePanel titlePanel = new TitlePanel(title, description, icon, true); // Construct main panel w/ layou... | 3,231,713 |
public void push(NODE v, NODE b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b... | public void push(NODE v, NODE b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b... | 3,231,714 |
public final void parse() throws IOException, TemplateException { // thread policy: // // unsynchronized code elsewhere will access _content. We must // ensure that any data copied into _content is ready for public // use--which means dealing with two subtle issues. First, the Block ... | public final void parse() throws IOException, TemplateException { // thread policy: // // unsynchronized code elsewhere will access _content. We must // ensure that any data copied into _content is ready for public // use--which means dealing with two subtle issues. First, the Block ... | 3,231,715 |
public void initializeContent(){ //TODO Remove this and use newer localization system: FacesContext context = FacesContext.getCurrentInstance(); WFPage.loadResourceBundles(context); super.initializeContent(); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyl... | public void initializeContent(){ //TODO Remove this and use newer localization system: FacesContext context = FacesContext.getCurrentInstance(); WFPage.loadResourceBundles(context); super.initializeContent(); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyl... | 3,231,716 |
public void serviceRegistered(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonit... | public void serviceRegistered(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonit... | 3,231,717 |
public void serviceStarting(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor... | public void serviceStarting(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor... | 3,231,718 |
public void serviceWaitingToStart(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceM... | public void serviceWaitingToStart(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceM... | 3,231,719 |
public void serviceStartError(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonit... | public void serviceStartError(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonit... | 3,231,720 |
public void serviceRunning(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor)... | public void serviceRunning(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor)... | 3,231,721 |
public void serviceStopping(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor... | public void serviceStopping(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor... | 3,231,722 |
public void serviceWaitingToStop(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMo... | public void serviceWaitingToStop(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMo... | 3,231,723 |
public void serviceStopError(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonito... | public void serviceStopError(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonito... | 3,231,724 |
public void serviceStopped(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor)... | public void serviceStopped(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor)... | 3,231,725 |
public void serviceUnregistered(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMon... | public void serviceUnregistered(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMon... | 3,231,726 |
public void addServiceMonitor(ServiceMonitor serviceMonitor, ServiceName serviceName) { synchronized (serviceMonitors) { Set monitors = (Set) serviceMonitors.get(serviceName); if (monitors == null) { monitors = new LinkedHashSet(); serviceMonitors.put(servi... | public void addServiceMonitor(ServiceMonitor serviceMonitor, ServiceName serviceName) { synchronized (serviceMonitors) { Set monitors = (Set) serviceMonitors.get(serviceName); if (monitors == null) { monitors = new LinkedHashSet(); serviceMonitors.put(servi... | 3,231,727 |
DataHandler annotateDataObjects(Set nodes) { Object uo; Set toAnnotate = new HashSet(); Iterator i = nodes.iterator(); while (i.hasNext()) { uo = ((ImageDisplay) i.next()).getHierarchyObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, Hi... | DataHandler annotateDataObjects(Set nodes) { Object uo; Set toAnnotate = new HashSet(); Iterator i = nodes.iterator(); while (i.hasNext()) { uo = ((ImageDisplay) i.next()).getHierarchyObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, Hi... | 3,231,728 |
DataHandler annotateDataObjects(Set nodes) { Object uo; Set toAnnotate = new HashSet(); Iterator i = nodes.iterator(); while (i.hasNext()) { uo = ((ImageDisplay) i.next()).getHierarchyObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, Hi... | DataHandler annotateDataObjects(Set nodes) { Object uo; Set toAnnotate = new HashSet(); Iterator i = nodes.iterator(); while (i.hasNext()) { uo = ((ImageDisplay) i.next()).getHierarchyObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, Hi... | 3,231,729 |
DataHandler classifyImageObjects(ImageData[] nodes, int mode) { Set images = new HashSet(nodes.length); for (int i = 0; i < nodes.length; i++) images.add(nodes[i]); dataHandler = ClassifierFactory.getClassifier(images, getRootLevel(), getRootID(), mode, HiViewerAgent.getRegistry()); return dataHandler; } | DataHandler classifyImageObjects(ImageData[] nodes, int mode) { Set images = new HashSet(nodes.length); for (int i = 0; i < nodes.length; i++) images.add(nodes[i]); dataHandler = ClassifierFactory.getClassifier(images, getRootLevel(), getRootID(), mode, HiViewerAgent.getRegistry()); return dataHandler; } | 3,231,730 |
DataHandler classifyImageObjects(ImageData[] nodes, int mode) { Set images = new HashSet(nodes.length); for (int i = 0; i < nodes.length; i++) images.add(nodes[i]); dataHandler = ClassifierFactory.getClassifier(images, getRootLevel(), getRootID(), mode, HiViewerAgent.getRegistry()); return dataHandler; } | DataHandler classifyImageObjects(ImageData[] nodes, int mode) { Set images = new HashSet(nodes.length); for (int i = 0; i < nodes.length; i++) images.add(nodes[i]); dataHandler = ClassifierFactory.getClassifier(images, getRootLevel(), getRootID(), mode, HiViewerAgent.getRegistry()); return dataHandler; } | 3,231,731 |
public static RubyString m_new(Ruby ruby, RubyObject[] args) { RubyString newString = m_newString(ruby, ""); newString.callInit(args); return newString; } | public static RubyString m_new(Ruby ruby, RubyObject recv, RubyObject[] args) { RubyString newString = m_newString(ruby, ""); newString.callInit(args); return newString; } | 3,231,732 |
private void buildMagnifiedLabel() { // set up the magnified version of the module name zoomName = new PText(getName()); //zoomName.setGreekThreshold(0); zoomName.setFont(Constants.NAME_FONT); zoomName.setPickable(false); zoomName.setConstrainWidthToTextWidth(false); double zwidth; double zheight; //float ... | privatezoomName.setGreekThreshold(0); voidzoomName.setGreekThreshold(0); buildMagnifiedLabel()zoomName.setGreekThreshold(0); { //zoomName.setGreekThreshold(0); setzoomName.setGreekThreshold(0); upzoomName.setGreekThreshold(0); thezoomName.setGreekThreshold(0); magnifiedzoomName.setGreekThreshold(0); versionzoomName.s... | 3,231,734 |
public static RubyObject puts(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { ruby.getRuntime().getOutputStream().println(); return ruby.getNil(); } for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (args[i... | public static RubyObject puts(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { ruby.getRuntime().getOutputStream().println(); return ruby.getNil(); } for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (args[i... | 3,231,735 |
AnnotatorControl(Annotator model) { if (model == null) throw new NullPointerException("No model."); this.model = model; actionsMap = new HashMap(); } | AnnotatorControl(Annotator model) { if (model == null) throw new NullPointerException("No model."); this.model = model; actionsMap = new HashMap(); } | 3,231,736 |
AnnotatorView() { super(); setProperties(); } | AnnotatorView() { super(); setProperties(); } | 3,231,737 |
void discard() { cancel(); state = Annotator.DISCARDED; } | void discard() { cancel(); state = Annotator.DISCARDED; } | 3,231,738 |
AnnotationData getAnnotationType() { if (type.equals(DatasetData.class)) return new AnnotationData(AnnotationData.DATASET_ANNOTATION); return new AnnotationData(AnnotationData.IMAGE_ANNOTATION); } | AnnotationDatagetAnnotationType() { if(type.equals(DatasetData.class)) returnnewAnnotationData(AnnotationData.DATASET_ANNOTATION); returnnewAnnotationData(AnnotationData.IMAGE_ANNOTATION); } | 3,231,739 |
void initialize(AnnotatorView view) { if (view == null) throw new NullPointerException("No view."); this.view = view; createActions(); attachListeners(); } | void initialize(AnnotatorView view) { if (view == null) throw new NullPointerException("No view."); this.view = view; createActions(); attachListeners(); } | 3,231,740 |
void initialize(AnnotatorModel model, AnnotatorControl controller) { if (model == null) throw new IllegalArgumentException("No model."); if (controller == null) throw new IllegalArgumentException("No control."); this.controller = controller; statusBar = new StatusBar(); annotatorUI = new AnnotatorUI(mo... | void initialize(AnnotatorModel model, AnnotatorControl controller) { if (model == null) throw new IllegalArgumentException("No model."); if (controller == null) throw new IllegalArgumentException("No control."); this.controller = controller; statusBar = new StatusBar(); annotatorUI = new AnnotatorUI(mo... | 3,231,741 |
void setAnnotations(Map map) { ViewerSorter sorter = new ViewerSorter(); sorter.setAscending(false); HashMap sortedAnnotations = new HashMap(); Set set; Long index; Iterator i = map.keySet().iterator(), l; Iterator j; AnnotationData data; HashMap m; List timestamps, re... | void setAnnotations(Map map) { ViewerSorter sorter = new ViewerSorter(); sorter.setAscending(false); HashMap sortedAnnotations = new HashMap(); Set set; Long index; Iterator i = map.keySet().iterator(), l; Iterator j; AnnotationData data; HashMap m; List timestamps, re... | 3,231,742 |
public RubyFixnum op_cmp(IRubyObject other) { if (! (other instanceof JavaClassClass)) { throw new TypeError(getRuntime(), "<=> requires JavaClass (" + other.getType() + " given)"); } JavaClassClass otherClass = (JavaClassClass) other; if (this.javaClass == otherClass.javaClas... | public RubyFixnum op_cmp(IRubyObject other) { if (! (other instanceof JavaClassClass)) { throw new TypeError(getRuntime(), "<=> requires JavaClass (" + other.getType() + " given)"); } JavaClassClass otherClass = (JavaClassClass) other; if (this.javaClass == otherClass.javaClas... | 3,231,743 |
StatusBar() { initComponents(); buildUI(); } | StatusBar() { initComponents(); buildUI(); } | 3,231,744 |
private void buildUI() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPan... | private void buildUI() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPan... | 3,231,745 |
private void initComponents() { IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); progressBar.setVisible(false); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.INFO)); statusButton.setBorder(n... | private void initComponents() { IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); progressBar.setVisible(false); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.INFO)); statusButton.setBorder(n... | 3,231,746 |
void setProgress(boolean hide) { progressBar.setVisible(!hide); } | void setProgress(boolean hide) { progressBar.setVisible(!hide); } | 3,231,747 |
private void softWareUpdates() { SoftwareUpdateDialog d = new SoftwareUpdateDialog(view); UIUtilities.centerAndShow(d); } | private void softWareUpdates() { String message = loadAbout(container.resolveConfigFile(ABOUT_FILE)); SoftwareUpdateDialog d = new SoftwareUpdateDialog(view, message); UIUtilities.centerAndShow(d); } | 3,231,748 |
private void buildLUT() { LUT = new int[intervalEnd-intervalStart+1]; CodomainMap map; CodomainMapContext ctx; int v; Iterator i = chain.iterator(); for (int x = intervalStart; x <= intervalEnd; ++x) { v = x; while (i.hasNext()) { ctx = (CodomainMapContext) i.next(); map = ctx.getCodomainMap(); map.... | private void buildLUT() { LUT = new int[intervalEnd-intervalStart+1]; CodomainMap map; CodomainMapContext ctx; int v; Iterator i = chain.iterator(); for (int x = intervalStart; x <= intervalEnd; ++x) { v = x; while (i.hasNext()) { ctx = (CodomainMapContext) i.next(); map = ctx.getCodomainMap(); map.... | 3,231,749 |
public int transform(int x) { verifyInput(x); return LUT[x-intervalStart]; } | public int transform(int x) { verifyInput(x); return LUT[x-intervalStart]; } | 3,231,751 |
private void verifyInput(int x) { if (x < intervalStart || x > intervalEnd) throw new IllegalArgumentException( "Value not in the codomain interval: "+x); } | private void verifyInput(int x) { if (x < intervalStart || x > intervalEnd) throw new IllegalArgumentException( "Value not in the codomain interval: "+x); } | 3,231,752 |
private void verifyInput(int x) { if (x < intervalStart || x > intervalEnd) throw new IllegalArgumentException( "Value not in the codomain interval: "+x); } | private void verifyInput(int x) { if (x < intervalStart || x > intervalEnd) throw new IllegalArgumentException( "Value not in the codomain interval: "+x); } | 3,231,753 |
public void replace(long beg, long len, RubyObject repl) { int length = getLength(); if (len < 0) { throw new RubyIndexException(getRuby(), "Negative array length: " + len); } if (beg < 0) { beg += length; } if (beg < 0) { throw new RubyInde... | public void replace(long beg, long len, RubyObject repl) { int length = getLength(); if (len < 0) { throw new RubyIndexException(getRuby(), "Negative array length: " + len); } if (beg < 0) { beg += length; } if (beg < 0) { throw new RubyInde... | 3,231,754 |
public void actionPerformed(ActionEvent e) { String s = (String) e.getActionCommand(); try { int index = Integer.parseInt(s); switch (index) { case R_VISIBLE: abstraction.showPresentation(); break; case SAVE: saveDisplayOptions(); break; case GREY: case RGB: case HSB: acti... | public void actionPerformed(ActionEvent e) { String s = (String) e.getActionCommand(); try { int index = Integer.parseInt(s); switch (index) { case R_VISIBLE: abstraction.showPresentation(); break; case SAVE: saveDisplayOptions(); break; case GREY: case RGB: case HSB: acti... | 3,231,755 |
private Principal clearAndCheckPrincipal() { // clear even if this fails. (make SecuritySystem unusable) cd.clear(); final Principal p = principalHolder.get(); if (p == null) throw new SecurityViolation( "Principal is null. Not logged in to SecuritySystem."); if (p.getName() == null) throw new Interna... | private Principal clearAndCheckPrincipal() { // clear even if this fails. (make SecuritySystem unusable) cd.clear(); final Principal p = principalHolder.get(); if (p == null) throw new SecurityViolation( "Principal is null. Not logged in to SecuritySystem."); if (p.getName() == null) throw new Interna... | 3,231,756 |
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector... | private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector... | 3,231,759 |
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector... | private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector... | 3,231,760 |
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector... | private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector... | 3,231,761 |
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector... | private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector... | 3,231,762 |
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector... | private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector... | 3,231,763 |
public boolean accept(File pathname) { return pathname.isDirectory() || pathname.getAbsolutePath().endsWith(".java"); } | public boolean accept(File pathname) { return pathname.isDirectory() || pathname.getAbsolutePath().endsWith(".java"); } | 3,231,764 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.