rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
} else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { | } else if( source == MenuBar.fileExportFIX ) { exportFile( source ); } else if( source == MenuBar.fileExportXML ) { exportFile( source ); } else if( source == MenuBar.fileExportCSV ) { exportFile( source ); } else if( source == MenuBar.viewExportFIX ) { exportFile( source ); } else if( source == MenuBar.viewExportXML )... | public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { ... |
} else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { | } else if( source == MenuBar.viewAutosizeAndHideColumns ) { | public void run() { Object command = e.getActionCommand(); if( command == MenuBar.FILE_OPEN ) { openFile(); } else if( command == MenuBar.VIEW_AUTOSIZE_COLUMNS ) { currentTable.autoSizeColumns( progressBar, 100 ); } else if( command == MenuBar.VIEW_AUTOSIZE_AND_HIDE_COLUMNS ) { ... |
FileOpenDialog dialog = new FileOpenDialog( frame, dataDictionary ); | FileOpenDialog dialog = new FileOpenDialog( frame ); | private void openFile() { FileOpenDialog dialog = new FileOpenDialog( frame, dataDictionary ); dialog.setVisible( true ); final File file = dialog.getFile(); final Date startTime = dialog.getStartTime(); final Date endTime = dialog.getEndTime(); dialog.dispose(); boolean traceRunning = tracer.isRunning(); if( ... |
fileExportMenu.setEnabled( value ); viewExportMenu.setEnabled( value ); fileClose.setEnabled( value ); | public void setFileOpen( boolean value ) { viewMenu.setEnabled( value ); filterMenu.setEnabled( value ); } | |
public FileOpenDialog(JFrame owner, DataDictionary dataDictionary) throws HeadlessException { | public FileOpenDialog(JFrame owner) throws HeadlessException { | public FileOpenDialog(JFrame owner, DataDictionary dataDictionary) throws HeadlessException { super(owner, "File Open"); setResizable(false); getContentPane().setLayout( new GridBagLayout() ); GridBagConstraints constraints = new GridBagConstraints(); constraints.fill = GridBagConstraints.BOTH; constraints.... |
public LogFile( File file, DataDictionary aDataDictionary ) throws FileNotFoundException { logFile = file; | public LogFile( String name, DataDictionary aDataDictionary ) throws FileNotFoundException { logFile = new File(name); | public LogFile( File file, DataDictionary aDataDictionary ) throws FileNotFoundException { logFile = file; dataDictionary = aDataDictionary; initialize(); } |
public ArrayList parseMessages( ProgressBarPanel progressBar, Date startTime, Date endTime ) throws IOException, CancelException { int startingPosition = findPositionByTime( progressBar, startTime, 0, true ); int endingPosition = (int)logFile.length(); if( endTime != null ) endingPosition = findPositionByTime( progress... | public ArrayList parseMessages( ProgressBarPanel progressBar, int startingPosition, int endingPosition ) throws IOException, CancelException { initialize(); messages = new ArrayList(); invalidMessages = new ArrayList(); newMessages = new ArrayList(); newInvalidMessages = new ArrayList(); String line = null; lastPositio... | public ArrayList parseMessages( ProgressBarPanel progressBar, Date startTime, Date endTime ) throws IOException, CancelException { int startingPosition = findPositionByTime( progressBar, startTime, 0, true ); int endingPosition = (int)logFile.length(); if( endTime != null ) endingPosition = findPositionByTime( pr... |
ArrayList messages = parseMessages( progressBar, startingPosition, endingPosition ); return trimMessages( messages, startTime, endTime ); | initialize(); bufferedLogFileReader.skip( startingPosition ); int bytesRead = 0; int totalBytesRead = 0; int totalBytes = endingPosition - startingPosition; while( (line = bufferedLogFileReader.readLine()) != null && totalBytesRead < totalBytes ) { bytesRead += line.length(); totalBytesRead += line.length(); if( byte... | public ArrayList parseMessages( ProgressBarPanel progressBar, Date startTime, Date endTime ) throws IOException, CancelException { int startingPosition = findPositionByTime( progressBar, startTime, 0, true ); int endingPosition = (int)logFile.length(); if( endTime != null ) endingPosition = findPositionByTime( pr... |
public MessagesTableModel( DataDictionary aDataDictionary, LogFile aLogFile ) { | public MessagesTableModel( DataDictionary aDataDictionary ) { | public MessagesTableModel( DataDictionary aDataDictionary, LogFile aLogFile ) { dataDictionary = aDataDictionary; logFile = aLogFile; messages = allMessages; } |
logFile = aLogFile; | public MessagesTableModel( DataDictionary aDataDictionary, LogFile aLogFile ) { dataDictionary = aDataDictionary; logFile = aLogFile; messages = allMessages; } | |
addLabel( "QuickFIX Log Viewer v1.0.0" ); | addLabel( "QuickFIX Log Viewer v1.0.1" ); | AboutDialog(JFrame owner) { super(owner, "About"); setResizable( false ); setSize( 320, 100 ); setLayout( new GridBagLayout() ); constraints.fill = GridBagConstraints.CENTER; constraints.weightx = 1; constraints.gridx = 1; constraints.weighty = 1; constraints.gridy = 0; addLabel( "QuickFIX Log Viewer v1.... |
ATSymbol restArgsName = pars[numMandatoryPars].asSplice().getExpression().asSymbol(); | ATSymbol restArgsName = pars[numMandatoryPars].asSplice().base_getExpression().asSymbol(); | private static final void bindArguments(String funnam, ATObject scope, ATTable parameters, ATTable arguments, BindClosure binder) throws NATException { if (parameters == NATTable.EMPTY) { if (arguments == NATTable.EMPTY) return; // no need to bind any arguments else throw new XArityMismatch(funnam, 0, argum... |
ATObject[] tbl = els[i].asSplice().getExpression().meta_eval(ctx).asNativeTable().elements_; | ATObject[] tbl = els[i].asSplice().base_getExpression().meta_eval(ctx).asNativeTable().elements_; | public static final NATTable evaluateArguments(NATTable args, ATContext ctx) throws NATException { if (args == NATTable.EMPTY) return NATTable.EMPTY; ATObject[] els = args.elements_; LinkedList result = new LinkedList(); int siz = els.length; for (int i = 0; i < els.length; i++) { if (els[i].isSplice()) { ... |
Channel channel = ((XMLDataSet)dataset).getChannel(channelId); | public static String getSeismogramName(ChannelId channelId, DataSet dataset, TimeRange timeRange) { Channel channel = ((XMLDataSet)dataset).getChannel(channelId); SeismogramAttr[] attrs = ((XMLDataSet)dataset).getSeismogramAttrs(); MicroSecondDate startDate = new MicroSecondDate(timeRange.start... | |
Channel channel = ((XMLDataSet)dataset).getChannel(channelId); | public static String[] getSeismogramNames(ChannelId channelId, DataSet dataset, TimeRange timeRange) { Channel channel = ((XMLDataSet)dataset).getChannel(channelId); SeismogramAttr[] attrs = ((XMLDataSet)dataset).getSeismogramAttrs(); MicroSecondDate startDate = new MicroSecondDate(timeRange.st... | |
return this; } else { for (IdeaView subView: subViews) { IdeaView hit = subView.getViewAt(p); if (hit != null) { return hit; } | hit = this; } for (IdeaView subView: subViews) { IdeaView hit2 = subView.getViewAt(p); if (hit2 != null) { hit = hit2; | public IdeaView getViewAt(Point2D p) { if (hits(p)) { return this; } else { for (IdeaView subView: subViews) { IdeaView hit = subView.getViewAt(p); if (hit != null) { return hit; } } } return... |
return null; | return hit; | public IdeaView getViewAt(Point2D p) { if (hits(p)) { return this; } else { for (IdeaView subView: subViews) { IdeaView hit = subView.getViewAt(p); if (hit != null) { return hit; } } } return... |
if (Math.abs(distance) <= thickness) { | if (Math.abs(distance) <= (thickness / 2)) { | private boolean hits(Point2D p) { if ((fromPoint == null) || (toPoint == null)) { return false; } double vx0 = fromPoint.getX(); double vy0 = fromPoint.getY(); double vx1 = toPoint.getX(); double vy1 = toPoint.getY(); double vx2 = p.getX(); double v... |
System.out.println("Simple brutal removeTabAt owner="+owner); | public void removeTabAt(int index) { if (index < 0 || index >= getTabCount()) { return; } Component c = getComponentAt(index); Object owner = table.remove(c); if (owner != null && owner instanceof IModule) { ModuleFactory.disposeInstance((IModule)owner); // real removing done by listener (disposed()) } ... | |
public static void show(String msg, Throwable exc) { new ExceptionDialog(msg, exc); | public static void show(Exception exc) { new ExceptionDialog(exc); | public static void show(String msg, Throwable exc) { new ExceptionDialog(msg, exc); } |
assertEquals("foo_", Reflection.upSelector(AGSymbol.alloc("foo:"))); assertEquals("foo_bar_", Reflection.upSelector(AGSymbol.alloc("foo:bar:"))); assertEquals("_oppls_", Reflection.upSelector(AGSymbol.alloc("+"))); assertEquals("set_opnot_", Reflection.upSelector(AGSymbol.alloc("set!"))); assertEquals("foo__opltx_bar_"... | assertEquals("foo_", Reflection.upSelector(AGSymbol.jAlloc("foo:"))); assertEquals("foo_bar_", Reflection.upSelector(AGSymbol.jAlloc("foo:bar:"))); assertEquals("_oppls_", Reflection.upSelector(AGSymbol.jAlloc("+"))); assertEquals("set_opnot_", Reflection.upSelector(AGSymbol.jAlloc("set!"))); assertEquals("foo__opltx_b... | public void testUpSelector() throws InterpreterException { assertEquals("foo_", Reflection.upSelector(AGSymbol.alloc("foo:"))); assertEquals("foo_bar_", Reflection.upSelector(AGSymbol.alloc("foo:bar:"))); assertEquals("_oppls_", Reflection.upSelector(AGSymbol.alloc("+"))); assertEquals("set_opnot_", Reflection.upS... |
_reportDescription.setLocale(iwc.getCurrentLocale()); | private void generateDataSource(IWContext iwc) throws XMLException, Exception { Locale currentLocale = iwc.getCurrentLocale(); if(_queryPK != null) { QueryService service = (QueryService)(IBOLookup.getServiceInstance(iwc,QueryService.class)); _dataSource = service.generateQueryResult(_queryPK, iwc); } else if ... | |
public DynamicReportDesign(String name) { initializeDocument(name); createTitle(); createPageHeader(); createColumnHeader(); createDetail(); createColumnFooter(); createPageFooter(); createSummary(); } | public DynamicReportDesign() { } | public DynamicReportDesign(String name) { initializeDocument(name); createTitle(); createPageHeader(); createColumnHeader(); createDetail(); createColumnFooter(); createPageFooter(); createSummary(); } |
KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); | public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, Object parentDataPK, String captureProperties) throws CreditCardAuthorizationException { IWTimestamp stamp = IWTimestamp.RightNow(); strCCNumber = cardnumber; strCCExpire = yearE... | |
auth.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(null); auth.setCardExpires(monthExpires+yearExpires); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setErrorNumber(properties.get(PROPERTY_ERROR_CODE).toString()); auth... | storeAuthorizationEntry(tmpCardNum, parentDataPK, properties, KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_REFUND); | public String doRefund(String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, Object parentDataPK, String captureProperties) throws CreditCardAuthorizationException { IWTimestamp stamp = IWTimestamp.RightNow(); strCCNumber = cardnumber; strCCExpire = yearE... |
KortathjonustanAuthorisationEntriesHome authHome = (KortathjonustanAuthorisationEntriesHome) IDOLookup.getHome(KortathjonustanAuthorisationEntries.class); KortathjonustanAuthorisationEntries auth = authHome.create(); | 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.setAmount(Double.parseDouble(strAmount)); auth.setAuthorizationCode(authCode); auth.setBrandName(returnedCaptureProperties.get(PROPERTY_CARD_BRAND_NAME).toString()); auth.setCardExpires(monthExpires+yearExpires); auth.setCardNumber(tmpCardNum); auth.setCurrency(currency); auth.setDate(stamp.getDate()); auth.setEr... | this.storeAuthorizationEntry(tmpCardNum, null, returnedCaptureProperties, KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_SALE); | 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... |
finishTransaction(parseResponse(properties)); | Hashtable returnedCaptureProperties = finishTransaction(parseResponse(properties)); try { this.storeAuthorizationEntry(null, null, returnedCaptureProperties, KortathjonustanAuthorisationEntries.AUTHORIZATION_TYPE_DELAYED_TRANSACTION); } catch (Exception e) { System.err.println("Unable to save entry to database"); e.pr... | public void finishTransaction(String properties) throws KortathjonustanAuthorizationException { finishTransaction(parseResponse(properties)); } |
if(displayButtonPanel) { if(!advancedOption) { particleMotionDisplay.formRadioSetPanel(channelGroup); } else { particleMotionDisplay.formCheckBoxPanel(channelGroup); } } | public void execute() { if(dataSetSeismogram.length == 1) { dataSetSeismogram = retrieve_seismograms(); } for(int counter = 0; counter < dataSetSeismogram.length; counter++) { for(int subcounter = counter+1; subcounter < dataSetSeismogram.length; subcounter++) { boolean horizPlane = isHorizontalPlane(dat... | |
if(displayButtonPanel) { if(!advancedOption) { particleMotionDisplay.formRadioSetPanel(channelGroup); } else { particleMotionDisplay.formCheckBoxPanel(channelGroup); } } | public DataSetSeismogram[] retrieve_seismograms() { LocalSeismogramImpl seis = dataSetSeismogram[0].getSeismogram(); ChannelId[] channelIds = ((edu.sc.seis.fissuresUtil.xml.XMLDataSet)dataSetSeismogram[0].getDataSet()).getChannelIds(); ChannelGrouperImpl channelProxy = new ChannelGrouperImpl(); logger.debug("the or... | |
graphics2D.setColor(Color.blue); | graphics2D.setColor(new Color(100, 160, 140)); | public synchronized void drawAzimuth(ParticleMotion particleMotion, Graphics2D graphics2D) { logger.debug("IN DRAW AZIMUTH"); if(!particleMotion.isHorizontalPlane()) return; Shape sector = getSectorShape(); graphics2D.setColor(Color.blue); graphics2D.fill(sector); graphics2D.draw(sector); graphics2D.se... |
}; | } | public Icon getGUIIcon() { return null; }; |
return null; | return modeCursor; | public Cursor getModeCursor() { return null; } |
public void mouseMoved(MouseEvent e) {} | public void mouseMoved(MouseEvent e) { if (!isPressed && currentCursor != modeCursor){ setCursor(modeCursor, e); } } | public void mouseMoved(MouseEvent e) {} |
public void mousePressed(MouseEvent e) {} | public void mousePressed(MouseEvent e) { isPressed = true; if (currentCursor != pressedCursor){ setCursor(pressedCursor, e); } } | public void mousePressed(MouseEvent e) {} |
public void mouseReleased(MouseEvent e) {} | public void mouseReleased(MouseEvent e) { isPressed = false; if (currentCursor != modeCursor){ setCursor(modeCursor, e); } } | public void mouseReleased(MouseEvent e) {} |
return seismos.size(); | int rtnValue = seismos.size(); seismos.put(name, seismo); return rtnValue; | public int sort(DataSetSeismogram seismo, String name){ names.add(name); return seismos.size(); } |
} catch(edu.sc.seis.anhinga.database.NotFound nfe) { | } catch(NotFound nfe) { | public void update_region(edu.iris.Fissures.FlinnEngdahlRegion region, edu.iris.Fissures.AuditInfo[] audit_info) { try { jdbcEventAccess.updateFlinnEngdahlRegion(eventid, region); } catch(SQLException sqle) { logger.error("Problem with SQL ", sqle); ... |
public NATMirage(ATObject dynamicParent, ATObject lexicalParent, NATIntercessiveMirror mirror, boolean parentType) { super(dynamicParent, lexicalParent, parentType); | public NATMirage(NATIntercessiveMirror mirror) { | public NATMirage(ATObject dynamicParent, ATObject lexicalParent, NATIntercessiveMirror mirror, boolean parentType) { super(dynamicParent, lexicalParent, parentType); mirror_ = mirror; } |
for (int i = 0; i < selected.length; i++) { | for (int i = selected.length - 1; i >= 0; i--) { | public TablePanel() { super(new GridLayout(1, 0)); final JTable table = new JTable(model); table.getColumnModel().getColumn(0).setPreferredWidth(150); table.getColumnModel().getColumn(1).setPreferredWidth(150); table.getColumnModel().getColumn(2).setPreferredWidth(10); table.getColumnModel().getColumn(3).... |
for (int i = 0; i < selected.length; i++) { | for (int i = selected.length - 1; i >= 0; i--) { | public void actionPerformed(ActionEvent e) { int[] selected = table.getSelectedRows(); for (int i = 0; i < selected.length; i++) { Object source = table.getModel().getValueAt(selected[i], 0); String id = (String)table.getModel().getValueAt(selected[i], 1); ModuleConfiguration.remove(source); ... |
public static void addRightClickMenu(JTextComponent tc) { RightClickMenu menu = new RightClickMenu(tc); menu.addRightClickListener(); tc.add(menu); | public static void addRightClickMenu(JComponent c, JPopupMenu menu) { addRightClickListener(c, menu); c.add(menu); | public static void addRightClickMenu(JTextComponent tc) { RightClickMenu menu = new RightClickMenu(tc); menu.addRightClickListener(); tc.add(menu); } |
public static ModuleContainer load(String moduleClassName) throws ModuleLoaderException { | public static ModuleContainer load(File f) throws ModuleLoaderException { | public static ModuleContainer load(String moduleClassName) throws ModuleLoaderException { try { float version = 0.0f; Requirement[] requirements = new Requirement[0]; Class cls = Class.forName(moduleClassName); ModuleContainer module = new ModuleContainer(cls, version); module.setRequirements(requiremen... |
float version = 0.0f; Requirement[] requirements = new Requirement[0]; Class cls = Class.forName(moduleClassName); ModuleContainer module = new ModuleContainer(cls, version); module.setRequirements(requirements); module.setSource(moduleClassName); String id = module.getId(); if (!isLoaded(id)) { table.put(id, module);... | return load(f.toURL()); | public static ModuleContainer load(String moduleClassName) throws ModuleLoaderException { try { float version = 0.0f; Requirement[] requirements = new Requirement[0]; Class cls = Class.forName(moduleClassName); ModuleContainer module = new ModuleContainer(cls, version); module.setRequirements(requiremen... |
int offsetIntoRequestSamples = SimplePlotUtil.getPixel(y.length, | int offsetIntoRequestSamples = SimplePlotUtil.getPixel(y.length / 2, | public static int[] fill(MicroSecondTimeRange fullRange, int[] y, PlottableChunk chunk) { MicroSecondDate rowBeginTime = chunk.getBeginTime(); int offsetIntoRequestSamples = SimplePlotUtil.getPixel(y.length, ... |
rowBeginTime); | rowBeginTime) * 2; | public static int[] fill(MicroSecondTimeRange fullRange, int[] y, PlottableChunk chunk) { MicroSecondDate rowBeginTime = chunk.getBeginTime(); int offsetIntoRequestSamples = SimplePlotUtil.getPixel(y.length, ... |
logger.debug("rowBeginTime: " + rowBeginTime); | public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { ... | |
logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); | public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { ... | |
logger.debug("numPixels: " + numPixels); | public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { ... | |
logger.debug("firstPixelForRequest: " + firstPixelForRequest); | public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { ... | |
logger.debug("lastPixleForRequest: " + lastPixelForRequest); | public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { ... | |
logger.debug("pixelsUsed: " + pixelsUsed); | public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { ... | |
MicroSecondTimeRange stuffInDB = RangeTool.getFullTime(chunks); logger.debug("stuffInDB timeRange: " + stuffInDB); MicroSecondDate startTime = PlottableChunk.stripToDay(stuffInDB.getBeginTime()); logger.debug("start time of chunks: " + startTime); MicroSecondDate strippedEnd = PlottableChunk.stripToDay(stuffInDB.getEnd... | MicroSecondTimeRange stuffInDB = getDroppingRange(chunks); | public void put(PlottableChunk[] chunks) throws SQLException, IOException { MicroSecondTimeRange stuffInDB = RangeTool.getFullTime(chunks); logger.debug("stuffInDB timeRange: " + stuffInDB); MicroSecondDate startTime = PlottableChunk.stripToDay(stuffInDB.getBeginTime()); logger.debug("st... |
for(int i = 0; i < everything.length; i++) { logger.debug(everything[i]); } | public void put(PlottableChunk[] chunks) throws SQLException, IOException { MicroSecondTimeRange stuffInDB = RangeTool.getFullTime(chunks); logger.debug("stuffInDB timeRange: " + stuffInDB); MicroSecondDate startTime = PlottableChunk.stripToDay(stuffInDB.getBeginTime()); logger.debug("st... | |
for(int i = 0; i < everything.length; i++) { logger.debug(everything[i]); } | logger.debug("Dropping data within time range of " + stuffInDB); | public void put(PlottableChunk[] chunks) throws SQLException, IOException { MicroSecondTimeRange stuffInDB = RangeTool.getFullTime(chunks); logger.debug("stuffInDB timeRange: " + stuffInDB); MicroSecondDate startTime = PlottableChunk.stripToDay(stuffInDB.getBeginTime()); logger.debug("st... |
logger.debug("Adding chunk " + i + ": " + everything[i]); | logger.debug("putting chunk " + i + ": " + everything[i]); | public void put(PlottableChunk[] chunks) throws SQLException, IOException { MicroSecondTimeRange stuffInDB = RangeTool.getFullTime(chunks); logger.debug("stuffInDB timeRange: " + stuffInDB); MicroSecondDate startTime = PlottableChunk.stripToDay(stuffInDB.getBeginTime()); logger.debug("st... |
logger.debug("problematic chunk: " + chunk); | public void put(PlottableChunk[] chunks) throws SQLException, IOException { MicroSecondTimeRange stuffInDB = RangeTool.getFullTime(chunks); logger.debug("stuffInDB timeRange: " + stuffInDB); MicroSecondDate startTime = PlottableChunk.stripToDay(stuffInDB.getBeginTime()); logger.debug("st... | |
ev.setRecurrence(getRecurrence()); | ev.setRecurrence((BwRecurrence)getRecurrence().clone()); | public void copyTo(BwEvent ev) { super.copyTo(ev); ev.setName(getName()); ev.setSummary(getSummary()); ev.setDescription(getDescription()); ev.setDtstart(getDtstart()); ev.setDtend(getDtend()); ev.setEndType(getEndType()); ev.setDuration(getDuration()); ev.setLink(getLink()); ev.setDelet... |
val.setCalendar((BwCalendar)getCalendar()); | val.setCalendar((BwCalendar)getCalendar().clone()); | public void copyTo(BwShareableContainedDbentity val) { super.copyTo(val); val.setCalendar((BwCalendar)getCalendar()); } |
BwOrganizer nobj = new BwOrganizer(getId(), getCn(), | BwOrganizer nobj = new BwOrganizer((BwUser)getOwner().clone(), getPublick(), getCn(), | public Object clone() { BwOrganizer nobj = new BwOrganizer(getId(), getCn(), getDir(), getLanguage(), getSentBy(), getOrganizerUri()); nobj.setId(getId()); r... |
} else if (path.endsWith(".rdo")) { | } else if (path.endsWith(".do")) { | protected String calculateURL() throws JspException { String urlStr = super.calculateURL(); if (!PortletServlet.isPortletRequest(pageContext.getRequest())) { return urlStr; } try { URL url = new URL(urlStr); String path = url.getPath(); if (path.endsWith(".rdo")) { setRenderURL(... |
public static LocalSeismogramImpl toFissures(DataRecord seed) throws SeedFormatException { DataHeader header = seed.getHeader(); edu.iris.Fissures.Time time = new edu.iris.Fissures.Time(header.getISOStartTime(), -1); ChannelId channelId = new ChannelId(new NetworkId(header.getNetworkCode().trim(), time), header.g... | public static LocalSeismogramImpl toFissures(DataRecord[] seed) throws SeedFormatException, FissuresException { LocalSeismogramImpl seis = toFissures(seed[0]); for (int i = 1; i < seed.length; i++) { append(seis, seed[i]); | public static LocalSeismogramImpl toFissures(DataRecord seed) throws SeedFormatException { DataHeader header = seed.getHeader(); edu.iris.Fissures.Time time = new edu.iris.Fissures.Time(header.getISOStartTime(), -1); // the network id isn'... |
SamplingImpl sampling = new SamplingImpl(numPerSampling, timeInterval); TimeSeriesDataSel bits = convertData(seed); return new LocalSeismogramImpl(seisId, props, time, header.getNumSamples(), sampling, UnitImpl.COUNT, channelId, new edu.iris.Fissures.IfParameterMgr.ParameterRef[0], new QuantityImpl[0], new SamplingImp... | return seis; | public static LocalSeismogramImpl toFissures(DataRecord seed) throws SeedFormatException { DataHeader header = seed.getHeader(); edu.iris.Fissures.Time time = new edu.iris.Fissures.Time(header.getISOStartTime(), -1); // the network id isn'... |
return (error == null); | return (error != null); | public boolean isError() { return (error == null); } |
public static SacTimeSeries getSAC(LocalSeismogramImpl seis, Channel channel, Origin origin) | public static SacTimeSeries getSAC(LocalSeismogramImpl seis) | public static SacTimeSeries getSAC(LocalSeismogramImpl seis, Channel channel, Origin origin) throws CodecException { SacTimeSeries sac = getSAC(seis); addChannel(sac, channel); addOrigin(sac, origin); retu... |
SacTimeSeries sac = getSAC(seis); addChannel(sac, channel); addOrigin(sac, origin); | SacTimeSeries sac = new SacTimeSeries(); float[] floatSamps; try { if (seis.can_convert_to_long()) { int[] idata = seis.get_as_longs(); floatSamps = new float[idata.length]; for (int i=0; i<idata.length; i++) { floatSamps[i] = idata[i]; } } else { floatSamps = seis.get_as_floats(); } } catch (FissuresException e) { if ... | public static SacTimeSeries getSAC(LocalSeismogramImpl seis, Channel channel, Origin origin) throws CodecException { SacTimeSeries sac = getSAC(seis); addChannel(sac, channel); addOrigin(sac, origin); retu... |
public void write(File file) throws FileNotFoundException, IOException { DataOutputStream dos = new DataOutputStream( new BufferedOutputStream( new FileOutputStream(file))); writeHeader(dos); writeData(dos); dos.close(); | public void write(String filename) throws FileNotFoundException, IOException { File f = new File(filename); write(f); | public void write(File file) throws FileNotFoundException, IOException { DataOutputStream dos = new DataOutputStream( new BufferedOutputStream( new FileOutputStream(file))); writeHeader(dos); writeData(dos); dos.clos... |
this.debug = debug; | super(debug); | TimezonesImpl(boolean debug, BwUser user, RestoreIntf ri) throws CalFacadeException { this.debug = debug; this.user = user; this.ri = ri; // Force fetch of timezones //lookup("not-a-timezone"); } |
if ((tzinfo != null) && (tzinfo.vtz != null)) { return tzinfo.vtz; | if ((tzinfo != null) && (tzinfo.getVtz() != null)) { return tzinfo.getVtz(); | public VTimeZone findTimeZone(final String id, BwUser owner) throws CalFacadeException { if (debug) { trace("find timezone with id " + id + " for owner " + owner); } TimezoneInfo tzinfo = lookup(id); if ((tzinfo != null) && (tzinfo.vtz != null)) { return tzinfo.vtz; } /* Do we need to look... |
return tzinfo.tz; | return tzinfo.getTz(); | public TimeZone getTimeZone(final String id) throws CalFacadeException { TimezoneInfo tzinfo = lookup(id); /* Do we need to look up anything? if (tzinfo == null) { VTimeZone vTimeZone = cal.getTimeZone(id, null); if (vTimeZone == null) { return null; } tzinfo = new TimezoneInfo(); ... |
tzinfo = (TimezoneInfo)systemTimezones.get(id); | private TimezoneInfo lookup(String id) throws CalFacadeException { TimezoneInfo tzinfo; /* if (!systemTimezonesInitialised) { // First call (after reinit) synchronized (this) { if (!systemTimezonesInitialised) { Collection tzs = cal.getPublicTimeZones(); Iterator it = tzs.i... | |
if (tzinfo != null) { tzinfo.publick = true; } else { | private TimezoneInfo lookup(String id) throws CalFacadeException { TimezoneInfo tzinfo; /* if (!systemTimezonesInitialised) { // First call (after reinit) synchronized (this) { if (!systemTimezonesInitialised) { Collection tzs = cal.getPublicTimeZones(); Iterator it = tzs.i... | |
} | private TimezoneInfo lookup(String id) throws CalFacadeException { TimezoneInfo tzinfo; /* if (!systemTimezonesInitialised) { // First call (after reinit) synchronized (this) { if (!systemTimezonesInitialised) { Collection tzs = cal.getPublicTimeZones(); Iterator it = tzs.i... | |
systemTimezones = new HashMap(); | public void refreshTimezones() throws CalFacadeException { synchronized (this) { //systemTimezonesInitialised = false; systemTimezones = new HashMap(); } // force refresh now lookup("not-a-timezone"); } | |
BwTimeZone tz = new BwTimeZone(); | BwTimeZone btz = new BwTimeZone(); | 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. */ BwTimeZone tz = new BwTimeZone(); tz.setTzid(tzid); tz.setPublick(publick); tz.setOwner(us... |
tz.setTzid(tzid); tz.setPublick(publick); tz.setOwner(user); | btz.setTzid(tzid); btz.setPublick(publick); btz.setOwner(user); | 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. */ BwTimeZone tz = new BwTimeZone(); tz.setTzid(tzid); tz.setPublick(publick); tz.setOwner(us... |
tz.setVtimezone(sb.toString()); | btz.setVtimezone(sb.toString()); | 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. */ BwTimeZone tz = new BwTimeZone(); tz.setTzid(tzid); tz.setPublick(publick); tz.setOwner(us... |
ri.restoreTimezone(tz); | ri.restoreTimezone(btz); | 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. */ BwTimeZone tz = new BwTimeZone(); tz.setTzid(tzid); tz.setPublick(publick); tz.setOwner(us... |
tzinfo = new TimezoneInfo(); | tzinfo = new TimezoneInfo(tz, vtz); timezones.put(tzid, tzinfo); } else { tzinfo.init(tz, vtz); | 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. */ BwTimeZone tz = new BwTimeZone(); tz.setTzid(tzid); tz.setPublick(publick); tz.setOwner(us... |
tzinfo.vtz = vtz; tzinfo.tz = new TimeZone(vtz); timezones.put(tzid, tzinfo); | 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. */ BwTimeZone tz = new BwTimeZone(); tz.setTzid(tzid); tz.setPublick(publick); tz.setOwner(us... | |
public void write(IdeaDocument ideaDocument) throws Exception; | void write(IdeaDocument ideaDocument) throws Exception; | public void write(IdeaDocument ideaDocument) throws Exception; |
parameterCache.put(name, value); | public void addParameter(String name, Object value, AuditInfo[] audit) { parameterNameCache = null; // parameterCache.put(name, value); //if (value instanceof Element) { Element parameter = config.getOwnerDocument().createElement("paramete... | |
seismogramCache.put(name, new SoftReference(seis)); | seismogramCache.put(name, seis); | public void addSeismogram(LocalSeismogramImpl seis, AuditInfo[] audit) { seismogramNameCache = null; // Note this does not set the xlink, as the seis has not been saved anywhere yet. Document doc = config.getOwnerDocument(); Element localSeismogram = doc.createEleme... |
SoftReference softReference = (SoftReference)parameterCache.get(name); if(softReference.get() != null) return softReference.get(); else parameterCache.remove(name); | Object obj = parameterCache.get(name); if(obj instanceof SoftReference) { SoftReference softReference = (SoftReference)obj; if(softReference.get() != null) return softReference.get(); else parameterCache.remove(name); } else return obj; | public Object getParameter(String name) { System.out.println("IN THE METHOD GET PARAMETER ****************************************************"); if (parameterCache.containsKey(name)) { SoftReference softReference = (SoftReference)parameterCache.get(name); if(softReference.get() != null) return softReferen... |
if(!pushed){ synchronized(initiators){ | synchronized(initiators){ if(!finished){ | public boolean getData(SeisDataChangeListener listener, RequestFilter[] requestFilters){ for (int i = 0; i < requestFilters.length; i++){ boolean found = false; for (int j = 0; j < this.requestFilters.length && !found; j++){ if(requestFilters[i] ... |
return true; | public boolean getData(SeisDataChangeListener listener, RequestFilter[] requestFilters){ for (int i = 0; i < requestFilters.length; i++){ boolean found = false; for (int j = 0; j < this.requestFilters.length && !found; j++){ if(requestFilters[i] ... | |
LocalSeismogramImpl[] seis = (LocalSeismogramImpl[])seisRef.get(); if(seis != null){ a_client.pushData(seis, listener); a_client.finished(listener); | if(!failed){ LocalSeismogramImpl[] seis = (LocalSeismogramImpl[])seisRef.get(); if(seis != null){ a_client.pushData(seis, listener); } | public boolean getData(SeisDataChangeListener listener, RequestFilter[] requestFilters){ for (int i = 0; i < requestFilters.length; i++){ boolean found = false; for (int j = 0; j < this.requestFilters.length && !found; j++){ if(requestFilters[i] ... |
pushed = true; | public void run() { List seismograms = new ArrayList(); for(int counter = 0; counter < requestFilters.length; counter++) { try { RequestFilter[] temp = { requestFilters[counter] }; LocalSeismogram[] seis = dbDataCenter.retrieve_seismograms(temp); ... | |
pushed = true; | failed = true; System.out.println("FISSURES FAILED"); | public void run() { List seismograms = new ArrayList(); for(int counter = 0; counter < requestFilters.length; counter++) { try { RequestFilter[] temp = { requestFilters[counter] }; LocalSeismogram[] seis = dbDataCenter.retrieve_seismograms(temp); ... |
pushed = true; | failed = true; System.out.println("CORBA FAILED"); | public void run() { List seismograms = new ArrayList(); for(int counter = 0; counter < requestFilters.length; counter++) { try { RequestFilter[] temp = { requestFilters[counter] }; LocalSeismogram[] seis = dbDataCenter.retrieve_seismograms(temp); ... |
LocalSeismogramImpl[] seisArray = new LocalSeismogramImpl[seismograms.size()]; seisRef = new SoftReference(seismograms.toArray(seisArray)); | public void run() { List seismograms = new ArrayList(); for(int counter = 0; counter < requestFilters.length; counter++) { try { RequestFilter[] temp = { requestFilters[counter] }; LocalSeismogram[] seis = dbDataCenter.retrieve_seismograms(temp); ... | |
job.decrementRetrievers(); | public void run() { List seismograms = new ArrayList(); for(int counter = 0; counter < requestFilters.length; counter++) { try { RequestFilter[] temp = { requestFilters[counter] }; LocalSeismogram[] seis = dbDataCenter.retrieve_seismograms(temp); ... | |
Thread th = new Thread(connChecker); | Thread th = new Thread(checkerThreadGroup, connChecker, "ConnChecker"+getThreadNum()); | public void runChecks() throws IOException { int sizeofCollection = ConnCheckerCollection.size(); Iterator collectionExe = ConnCheckerCollection.iterator(); while(collectionExe.hasNext()){ ConnChecker connChecker = (ConnChecker)collectionExe.next(); Thread th = new Thread(connChecker); th.start(); ... |
return BwEvent.statusConfirmed.equals(val) || BwEvent.statusTentative.equals(val) || BwEvent.statusCancelled.equals(val); | return (val == null) || BwEvent.statusConfirmed.equals(val) || BwEvent.statusTentative.equals(val) || BwEvent.statusCancelled.equals(val); | public static boolean checkStatus(String val) { return BwEvent.statusConfirmed.equals(val) || BwEvent.statusTentative.equals(val) || BwEvent.statusCancelled.equals(val); } |
return BwEvent.transparencyOpaque.equals(val) || BwEvent.transparencyTransparent.equals(val); | return (val == null) || BwEvent.transparencyOpaque.equals(val) || BwEvent.transparencyTransparent.equals(val); | public static boolean checkTransparency(String val) { return BwEvent.transparencyOpaque.equals(val) || BwEvent.transparencyTransparent.equals(val); } |
setProperty(key, value); | if (value != null) { setProperty(key, value); } | public void setString(String key, String value) { setProperty(key, value); } |
new SamplingImpl(numPts - 1, seis.getTimeInterval()), | new SamplingImpl(seis.getSampling().getNumPoints(), (TimeInterval)seis.getSampling().getTimeInterval().multiplyBy(factor)), | public LocalSeismogramImpl apply(LocalSeismogramImpl seis) throws Exception { LocalSeismogramImpl outSeis; TimeSeriesDataSel outData = new TimeSeriesDataSel(); int numPts = seis.num_points / factor; if(seis.can_convert_to_short()) { short[] inS = seis.get_as_shorts(); ... |
AddStructuralFeatureValueAction container = (AddStructuralFeatureValueAction) (req.getContainer() instanceof View ? ((View) req.getContainer()).getElement() : req.getContainer()); if (container.getInsertAt() != null) { return super.getCreateCommand(req); } | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.InputPin_3003 == req.getElementType()) { AddStructuralFeatureValueAction container = (AddStructuralFeatureValueAction) (req.getContainer() instanceof View ? ((View) req.getContainer()).getElement() : req.getContainer()); if (contai... | |
return getMSLWrapper(new CreateInputPin_3003Command(req)); | return getMSLWrapper(new InputPinCreateCommand(req)); | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.InputPin_3003 == req.getElementType()) { AddStructuralFeatureValueAction container = (AddStructuralFeatureValueAction) (req.getContainer() instanceof View ? ((View) req.getContainer()).getElement() : req.getContainer()); if (contai... |
AddStructuralFeatureValueAction container = (AddStructuralFeatureValueAction) (req.getContainer() instanceof View ? ((View) req.getContainer()).getElement() : req.getContainer()); if (container.getValue() != null) { return super.getCreateCommand(req); } | protected Command getCreateCommand(CreateElementRequest req) { if (UMLElementTypes.InputPin_3003 == req.getElementType()) { AddStructuralFeatureValueAction container = (AddStructuralFeatureValueAction) (req.getContainer() instanceof View ? ((View) req.getContainer()).getElement() : req.getContainer()); if (contai... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.