rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
acl.decode(aclString.toCharArray()); acl.merge(entAccess.toCharArray()); | acl.decode(entAccess.toCharArray()); acl.merge(aclString.toCharArray()); | private char[] getAclChars(BwShareableDbentity ent) throws CalFacadeException { if (ent instanceof BwShareableContainedDbentity) { BwCalendar container; if (ent instanceof BwCalendar) { container = (BwCalendar)ent; } else { container = ((BwShareableContainedDbentity)ent).getCalendar();... |
System.out.println(listener); | public void addEQSelectionListener(EQSelectionListener listener) { System.out.println(listener); listenerList.add(EQSelectionListener.class, listener); EventAccessOperations[] selectedEvents = getSelectedEvents(); if (selectedEvents.length > 0) { listener.eqSelectionChanged(new EQSelectionEvent(this, getSele... | |
System.out.println(eqSelectionEvent.getEvents()); | public void eqSelectionChanged(EQSelectionEvent eqSelectionEvent) { OMEvent selected = null; List deselected = new ArrayList(); synchronized (circles) { System.out.println(eqSelectionEvent.getEvents()); Iterator it = circles.iterator(); while (it.hasNext()) { OMEvent current = (OMEvent) it.next(); Syste... | |
System.out.println(current.getEvent()); | public void eqSelectionChanged(EQSelectionEvent eqSelectionEvent) { OMEvent selected = null; List deselected = new ArrayList(); synchronized (circles) { System.out.println(eqSelectionEvent.getEvents()); Iterator it = circles.iterator(); while (it.hasNext()) { OMEvent current = (OMEvent) it.next(); Syste... | |
Map daoBackingMap = new HashMap(); daoBackingMap.put("edalquist", user1); daoBackingMap.put("awp9", user2); daoBackingMap.put("erider", user3); | protected void setUp() throws Exception { this.stubDao = new ComplexStubPersonAttributeDao(); super.setUp(); Map user1 = new HashMap(); user1.put("phone", "777-7777"); user1.put("displayName", "Display Name"); Map user2 = new HashMap(); user2.... | |
dao.getUserAttributes("edalquist"); | Map result = dao.getUserAttributes("edalquist"); this.validateUser1(result); | public void testCacheStats() { CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setDefaultAttributeName(defaultAttr); dao.setUserInfoCache(new HashMap()); assertEquals("Query count incorrect", 0, d... |
dao.getUserAttributes("edalquist"); | result = dao.getUserAttributes("edalquist"); this.validateUser1(result); | public void testCacheStats() { CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setDefaultAttributeName(defaultAttr); dao.setUserInfoCache(new HashMap()); assertEquals("Query count incorrect", 0, d... |
dao.getUserAttributes("nobody"); | result = dao.getUserAttributes("nobody"); assertNull(result); | public void testCacheStats() { CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setDefaultAttributeName(defaultAttr); dao.setUserInfoCache(new HashMap()); assertEquals("Query count incorrect", 0, d... |
dao.getUserAttributes("awp9"); | result = dao.getUserAttributes("awp9"); this.validateUser2(result); | public void testCacheStats() { CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setDefaultAttributeName(defaultAttr); dao.setUserInfoCache(new HashMap()); assertEquals("Query count incorrect", 0, d... |
dao.getUserAttributes("edalquist"); | Map result = dao.getUserAttributes("edalquist"); this.validateUser1(result); | public void testCaching() { Map cacheMap = new HashMap(); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setDefaultAttributeName(defaultAttr); dao.setUserInfoCache(cacheMap); asser... |
dao.getUserAttributes("edalquist"); | result = dao.getUserAttributes("edalquist"); this.validateUser1(result); | public void testCaching() { Map cacheMap = new HashMap(); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setDefaultAttributeName(defaultAttr); dao.setUserInfoCache(cacheMap); asser... |
dao.getUserAttributes("nobody"); | result = dao.getUserAttributes("nobody"); assertNull(result); | public void testCaching() { Map cacheMap = new HashMap(); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setDefaultAttributeName(defaultAttr); dao.setUserInfoCache(cacheMap); asser... |
dao.getUserAttributes(queryMap); | result = dao.getUserAttributes(queryMap); this.validateUser1(result); | public void testCaching() { Map cacheMap = new HashMap(); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributesDao(this.stubDao); dao.setDefaultAttributeName(defaultAttr); dao.setUserInfoCache(cacheMap); asser... |
dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); | Map result = dao.getUserAttributes("edalquist"); assertNull(result); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); | public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributes... |
dao.getUserAttributes("nobody"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); | result = dao.getUserAttributes("nobody"); assertNull(result); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); | public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributes... |
dao.getUserAttributes("edalquist"); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); | result = dao.getUserAttributes("edalquist"); assertNull(result); assertEquals("Incorrect number of items in cache", 0, cacheMap.size()); | public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributes... |
dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); | result = dao.getUserAttributes(queryMap1); this.validateUser1(result); assertEquals("Incorrect number of items in cache", 1, cacheMap.size()); | public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributes... |
dao.getUserAttributes(queryMap2); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); | result = dao.getUserAttributes(queryMap2); assertNull(result); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); | public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributes... |
dao.getUserAttributes(queryMap1); assertEquals("Incorrect number of items in cache", 3, cacheMap.size()); | result = dao.getUserAttributes(queryMap1); this.validateUser1(result); assertEquals("Incorrect number of items in cache", 2, cacheMap.size()); | public void testMulipleAttributeKeys() { Map cacheMap = new HashMap(); Set keyAttrs = new HashSet(); keyAttrs.add("name.first"); keyAttrs.add("name.last"); CachingPersonAttributeDaoImpl dao = new CachingPersonAttributeDaoImpl(); dao.setCachedPersonAttributes... |
progress.update(60, "Modules: Analyzing commandline arguments..."); | progress.update(60, "GUI: Creating main frame..."); try { initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(65, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception... | private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and F... |
progress.update(65, "GUI: Creating main frame..."); | private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and F... | |
initMainFrame(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); | String[] murks = new String[] { "Eva Valder", "Naja", "egal", }; for (int i = 0; i <= murks.length; i++) { progress.update(85 + i, murks[i]); Thread.sleep(100); } } catch (Exception exc) { | private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and F... |
progress.update(76, "Modules: Auto-starting..."); try { autoStartModules(); } catch (Throwable exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(88, "GUI: making visible..."); | progress.update(91, "GUI: making visible..."); | private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and F... |
progress.update(100, "Dickerchen"); | progress.update(100, "Have fun!"); | private EVI(String[] args) { ProgressFrame progress = new ProgressFrame(); progress.update(5, "Configuration: Loading..."); try { MainConfiguration.load(); } catch (Exception exc) { ExceptionDialog.show("Unexcepted exception caught while loading", exc); } progress.update(15, "GUI: Setting Look and F... |
if (modules[i].handlesProtocol(protocol)) { ModuleFactory.newInstance(modules[i], | if (modules[j].handlesProtocol(protocol)) { ModuleFactory.newInstance(modules[j], | private void startArgRelatedModules(String[] args) { if (args == null) { return; } ModuleContainer[] modules = ModuleLoader.getLoadedModules(); for (int i = 0; i < args.length; i++) { String arg = args[i]; try { URL url = new URL(arg); String protocol = url.getProtocol(); for (int j = 0; j < modules... |
exc.printStackTrace(); | private void startArgRelatedModules(String[] args) { if (args == null) { return; } ModuleContainer[] modules = ModuleLoader.getLoadedModules(); for (int i = 0; i < args.length; i++) { String arg = args[i]; try { URL url = new URL(arg); String protocol = url.getProtocol(); for (int j = 0; j < modules... | |
timeConfig.addTimeSyncListener(this); timeFinder = timeConfig.getTimeFinder(); | public void setTimeConfig(TimeRangeConfig newTimeConfig){ timeConfig.removeTimeSyncListener(this); Iterator e = seismos.keySet().iterator(); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); timeConfig.removeSeismogram(current); this.addSeismogram(current); newTimeConfig.... | |
System.out.println("The radiobutton selected is "+ ((AbstractButton)ae.getItem()).getText()); | System.out.println("$$&$&%$&%$&$&&$$&$&$&$&%^&$%&$^$&%&$^&$^%&$%^&$The radiobutton selected is "+ ((AbstractButton)ae.getItem()).getText()); | public void itemStateChanged(ItemEvent ae) { if(ae.getStateChange() == ItemEvent.SELECTED) { System.out.println("The radiobutton selected is "+ ((AbstractButton)ae.getItem()).getText()); view.addDisplayKey(((AbstractButton)ae.getItem()).getText()); } else if(ae.getStateChange() == ItemEvent.DESELECTED){ Sys... |
setHorizontalTitle(view.getSelectedParticleMotion()[0].hseis.getSeismogram().getName()); setVerticalTitle(view.getSelectedParticleMotion()[0].vseis.getSeismogram().getName()); view.updateTimeRange(); | public void itemStateChanged(ItemEvent ae) { if(ae.getStateChange() == ItemEvent.SELECTED) { System.out.println("The radiobutton selected is "+ ((AbstractButton)ae.getItem()).getText()); view.addDisplayKey(((AbstractButton)ae.getItem()).getText()); } else if(ae.getStateChange() == ItemEvent.DESELECTED){ Sys... | |
new BottomTitleBorder(hseis.getSeismogram().getName()); | new BottomTitleBorder("X - axis Title"); | public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpCo... |
new CenterTitleBorder(hseis.getSeismogram().getName()); | new LeftTitleBorder("Y - axis Title"); | public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpCo... |
hTitleBorder), | public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpCo... | |
BorderFactory.createCompoundBorder(hTitleBorder, vTitleBorder)), | public ParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, Color color, boolean advancedOption) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpCo... | |
public void addAzimuthLine(double degrees) { | public synchronized void addAzimuthLine(double degrees) { | public void addAzimuthLine(double degrees) { view.addAzimuthLine(degrees); } |
public void addParticleMotionDisplay(DataSetSeismogram hseis, | public synchronized void addParticleMotionDisplay(DataSetSeismogram hseis, | public void addParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; Thread t = new Th... |
false, | buttonPanel, | public void addParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; Thread t = new Th... |
logger.debug("############################### Starting the Thread"); | public void addParticleMotionDisplay(DataSetSeismogram hseis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar) { this.hAmpConfigRegistrar = hAmpConfigRegistrar; this.vAmpConfigRegistrar = vAmpConfigRegistrar; Thread t = new Th... | |
public void addSector(double degreeone, double degreetwo) { | public synchronized void addSector(double degreeone, double degreetwo) { | public void addSector(double degreeone, double degreetwo) { view.addSector(degreeone, degreetwo); } |
public void displayBackAzimuth(edu.sc.seis.fissuresUtil.xml.DataSet dataset, ChannelId chanId) { | public synchronized void displayBackAzimuth(edu.sc.seis.fissuresUtil.xml.DataSet dataset, ChannelId chanId) { | public void displayBackAzimuth(edu.sc.seis.fissuresUtil.xml.DataSet dataset, ChannelId chanId) { edu.sc.seis.fissuresUtil.cache.CacheEvent cacheEvent = ((edu.sc.seis.fissuresUtil.xml.XMLDataSet)dataset).getEvent(); Channel channel = ((edu.sc.seis.fissuresUtil.xml.XMLDataSet)dataset).getChannel(chanId); if(cach... |
checkBoxes[0].setSelected(true); | initialButton = checkBoxes[0]; | public void formCheckBoxPanel(ChannelId[] channelGroup) { //radioPanel.removeAll(); ArrayList arrayList = new ArrayList(); for(int counter = 0; counter < channelGroup.length; counter++) { for(int subcounter = counter+1; subcounter < channelGroup.length; subcounter++) { String labelStr = getOrientationName(chan... |
radioButtons[0].setSelected(true); | initialButton = radioButtons[0]; | public void formRadioSetPanel(ChannelId[] channelGroup) { //radioPanel.removeAll(); ArrayList arrayList = new ArrayList(); for(int counter = 0; counter < channelGroup.length; counter++) { for(int subcounter = counter + 1; subcounter < channelGroup.length; subcounter++) { String labelStr = getOrientationName(ch... |
public ParticleMotionView getView() { | public synchronized ParticleMotionView getView() { | public ParticleMotionView getView() { return this.view; } |
public void resize() { | public synchronized void resize() { | public void resize() { Dimension dim = view.getSize(); logger.debug("view coordinates before width = "+view.getSize().width+" height = "+view.getSize().height); Insets insets = view.getInsets(); int width = particleDisplayPanel.getSize().width; int height = particleDisplayPanel.getSize().height; width = width ... |
particleDisplayPanel.setSize(new Dimension(particleDisplayPanel.getSize().width, width + particleDisplayPanel.getInsets().top + particleDisplayPanel.getInsets().bottom)); | logger.debug("After particleDisplayPanel. setSize()"); | public void resize() { Dimension dim = view.getSize(); logger.debug("view coordinates before width = "+view.getSize().width+" height = "+view.getSize().height); Insets insets = view.getInsets(); int width = particleDisplayPanel.getSize().width; int height = particleDisplayPanel.getSize().height; width = width ... |
logger.debug("Before view .resize()##############################"); | public void resize() { Dimension dim = view.getSize(); logger.debug("view coordinates before width = "+view.getSize().width+" height = "+view.getSize().height); Insets insets = view.getInsets(); int width = particleDisplayPanel.getSize().width; int height = particleDisplayPanel.getSize().height; width = width ... | |
public void setAmplitudeRange(AmpConfigRegistrar amplitudeRange) { | public synchronized void setAmplitudeRange(AmpConfigRegistrar amplitudeRange) { | public void setAmplitudeRange(AmpConfigRegistrar amplitudeRange) { this.hAmpConfigRegistrar = amplitudeRange; this.vAmpConfigRegistrar = amplitudeRange; } |
public void setZoomIn(boolean value) { | public synchronized void setZoomIn(boolean value) { | public void setZoomIn(boolean value) { view.setZoomIn(value); } |
public void setZoomOut(boolean value) { | public synchronized void setZoomOut(boolean value) { | public void setZoomOut(boolean value) { view.setZoomOut(value); } |
public void updateTimeRange() { | public synchronized void updateTimeRange() { | public void updateTimeRange() { view.updateTimeRange(); } |
int id = keyId.getVal(); | int id = categoryId.getVal(); | public boolean validateEventCategory() throws Throwable { int id = keyId.getVal(); if (id <= 0) { if (getEnv().getAppBoolProperty("app.categoryOptional")) { return true; } err.emit("org.bedework.client.error.missingfield", "Category"); return false; } try { BwCategory k = g... |
if (!keyId.getChanged()) { | if (!categoryId.getChanged()) { | public boolean validateEventCategory() throws Throwable { int id = keyId.getVal(); if (id <= 0) { if (getEnv().getAppBoolProperty("app.categoryOptional")) { return true; } err.emit("org.bedework.client.error.missingfield", "Category"); return false; } try { BwCategory k = g... |
System.out.println("in timer"); | public void actionPerformed(ActionEvent evt) { adjustModel(); System.out.println("in timer"); } | |
System.out.println("starting ticker because idea changed"); | public void repaintRequired() { timeChanged = System.currentTimeMillis(); System.out.println("starting ticker because idea changed"); ticker.start(); } | |
System.out.println("stopped ticker"); | private Point2D tweakIdeas(final List<IdeaView> views, final Point2D c, final double initAngle, final boolean hasParent) { if (views.size() == 0) { return new Point2D.Double(0.0, 0.0); } double mass = 2000.0 / (points.size() * Math.sqrt((double)points.size())); ... | |
lobby.meta_defineField(AGSymbol.alloc("at"), atNS); | lobby.meta_defineField(AGSymbol.jAlloc("at"), atNS); | public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // ... |
ATObject at = lobby.meta_select(lobby, AGSymbol.alloc("at")); | ATObject at = lobby.meta_select(lobby, AGSymbol.jAlloc("at")); | public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // ... |
ATObject test = at.meta_select(at, AGSymbol.alloc("test")); | ATObject test = at.meta_select(at, AGSymbol.jAlloc("test")); | public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // ... |
ATObject result = test.meta_select(test, AGSymbol.alloc("file1")); | ATObject result = test.meta_select(test, AGSymbol.jAlloc("file1")); | public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // ... |
assertTrue(test.meta_respondsTo(AGSymbol.alloc("file1")).asNativeBoolean().javaValue); | assertTrue(test.meta_respondsTo(AGSymbol.jAlloc("file1")).asNativeBoolean().javaValue); | public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // ... |
assertTrue(test.meta_respondsTo(AGSymbol.alloc("file2")).asNativeBoolean().javaValue); | assertTrue(test.meta_respondsTo(AGSymbol.jAlloc("file2")).asNativeBoolean().javaValue); | public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // ... |
ATObject fileScope = test.meta_select(test, AGSymbol.alloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.alloc("~"))); | ATObject fileScope = test.meta_select(test, AGSymbol.jAlloc("file2")); assertEquals(test, fileScope.meta_select(fileScope, AGSymbol.jAlloc("~"))); | public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // ... |
assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.alloc("y"))); | assertEquals(NATNil._INSTANCE_, fileScope.meta_select(fileScope, AGSymbol.jAlloc("y"))); | public void testNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_defineField(AGSymbol.alloc("at"), atNS); // ... |
lobby.meta_assignField(lobby, AGSymbol.alloc("at"), atNS); | lobby.meta_assignField(lobby, AGSymbol.jAlloc("at"), atNS); | public void testReverseNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_assignField(lobby, AGSymbol.alloc("at")... |
ATObject test = atNS.meta_select(atNS, AGSymbol.alloc("test")); | ATObject test = atNS.meta_select(atNS, AGSymbol.jAlloc("test")); | public void testReverseNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_assignField(lobby, AGSymbol.alloc("at")... |
test.meta_select(test, AGSymbol.alloc("file2")); | test.meta_select(test, AGSymbol.jAlloc("file2")); | public void testReverseNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_assignField(lobby, AGSymbol.alloc("at")... |
if (e.selector_.equals(AGSymbol.alloc("x")) && e.inObject_.equals(NATNil._INSTANCE_)) { | if (e.selector_.equals(AGSymbol.jAlloc("x")) && e.inObject_.equals(NATNil._INSTANCE_)) { | public void testReverseNamespaces() { try { NATObject lobby = Evaluator.getLobbyNamespace(); // create the namespace 'at' bound to the path /tmp/at NATNamespace atNS = new NATNamespace("/at", at_); // bind the name 'at' to the atNS namespace in the lobby lobby.meta_assignField(lobby, AGSymbol.alloc("at")... |
public NATNamespace(String name, String path, ATObject parentNamespace) { super(parentNamespace, OBJLexicalRoot._INSTANCE_, NATObject._SHARES_A_); | public NATNamespace(String name, String path, ATObject parentNamespace) throws NATException { super(OBJDynamicRoot._INSTANCE_, OBJLexicalRoot._INSTANCE_, NATObject._SHARES_A_); | public NATNamespace(String name, String path, ATObject parentNamespace) { super(parentNamespace, OBJLexicalRoot._INSTANCE_, NATObject._SHARES_A_); name_ = name; path_ = path; } |
this.meta_defineField(_CURNS_SYM_, this); this.meta_defineField(_SUPNS_SYM_, parentNamespace); | public NATNamespace(String name, String path, ATObject parentNamespace) { super(parentNamespace, OBJLexicalRoot._INSTANCE_, NATObject._SHARES_A_); name_ = name; path_ = path; } | |
public abstract void setSuperUser(boolean val); | public abstract void setSuperUser(boolean val) throws CalFacadeException; | public abstract void setSuperUser(boolean val); |
EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); String evStart = ev.getDtstart().getDate(); String evEnd = ev.getDtend().getDate(); | er.setEntity(it.next()); | public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzca... |
int evstSt = evStart.compareTo(start); int evendSt = evEnd.compareTo(start); | int evstSt = er.start.compareTo(start); int evendSt = er.end.compareTo(start); | public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzca... |
((evstSt >= 0) && (evStart.compareTo(end) < 0)) || | ((evstSt >= 0) && (er.start.compareTo(end) < 0)) || | public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzca... |
((evendSt > 0) && (evEnd.compareTo(end) < 0))) { | ((evendSt > 0) && (er.end.compareTo(end) < 0))) { | public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzca... |
al.add(ei); | al.add(er.entity); | public static Collection getPeriodsEvents(GetPeriodsPars pars) throws CalFacadeException { ArrayList al = new ArrayList(); //long millis = System.currentTimeMillis(); if (pars.endDt != null) { pars.startDt = pars.endDt.copy(pars.tzcache); } pars.endDt = pars.startDt.addDuration(pars.dur, pars.tzca... |
System.out.println(current.getStart()); | public void paintComponent(Graphics g){ if(updating){ return; } Graphics2D g2 = (Graphics2D)g; synchronized(this){ Dimension size = getSize(); int width = size.width; int height = size.height; ... | |
form.getMsg().emit("org.bedework.message.added.events", 1); | form.getMsg().emit("org.bedework.client.message.added.events", 1); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svci = form.fetc... |
if (keyId == null) { | if (categoryId == null) { | public int getOriginalCategoryId() { if (keyId == null) { return 0; } return keyId.getOriginalVal(); } |
return keyId.getOriginalVal(); | return categoryId.getOriginalVal(); | public int getOriginalCategoryId() { if (keyId == null) { return 0; } return keyId.getOriginalVal(); } |
keyId.setA(val); | categoryId.setA(val); | public void setCategoryId(int val) { if (val >= 0) { keyId.setA(val); } } |
keyId.setB(val); | categoryId.setB(val); | public void setPrefCategoryId(int val) { if (val >= 0) { keyId.setB(val); } } |
this.report = new RT130Report(); this.propParser = pp; | public RT130FileHandler(Properties props, List rt130FileHandlerFlags) throws FileNotFoundException, IOException, ParseException { PropParser pp = new PropParser(props); flags = rt130FileHandlerFlags; checkFlagsForIncompatibleSettings(); LeapSecondApplier.addLeapSeconds(pp.getP... | |
Map dataStreamToSampleRate = new HashMap(); for(int i = 1; i < 7; i++) { if(props.containsKey(RT130ToLocalSeismogram.DATA_STREAM + i)) { dataStreamToSampleRate.put(new Integer(i - 1), new Integer(pp.getInt(RT130ToLocalSeismogram.DATA_STREAM + i))); } } | Map dataStreamToSampleRate = RT130ToLocalSeismogram.makeDataStreamToSampleRate(props, pp); | public RT130FileHandler(Properties props, List rt130FileHandlerFlags) throws FileNotFoundException, IOException, ParseException { PropParser pp = new PropParser(props); flags = rt130FileHandlerFlags; checkFlagsForIncompatibleSettings(); LeapSecondApplier.addLeapSeconds(pp.getP... |
toSeismogram = new RT130ToLocalSeismogram(ncFile, stationLocations, dataStreamToSampleRate, netAttr); | public RT130FileHandler(Properties props, List rt130FileHandlerFlags) throws FileNotFoundException, IOException, ParseException { PropParser pp = new PropParser(props); flags = rt130FileHandlerFlags; checkFlagsForIncompatibleSettings(); LeapSecondApplier.addLeapSeconds(pp.getP... | |
NCReader reader = new NCReader(netAttr, stationLocations); reader.load(new FileInputStream(pp.getPath(NCFile.NC_FILE_LOC))); chanCreator = new DASChannelCreator(netAttr, new RT130SamplingFinder(rtFileReader), reader.getSites()); toSeismogram = new RT130ToLocalSeismogram(chanCreator, dataStreamToSampleRate); double nomi... | public RT130FileHandler(Properties props, List rt130FileHandlerFlags) throws FileNotFoundException, IOException, ParseException { PropParser pp = new PropParser(props); flags = rt130FileHandlerFlags; checkFlagsForIncompatibleSettings(); LeapSecondApplier.addLeapSeconds(pp.getP... | |
LocalSeismogramImpl[] seismogramArray = toSeismogram.ConvertRT130ToLocalSeismogram(seismogramDataPacketArray); | LocalSeismogramImpl[] seismogramArray = toSeismogram.convert(seismogramDataPacketArray); | private TimeInterval processSingleRefTekWithKnownChannel(String fileLoc, String fileName, Channel knownChannel, String unitIdNumber) ... |
this.getRootElement().setAttribute(ATTRIBUTE_IS_SUMMARY_NEW_PAGE,Boolean.toString(value)); | this.getRootElement().setAttribute(ATTRIBUTE_IS_SUMMARY_NEW_PAGE,String.valueOf(value)); | public void setIsSummaryNewPage(boolean value){ this.getRootElement().setAttribute(ATTRIBUTE_IS_SUMMARY_NEW_PAGE,Boolean.toString(value)); } |
TimezonesImpl(boolean debug, BwUser user, RestoreIntf ri) | TimezonesImpl(boolean debug, BwUser user, RestoreGlobals globals) | TimezonesImpl(boolean debug, BwUser user, RestoreIntf ri) throws CalFacadeException { super(debug, user); this.ri = ri; // Force fetch of timezones //lookup("not-a-timezone"); } |
this.ri = ri; | this.globals = globals; | TimezonesImpl(boolean debug, BwUser user, RestoreIntf ri) throws CalFacadeException { super(debug, user); this.ri = ri; // Force fetch of timezones //lookup("not-a-timezone"); } |
initSystemTimeZones(); | TimezonesImpl(boolean debug, BwUser user, RestoreIntf ri) throws CalFacadeException { super(debug, user); this.ri = ri; // Force fetch of timezones //lookup("not-a-timezone"); } | |
BwTimeZone btz = new BwTimeZone(); btz.setTzid(tzid); btz.setPublick(getPublick()); btz.setOwner(getUser()); StringBuffer sb = new StringBuffer(); sb.append("BEGIN:VCALENDAR\n"); sb.append("PRODID:- sb.append("VERSION:2.0\n"); sb.append(vtz.toString()); sb.append("END:VCALENDAR\n"); btz.setVtimezone(sb.toString());... | saveTZ(tzid, vtz, false, getUser()); | public void saveTimeZone(String tzid, VTimeZone vtz) throws CalFacadeException { /* For a user update the map to avoid a refetch. For system timezones we will force a refresh when we're done. */ super.saveTimeZone(tzid, vtz); BwTimeZone btz = new BwTimeZone(); btz.setTzid(tzid); btz.s... |
public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String captureProperties) throws CreditCardAuthorizationException { | public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, Object parentDataPK, String captureProperties) throws CreditCardAuthorizationException { | public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String captureProperties) throws CreditCardAuthorizationException { IWTimestamp stamp = IWTimestamp.RightNow(); strCCNumber = cardnumber; strCCExpire = yearExpires+monthExpires; ... |
Hashtable properties = doRefund(getAmountWithExponents(amount), parseResponse(captureProperties)); logText.append("\nRefund successful").append("\nAuthorization Code = "+properties.get(PROPERTY_APPROVAL_CODE)); logText.append("\nAction Code = "+properties.get(PROPERTY_ACTION_CODE).toString()); logger.info(logText.toSt... | Hashtable capturePropertiesHash = parseResponse(captureProperties); Hashtable properties = doRefund(getAmountWithExponents(amount), capturePropertiesHash, parentDataPK); String authCode = properties.get(PROPERTY_APPROVAL_CODE).toString(); logText.append("\nRefund successful").append("\nAuthorization Code = " + authCod... | public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String captureProperties) throws CreditCardAuthorizationException { IWTimestamp stamp = IWTimestamp.RightNow(); strCCNumber = cardnumber; strCCExpire = yearExpires+monthExpires; ... |
System.out.println("referenceNumber => "+strReferenceNumber); | public String doSale(String nameOnCard, String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String referenceNumber) throws CreditCardAuthorizationException { try { IWTimestamp stamp = IWTimestamp.RightNow(); strName = nameOnCard; strCCNumber = cardn... | |
auth.setCardExpires(strCCExpire); | auth.setCardExpires(monthExpires+yearExpires); | public String doSale(String nameOnCard, String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String referenceNumber) throws CreditCardAuthorizationException { try { IWTimestamp stamp = IWTimestamp.RightNow(); strName = nameOnCard; strCCNumber = cardn... |
private Hashtable finishTransaction(Hashtable properties) throws KortathjonustanAuthorizationException{ System.out.println(" ------ CAPTURE ------"); | private Hashtable finishTransaction(Hashtable properties) throws KortathjonustanAuthorizationException { | private Hashtable finishTransaction(Hashtable properties) throws KortathjonustanAuthorizationException{ System.out.println(" ------ CAPTURE ------"); Hashtable captureProperties = new Hashtable(); try { StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD)... |
StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); addProperties(strPostData, properties); String strResponse = null; SSLClient client = getSSLClient(); try { strResponse = client.sendRequest(REQUEST_TYPE_CAPTURE, strPostData.toString()); } catch (Exception e) { K... | strResponse = client.sendRequest(REQUEST_TYPE_CAPTURE, strPostData.toString()); | private Hashtable finishTransaction(Hashtable properties) throws KortathjonustanAuthorizationException{ System.out.println(" ------ CAPTURE ------"); Hashtable captureProperties = new Hashtable(); try { StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD)... |
catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.setErrorNumber("-"); cce.setParentException(e); throw cce; } if (strResponse == null) { Kortathj... | private Hashtable finishTransaction(Hashtable properties) throws KortathjonustanAuthorizationException{ System.out.println(" ------ CAPTURE ------"); Hashtable captureProperties = new Hashtable(); try { StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD)... | |
System.out.println(" ------ REQUEST ------"); | private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appen... | |
StringBuffer strPostData= new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE); appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCEP... | StringBuffer strPostData = new StringBuffer(); appendProperty(strPostData, PROPERTY_SITE, SITE); appendProperty(strPostData, PROPERTY_USER, USER); appendProperty(strPostData, PROPERTY_PASSWORD, PASSWORD); appendProperty(strPostData, PROPERTY_ACCEPTOR_TERM_ID, ACCEPTOR_TERM_ID); appendProperty(strPostData, PROPERTY_ACCE... | private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appen... |
try { strResponse = client.sendRequest(REQUEST_TYPE_AUTHORIZATION, strPostData.toString()); } catch (Exception e) { KortathjonustanAuthorizationException cce = new KortathjonustanAuthorizationException(); cce.setDisplayError("Cannot connect to Central Payment Server"); cce.setErrorMessage("SendRequest failed"); cce.set... | String strResponse = null; | private Hashtable getFirstResponse() throws KortathjonustanAuthorizationException { Hashtable properties = null; System.out.println(" ------ REQUEST ------"); //long lStartTime = System.currentTimeMillis(); try { SSLClient client = getSSLClient(); StringBuffer strPostData= new StringBuffer(); appen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.