bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void setOwner(BwUser val) { throw new RuntimeException("Immutable"); }
public void setOwner(BwUser val) { if (!CalFacadeUtil.eqObjval(ref.getOwner(), val)) { ref.setOwner(val); setRefChanged(true); } }
1,117,434
public Collection ejbFindRefunds(IWTimestamp from, IWTimestamp to) throws FinderException { to.addDays(1); Table table = new Table(this); Column date = new Column(COLUMN_DATE); Column code = new Column(COLUMN_TRANSACTION_TYPE); SelectQuery query = new SelectQuery(table); query.addColumn(new WildCardColumn(tabl...
public Collection ejbFindRefunds(IWTimestamp from, IWTimestamp to) throws FinderException { to.addDays(1); Table table = new Table(this); Column date = new Column(COLUMN_DATE); Column code = new Column(COLUMN_TRANSACTION_TYPE); SelectQuery query = new SelectQuery(table); query.addColumn(new WildCardColumn(tabl...
1,117,435
public Collection ejbFindRefunds(IWTimestamp from, IWTimestamp to) throws FinderException { to.addDays(1); Table table = new Table(this); Column date = new Column(COLUMN_DATE); Column code = new Column(COLUMN_TRANSACTION_TYPE); SelectQuery query = new SelectQuery(table); query.addColumn(new WildCardColumn(tabl...
public Collection ejbFindRefunds(IWTimestamp from, IWTimestamp to) throws FinderException { to.addDays(1); Table table = new Table(this); Column date = new Column(COLUMN_DATE); Column code = new Column(COLUMN_TRANSACTION_TYPE); SelectQuery query = new SelectQuery(table); query.addColumn(new Column(table, getID...
1,117,436
public static DataSetSeismogram[] getComponents(DataSetSeismogram seismogram){ DataSet dataSet = seismogram.getDataSet(); RequestFilter rf = seismogram.getRequestFilter(); return getComponents(dataSet, rf); }
public static DataSetSeismogram[] getComponents(DataSetSeismogram seismogram){ DataSet dataSet = seismogram.getDataSet(); RequestFilter rf = seismogram.getRequestFilter(); Set componentSeismograms = new HashSet(); MicroSecondTimeRange tr = new MicroSecondTimeRange(rf); ChannelId chanId = rf.cha...
1,117,437
public boolean equals(MicroSecondTimeRange otherTime){ if(this == otherTime){ return true; } return false; }
public boolean equals(MicroSecondTimeRange otherTime){ if(this == otherTime){ return true; } return false; }
1,117,438
public void draw(UnitRangeImpl range, Graphics2D g2d) { Iterator it = titles.iterator(); int cumulativeTitleHeight = 0; while(it.hasNext()) { TitleProvider tp = (TitleProvider)it.next(); g2d.setFont(tp.getTitleFont()); FontMetrics fm ...
public void draw(UnitRangeImpl range, Graphics2D g2d) { Iterator it = titles.iterator(); int cumulativeTitleHeight = 0; while(it.hasNext()) { TitleProvider tp = (TitleProvider)it.next(); g2d.setFont(tp.getTitleFont()); FontMetrics fm ...
1,117,439
private void fixSize() { int tpHeight = 0; Iterator it = titles.iterator(); while(it.hasNext()) { //TODO - calculate based on actual string, font metrics TitleProvider tp = (TitleProvider)it.next(); tpHeight += tp.getTitleFont().getSize(); } if(dir...
private void fixSize() { int tpHeight = 0; Iterator it = titles.iterator(); while(it.hasNext()) { //TODO - calculate based on actual string, font metrics TitleProvider tp = (TitleProvider)it.next(); tpHeight += tp.getTitleFont().getSize(); } if(dir...
1,117,440
public void pasteIdea() { DataFlavor ideaFlavour = new DataFlavor(Idea.class, "Idea"); Clipboard cb = getToolkit().getSystemClipboard(); try { if (cb.isDataFlavorAvailable(ideaFlavour)){ Idea idea = (Idea)getToolkit().getSystemClipboard( ).getCon...
public void pasteIdea() { DataFlavor ideaFlavour = new DataFlavor(Idea.class, "Idea"); Clipboard cb = getToolkit().getSystemClipboard(); try { if (isIdea){ Idea idea = (Idea)getToolkit().getSystemClipboard( ).getContents(this).getTransferData(ide...
1,117,443
public IdeaReader read(File f) throws ReaderException { try { if (f.getName().toLowerCase().endsWith(".opml")) { return new OPMLReader(new FileInputStream(f)); } } catch (Exception e) { throw new ReaderException("Unable to read file " + f, e); } ...
public Idea read(File f) throws ReaderException { try { if (f.getName().toLowerCase().endsWith(".opml")) { return new OPMLReader(new FileInputStream(f)); } } catch (Exception e) { throw new ReaderException("Unable to read file " + f, e); } ...
1,117,444
public IdeaReader read(File f) throws ReaderException { try { if (f.getName().toLowerCase().endsWith(".opml")) { return new OPMLReader(new FileInputStream(f)); } } catch (Exception e) { throw new ReaderException("Unable to read file " + f, e); } ...
public IdeaReader read(File f) throws ReaderException { try { if (f.getName().toLowerCase().endsWith(".opml")) { reader = new OPMLReader(new FileInputStream(f)); } if (reader != null) { return reader.getIdea(); } } catch (Exception e) { throw new ReaderE...
1,117,445
public LocalSeismogramImpl cut(Location stationLoc, Origin origin, LocalSeismogramImpl seis) throws TauModelException, PhaseNonExistent, FissuresException { Arrival[] arrivals = timeCalc.calcTravelTimes(stationLoc, origin, new String...
public LocalSeismogramImpl cut(Location stationLoc, Origin origin, LocalSeismogramImpl seis) throws TauModelException, PhaseNonExistent, FissuresException { Arrival[] beginArrivals = timeCalc.calcTravelTimes(stationLoc, origin, new S...
1,117,446
public LocalSeismogramImpl cut(Location stationLoc, Origin origin, LocalSeismogramImpl seis) throws TauModelException, PhaseNonExistent, FissuresException { Arrival[] arrivals = timeCalc.calcTravelTimes(stationLoc, origin, new String...
public LocalSeismogramImpl cut(Location stationLoc, Origin origin, LocalSeismogramImpl seis) throws TauModelException, PhaseNonExistent, FissuresException { Arrival[] arrivals = timeCalc.calcTravelTimes(stationLoc, origin, new String...
1,117,447
public LocalSeismogramImpl cut(Location stationLoc, Origin origin, LocalSeismogramImpl seis) throws TauModelException, PhaseNonExistent, FissuresException { Arrival[] arrivals = timeCalc.calcTravelTimes(stationLoc, origin, new String...
public LocalSeismogramImpl cut(Location stationLoc, Origin origin, LocalSeismogramImpl seis) throws TauModelException, PhaseNonExistent, FissuresException { Arrival[] arrivals = timeCalc.calcTravelTimes(stationLoc, origin, new String...
1,117,448
public LocalSeismogramImpl cut(Location stationLoc, Origin origin, LocalSeismogramImpl seis) throws TauModelException, PhaseNonExistent, FissuresException { Arrival[] arrivals = timeCalc.calcTravelTimes(stationLoc, origin, new String...
public LocalSeismogramImpl cut(Location stationLoc, Origin origin, LocalSeismogramImpl seis) throws TauModelException, PhaseNonExistent, FissuresException { Arrival[] arrivals = timeCalc.calcTravelTimes(stationLoc, origin, new String...
1,117,449
public LocalSeismogramImpl cut(Location stationLoc, Origin origin, LocalSeismogramImpl seis) throws TauModelException, PhaseNonExistent, FissuresException { Arrival[] arrivals = timeCalc.calcTravelTimes(stationLoc, origin, new String...
public LocalSeismogramImpl cut(Location stationLoc, Origin origin, LocalSeismogramImpl seis) throws TauModelException, PhaseNonExistent, FissuresException { Arrival[] arrivals = timeCalc.calcTravelTimes(stationLoc, origin, new String...
1,117,450
public ATObject meta_newInstance(ATTable initargs) throws InterpreterException { ATObject newhost = initargs.base_at(NATNumber.ONE); return new NATField(name_, (NATCallframe) newhost); }
public ATObject meta_newInstance(ATTable initargs) throws InterpreterException { ATObject newhost = initargs.base_at(NATNumber.ONE); return new NATField(name_, (NATCallframe) newhost); }
1,117,452
public void testMakeReportImage() { report.addMSeedSeismogram(); report.addMSeedSeismogram(); report.addMSeedSeismogram(); report.addSacSeismogram(); report.addSacSeismogram(); report.addSacSeismogram(); report.addFileFormatException("File location01", ...
public void testMakeReportImage() { report.addMSeedSeismogram(); report.addMSeedSeismogram(); report.addMSeedSeismogram(); report.addSacSeismogram(); report.addSacSeismogram(); report.addSacSeismogram(); report.addFileFormatException("File location01", ...
1,117,453
public void testPrintReport() { report.addMSeedSeismogram(); report.addMSeedSeismogram(); report.addMSeedSeismogram(); report.addSacSeismogram(); report.addSacSeismogram(); report.addSacSeismogram(); report.addFileFormatException("File location01", ...
public void testPrintReport() { report.addMSeedSeismogram(); report.addMSeedSeismogram(); report.addMSeedSeismogram(); report.addSacSeismogram(); report.addSacSeismogram(); report.addSacSeismogram(); report.addFileFormatException("File location01", ...
1,117,454
public static Channel createChannel() { return createChannel(MockChannelId.createVerticalChanId(), "Vertical Channel", MockSite.createSite()); }
public static Channel createChannel() { return createChannel(MockChannelId.createVerticalChanId(), "Vertical Channel", MockSite.createSite(), VERTICAL); }
1,117,455
public static Channel createOtherNetChan() { return createChannel(MockChannelId.createOtherNetChanId(), "Other Net Vertical Channel", MockSite.createOtherSite()); }
public static Channel createOtherNetChan() { return createChannel(MockChannelId.createOtherNetChanId(), "Other Net Vertical Channel", MockSite.createOtherSite(), VERTICAL); }
1,117,456
public static Channel createEastChannel() { return createChannel(MockChannelId.createEastChanId(), "East Channel", MockSite.createSite()); }
public static Channel createEastChannel() { return createChannel(MockChannelId.createEastChanId(), "East Channel", MockSite.createSite(), EAST); }
1,117,457
public static Channel[] createMotionVector(Station station) { Channel[] channels = new Channel[3]; Site s = MockSite.createSite(station); String[] codes = {"BHZ", "BHN", "BHE"}; for(int i = 0; i < codes.length; i++) { channels[i] = createChannel(MockChannelId.createChanId(code...
public static Channel[] createMotionVector(Station station) { Channel[] channels = new Channel[3]; Site s = MockSite.createSite(station); String[] codes = {"BHZ", "BHN", "BHE"}; for(int i = 0; i < codes.length; i++) { channels[i] = createChannel(MockChannelId.createChanId(code...
1,117,458
public static Channel createNorthChannel() { return createChannel(MockChannelId.createNorthChanId(), "North Channel", MockSite.createSite()); }
public static Channel createNorthChannel() { return createChannel(MockChannelId.createNorthChanId(), "North Channel", MockSite.createSite(), NORTH); }
1,117,459
public void run() { for (int i = 0; i < 3; i++){ logger.info("run " + (i + 1) + " of " + repeats + " for " + r); r.run(); } }
public void run() { for (int i = 0; i < 3; i++){ logger.info("run " + (i + 1) + " of " + repeats + " for " + r); r.run(); } }
1,117,460
public boolean isRowCached(int row) { if (backgrounded.containsKey(events[row])) { return false; } if ( ! cachedEvents.containsKey(events[row])) { // load in background CacheEvent cache; if (events[row] instanceof CacheEvent){ cache = (CacheEvent)events[row]; } else{ cache = new CacheEvent(even...
public boolean isRowCached(int row) { if (backgrounded.containsKey(events[row])) { return false; } if ( ! cachedEvents.containsKey(events[row])) { // load in background CacheEvent cache; if (events[row] instanceof CacheEvent){ cache = (CacheEvent)events[row]; } else{ cache = new CacheEvent(even...
1,117,462
public String getGeographicRegionName(int geoNum) { if (geoNum > 0 && geoNum <= 729) { return feProps.getProperty("GeogRegion"+geoNum); } // end of if (geoNum > 0 && geoNum <= 729) return "GeoRegion"+geoNum; }
public String getGeographicRegionName(int geoNum) { if (geoNum > 0 && geoNum <= 729) { return feProps.getProperty("GeogRegion"+geoNum); } // end of if (geoNum > 0 && geoNum <= 729) return "GeoRegion"+geoNum; }
1,117,463
public Collection ejbFindRefunds(IWTimestamp from, IWTimestamp to) throws FinderException { to.addDays(1); Table table = new Table(this); Column date = new Column(COLUMN_DATE); Column code = new Column(COLUMN_TRANSACTION_TYPE); SelectQuery query = new SelectQuery(table); query.addColumn(new WildCardColumn(tabl...
public Collection ejbFindRefunds(IWTimestamp from, IWTimestamp to) throws FinderException { to.addDays(1); Table table = new Table(this); Column date = new Column(COLUMN_DATE); Column code = new Column(COLUMN_TRANSACTION_TYPE); SelectQuery query = new SelectQuery(table); query.addColumn(new WildCardColumn(tabl...
1,117,464
public void print(){ PrinterJob pj = PrinterJob.getPrinterJob(); pj.setPrintable(new SeismogramPrinter(getDisplayArray(),1)); if(pj.printDialog()){ try { pj.print(); } catch(Exception e){ e.printStackTrace(); } } }
public void print(){ PrinterJob pj = PrinterJob.getPrinterJob(); SeismogramPrinter printer = new SeismogramPrinter(getDisplayArray()); pj.setPrintable(printer); if(pj.printDialog()){ try { pj.print(); } catch(Exception e){ e.printStackTrace(); } } }
1,117,465
public SeismogramPrinter (BasicSeismogramDisplay[] displays, int seisPerPage){ this.displays = displays; System.out.println("number of displays: " + displays.length + " number of displays per page: " + seisPerPage); this.seisPerPage = seisPerPage; }
public SeismogramPrinter(BasicSeismogramDisplay[] displays){ this.displays = displays; System.out.println("number of displays: " + displays.length + " number of displays per page: " + seisPerPage); this.seisPerPage = seisPerPage; }
1,117,467
public SeismogramPrinter (BasicSeismogramDisplay[] displays, int seisPerPage){ this.displays = displays; System.out.println("number of displays: " + displays.length + " number of displays per page: " + seisPerPage); this.seisPerPage = seisPerPage; }
public SeismogramPrinter (BasicSeismogramDisplay[] displays, int seisPerPage){ this.displays = displays; System.out.println("number of displays: " + displays.length + " number of displays per page: " + seisPerPage); this.seisPerPage = seisPerPage; }
1,117,468
public ATBegin asBegin() throws XTypeMismatch { try { return (ATBegin) meta_respondsTo(AGSymbol.alloc("asBegin")).base_ifTrue_( new JavaClosure(null) { public ATObject meta_apply(NATTable arguments) throws NATException { return NATMirageFactory.createMirageForInterface( meta_invoke(this, AGSymbol....
public ATBegin asBegin() throws XTypeMismatch { try { return (ATBegin) meta_respondsTo(AGSymbol.alloc("asBegin")).base_ifTrue_( new JavaClosure(null) { public ATObject meta_apply(NATTable arguments) throws NATException { return NATMirageFactory.createMirageForInterface( this.meta_invoke(this, AGSy...
1,117,469
public ATObject meta_apply(NATTable arguments) throws NATException { return NATMirageFactory.createMirageForInterface( meta_invoke(this, AGSymbol.alloc("asBegin"), NATTable.EMPTY), ATBegin.class); }
public ATObject meta_apply(NATTable arguments) throws NATException { return NATMirageFactory.createMirageForInterface( this.meta_invoke(this, AGSymbol.alloc("asBegin"), NATTable.EMPTY), ATBegin.class); }
1,117,470
public ATBoolean asBoolean() throws XTypeMismatch { try { return (ATBoolean) meta_respondsTo(AGSymbol.alloc("asBoolean")).base_ifTrue_( new JavaClosure(null) { public ATObject meta_apply(NATTable arguments) throws NATException { return NATMirageFactory.createMirageForInterface( meta_invoke(this, A...
public ATBoolean asBoolean() throws XTypeMismatch { try { return (ATBoolean) meta_respondsTo(AGSymbol.alloc("asBoolean")).base_ifTrue_( new JavaClosure(null) { public ATObject meta_apply(NATTable arguments) throws NATException { return NATMirageFactory.createMirageForInterface( this.meta_invoke(th...
1,117,471
public ATObject meta_apply(NATTable arguments) throws NATException { return NATMirageFactory.createMirageForInterface( meta_invoke(this, AGSymbol.alloc("asBoolean"), NATTable.EMPTY), ATBegin.class); }
public ATObject meta_apply(NATTable arguments) throws NATException { return NATMirageFactory.createMirageForInterface( this.meta_invoke(this, AGSymbol.alloc("asBoolean"), NATTable.EMPTY), ATBegin.class); }
1,117,472
private ATObject createChild(ATClosure code, boolean parentPointerType) throws NATException { NATObject extension = new NATObject( /* dynamic parent */ this, /* lexical parent */ code.getContext().getLexicalScope(), /* parent porinter type */ parentPointerType); ATAbstractGrammar body = code.getM...
private ATObject createChild(ATClosure code, boolean parentPointerType) throws NATException { NATObject extension = new NATObject( /* dynamic parent */ this, /* lexical parent */ code.getContext().getLexicalScope(), /* parent porinter type */ parentPointerType); ATAbstractGrammar body = code.getM...
1,117,473
public void add3CSelection(Selection newSelection){ if(!get3CSelections().contains(newSelection)) get3CSelections().add(newSelection); repaint(); }
public void add3CSelection(Selection newSelection){ if(!get3CSelections().contains(newSelection)){ get3CSelections().add(newSelection); repaint(); }
1,117,475
public void add3CSelection(Selection newSelection){ if(!get3CSelections().contains(newSelection)) get3CSelections().add(newSelection); repaint(); }
public void add3CSelection(Selection newSelection){ if(!get3CSelections().contains(newSelection)) get3CSelections().add(newSelection); selection3CCount++; repaint(); } }
1,117,476
public void addSelection(Selection newSelection){ if(!getSelections().contains(newSelection)) getSelections().add(newSelection); repaint(); }
public void addSelection(Selection newSelection){ if(!getSelections().contains(newSelection)){ getSelections().add(newSelection); repaint(); }
1,117,477
public void addSelection(Selection newSelection){ if(!getSelections().contains(newSelection)) getSelections().add(newSelection); repaint(); }
public void addSelection(Selection newSelection){ if(!getSelections().contains(newSelection)) getSelections().add(newSelection); selectionCount++; repaint(); } }
1,117,478
public LinkedList get3CSelections(){ return (LinkedList)plotters.subList(plotters.size() - selection3CCount, plotters.size()); }
public LinkedList get3CSelections(){ return (LinkedList)plotters.subList(plotters.size() - selection3CCount, plotters.size()); }
1,117,479
public LinkedList getAllSelections(){ return (LinkedList)plotters.subList(plotters.size() - selectionCount - selection3CCount, plotters.size()); }
public LinkedList getAllSelections(){ return (LinkedList)plotters.subList(plotters.size() - selectionCount - selection3CCount, plotters.size()); }
1,117,480
public LinkedList getSelections(){ return (LinkedList)plotters.subList(plotters.size() - selectionCount - selection3CCount, plotters.size()); }
public LinkedList getSelections(){ return (LinkedList)plotters.subList(plotters.size() - selectionCount - selection3CCount, plotters.size()); }
1,117,481
public void remove3CSelection(Selection oldSelection){ get3CSelections().remove(oldSelection); repaint(); }
public void remove3CSelection(Selection oldSelection){ get3CSelections().remove(oldSelection); repaint(); }
1,117,482
public void removeSelection(Selection oldSelection){ getSelections().remove(oldSelection); repaint(); }
public void removeSelection(Selection oldSelection){ getSelections().remove(oldSelection); repaint(); }
1,117,483
public void createParticleDisplay(BasicSeismogramDisplay creator, boolean advancedOption){ if(particleAllowed){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(particleWindowName); particleWindow.addWindowListener(new WindowAdapter() { public void windowC...
public void createParticleDisplay(BasicSeismogramDisplay creator, boolean advancedOption){ if(particleAllowed){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(particleWindowName); particleWindow.addWindowListener(new WindowAdapter() { public void windowC...
1,117,484
public UnitRangeImpl getAmpRange(){ return ampConfig.getAmpRange(); }
public UnitRangeImpl getAmpRange(DataSetSeismogram seis){ return ampConfig.getAmpRange(seis); }
1,117,485
public ComponentPrintable (Component c){ mComponent = c; System.out.println("set waiting"); mComponent.setSize(new Dimension(648, 468)); }
public ComponentPrintable (Component c){ mComponent = c; System.out.println("set waiting"); mComponent.setSize(new Dimension(648, 468)); }
1,117,486
public void removeAll(){ logger.debug("removing all displays"); if(parent != null){ parent.removeSelectionDisplay(this); } super.removeAll(); basicDisplays.clear(); sorter = new SeismogramSorter(); globalRegistrar = null; this.time.setText(" Time: "); this.amp.setText(" Amplitude: "); if(selectionDisplay !=...
public void removeAll(){ logger.debug("removing all displays"); if(parent != null){ parent.removeSelectionDisplay(this); } super.removeAll(); basicDisplays.clear(); sorter = new SeismogramSorter(); globalRegistrar = null; this.time.setText(" Time: "); this.amp.setText(" Amplitude: "); if(selectionDisplay !=...
1,117,487
public void removeAll(){ logger.debug("removing all displays"); if(parent != null){ parent.removeSelectionDisplay(this); } super.removeAll(); basicDisplays.clear(); sorter = new SeismogramSorter(); globalRegistrar = null; this.time.setText(" Time: "); this.amp.setText(" Amplitude: "); if(selectionDisplay !=...
public void removeAll(){ logger.debug("removing all displays"); if(parent != null){ parent.removeSelectionDisplay(this); } super.removeAll(); basicDisplays.clear(); sorter = new SeismogramSorter(); globalRegistrar = null; this.time.setText(" Time: "); this.amp.setText(" Amplitude: "); if(selectionDisplay !=...
1,117,488
public boolean equals(Object obj) { if(super.equals(obj)) { return true; } if(obj instanceof SacPoleZero) { SacPoleZero spz = (SacPoleZero)obj; if(spz.constant != constant || spz.poles.length != poles.length || spz.zeros.length != zeros.length...
public boolean equals(Object obj) { if(super.equals(obj)) { return true; } if(obj instanceof SacPoleZero) { SacPoleZero spz = (SacPoleZero)obj; if((Math.abs(spz.constant - constant) / constant) > .001) { System.out.println("const not equal"); return false; } els...
1,117,489
public static SacPoleZero read(BufferedReader in) throws IOException { ArrayList lines = new ArrayList(); String s; while((s = in.readLine()) != null) { lines.add(s); } Cmplx[] poles = new Cmplx[0]; Cmplx[] zeros = new Cmplx[0]; float constant = 1; ...
public static SacPoleZero read(BufferedReader in) throws IOException { ArrayList lines = new ArrayList(); String s; while((s = in.readLine()) != null) { lines.add(s.trim()); } Cmplx[] poles = new Cmplx[0]; Cmplx[] zeros = new Cmplx[0]; float constant = 1; ...
1,117,491
public static SacPoleZero read(BufferedReader in) throws IOException { ArrayList lines = new ArrayList(); String s; while((s = in.readLine()) != null) { lines.add(s); } Cmplx[] poles = new Cmplx[0]; Cmplx[] zeros = new Cmplx[0]; float constant = 1; ...
public static SacPoleZero read(BufferedReader in) throws IOException { ArrayList lines = new ArrayList(); String s; while((s = in.readLine()) != null) { lines.add(s); } Cmplx[] poles = new Cmplx[0]; Cmplx[] zeros = new Cmplx[0]; float constant = 1; ...
1,117,492
public static SacPoleZero read(BufferedReader in) throws IOException { ArrayList lines = new ArrayList(); String s; while((s = in.readLine()) != null) { lines.add(s); } Cmplx[] poles = new Cmplx[0]; Cmplx[] zeros = new Cmplx[0]; float constant = 1; ...
public static SacPoleZero read(BufferedReader in) throws IOException { ArrayList lines = new ArrayList(); String s; while((s = in.readLine()) != null) { lines.add(s); } Cmplx[] poles = new Cmplx[0]; Cmplx[] zeros = new Cmplx[0]; float constant = 1; ...
1,117,493
public Cmplx(double re, double im) { this.r = re; this.i = im; }
Cmplx() { this.r = re; this.i = im; }
1,117,495
public Cmplx(double re, double im) { this.r = re; this.i = im; }
public Cmplx(double re, double im) { this.r = re; this.i = im; }
1,117,496
public static final Cmplx sub(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); c.r = a.r - b.r; c.i = a.i - b.i; return c; }
public static final Cmplx sub(double a, Cmplx b) { Cmplx c = new Cmplx(); c.r = a.r - b.r; c.i = a.i - b.i; return c; }
1,117,497
public static final Cmplx sub(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); c.r = a.r - b.r; c.i = a.i - b.i; return c; }
public static final Cmplx sub(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); c.r = a.r - b.r; c.i = a.i - b.i; return c; }
1,117,498
public static final Cmplx mul(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); c.r = a.r * b.r - a.i * b.i; c.i = a.i * b.r + a.r * b.i; return c; }
public static final Cmplx mul(double a, Cmplx b) { Cmplx c = new Cmplx(); c.r = a.r * b.r - a.i * b.i; c.i = a.i * b.r + a.r * b.i; return c; }
1,117,499
public static final Cmplx mul(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); c.r = a.r * b.r - a.i * b.i; c.i = a.i * b.r + a.r * b.i; return c; }
public static final Cmplx mul(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); c.r = a.r * b.r - a.i * b.i; c.i = a.i * b.r + a.r * b.i; return c; }
1,117,500
public static final Cmplx div(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); double r, den; if (Math.abs(b.r) >= Math.abs(b.i)) { r = b.i / b.r; den = b.r + r * b.i; c.r = (a.r + r * a.i) / den; c.i = (a.i - r * a.r) / den; } else { r = b.r / b.i; den = b.i + r * b.r; c.r = (a.r * r + a.i) / den; c.i =...
public static final Cmplx div(double a, Cmplx b) { Cmplx c = new Cmplx(); double r, den; if (Math.abs(b.r) >= Math.abs(b.i)) { r = b.i / b.r; den = b.r + r * b.i; c.r = (a.r + r * a.i) / den; c.i = (a.i - r * a.r) / den; } else { r = b.r / b.i; den = b.i + r * b.r; c.r = (a.r * r + a.i) / den; c.i ...
1,117,501
public static final Cmplx div(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); double r, den; if (Math.abs(b.r) >= Math.abs(b.i)) { r = b.i / b.r; den = b.r + r * b.i; c.r = (a.r + r * a.i) / den; c.i = (a.i - r * a.r) / den; } else { r = b.r / b.i; den = b.i + r * b.r; c.r = (a.r * r + a.i) / den; c.i =...
public static final Cmplx div(Cmplx a, Cmplx b) { Cmplx c = new Cmplx(); double r, den; if (Math.abs(b.r) >= Math.abs(b.i)) { r = b.i / b.r; den = b.r + r * b.i; c.r = (a.r + r * a.i) / den; c.i = (a.i - r * a.r) / den; } else { r = b.r / b.i; den = b.i + r * b.r; c.r = (a.r * r + a.i) / den; c.i =...
1,117,502
public static Calendar getCalendar(String val) throws CalFacadeException { try { CalendarBuilder bldr = new CalendarBuilder(new CalendarParserImpl()); return bldr.build(new StringReader(val)); } catch (Throwable t) { throw new CalFacadeException(t); } }
public static Calendar getCalendar(String val) throws CalFacadeException { try { CalendarBuilder bldr = new CalendarBuilder(new CalendarParserImpl()); return bldr.build(new StringReader(val), true); } catch (Throwable t) { throw new CalFacadeException(t); } }
1,117,503
public Collection toVEvent(String val) throws CalFacadeException { try { CalendarBuilder bldr = new CalendarBuilder(new CalendarParserImpl()); Calendar cal = bldr.build(new StringReader(val)); Vector evs = new Vector(); if (cal == null) { return evs; } ComponentList clist = cal...
public Collection toVEvent(String val) throws CalFacadeException { try { CalendarBuilder bldr = new CalendarBuilder(new CalendarParserImpl()); Calendar cal = bldr.build(new StringReader(val), true); Vector evs = new Vector(); if (cal == null) { return evs; } ComponentList clist...
1,117,504
public void renderDataForProjection(Projection p, Graphics g){ logger.debug("InformativeShapeLayer: rendering shape layer"); super.renderDataForProjection(p,g); }
public void renderDataForProjection(Projection p, Graphics g){ logger.debug(ExceptionReporterUtils.getMemoryUsage()+" InformativeShapeLayer: rendering shape layer"); super.renderDataForProjection(p,g); }
1,117,505
public static void main(String[] args) { OpenMap om = new OpenMap("edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse"); om.writeMapToPNG("map.png"); System.out.println("done"); System.exit(0); }
public static void main(String[] args) { OpenMap om = new OpenMap("edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse"); try { om.writeMapToPNG("map.png"); } catch (IOException e) { logger.error("problem saving image to map.png", e); } System.out.println("done"); System.exit(0); ...
1,117,506
public void writeMapToPNG(String filename){ Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics g = bi.getGraphics(); g.setColor(WATER); g.fillRect(0,0,w,h...
public void writeMapToPNG(String filename){ Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics g = bi.getGraphics(); g.setColor(WATER); g.fillRect(0,0,w,h...
1,117,507
public void writeMapToPNG(String filename){ Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics g = bi.getGraphics(); g.setColor(WATER); g.fillRect(0,0,w,h...
public void writeMapToPNG(String filename){ Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics g = bi.getGraphics(); g.setColor(WATER); g.fillRect(0,0,w,h...
1,117,508
public CurrentTimeFlag (){ super(new MicroSecondDate().add(RTTimeRangeConfig.serverTimeOffset), "Current Time"); }
public CurrentTimeFlag (){ super(ClockUtil.now(), "Current Time"); }
1,117,509
DCResolver(String serverName) { super("DCResolver"+serverName); this.serverName = serverName; if (serverName.equals("SCEPP")) { sceppDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("BUD")) { budDCLoadTime = new MicroSecon...
DCResolver(String serverName) { super("DCResolver"+serverName); this.serverName = serverName; if (serverName.equals("SCEPP")) { sceppDCLoadTime = ClockUtil.now(); } else if (serverName.equals("BUD")) { budDCLoadTime = new MicroSecondDate(...
1,117,510
DCResolver(String serverName) { super("DCResolver"+serverName); this.serverName = serverName; if (serverName.equals("SCEPP")) { sceppDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("BUD")) { budDCLoadTime = new MicroSecon...
DCResolver(String serverName) { super("DCResolver"+serverName); this.serverName = serverName; if (serverName.equals("SCEPP")) { sceppDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("BUD")) { budDCLoadTime = ClockUtil.now(...
1,117,511
DCResolver(String serverName) { super("DCResolver"+serverName); this.serverName = serverName; if (serverName.equals("SCEPP")) { sceppDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("BUD")) { budDCLoadTime = new MicroSecon...
DCResolver(String serverName) { super("DCResolver"+serverName); this.serverName = serverName; if (serverName.equals("SCEPP")) { sceppDCLoadTime = new MicroSecondDate(); } else if (serverName.equals("BUD")) { budDCLoadTime = new MicroSecon...
1,117,512
protected DataCenterOperations getBudDC() { while (budDC == null) { logger.debug("Resolving Bud DataCenter"); TimeInterval delay = budDCLoadTime.difference(new MicroSecondDate()); delay.convertTo(UnitImpl.SECOND); logger.debug("Resolving Bud DataCenter "+delay); ...
protected DataCenterOperations getBudDC() { while (budDC == null) { logger.debug("Resolving Bud DataCenter"); TimeInterval delay = budDCLoadTime.difference(ClockUtil.now()); delay.convertTo(UnitImpl.SECOND); logger.debug("Resolving Bud DataCenter "+delay); ...
1,117,513
protected DataCenterOperations getPondDC() { while (pondDC == null) { logger.debug("Resolving Pond DataCenter"); TimeInterval delay = pondDCLoadTime.difference(new MicroSecondDate()); delay.convertTo(UnitImpl.SECOND); logger.debug("Resolving Pond DataCenter "+delay...
protected DataCenterOperations getPondDC() { while (pondDC == null) { logger.debug("Resolving Pond DataCenter"); TimeInterval delay = pondDCLoadTime.difference(ClockUtil.now()); delay.convertTo(UnitImpl.SECOND); logger.debug("Resolving Pond DataCenter "+delay); ...
1,117,514
protected DataCenterOperations getSceppDC() { logger.debug("Resolving Scepp DataCenter"); while (sceppDC == null) { TimeInterval delay = sceppDCLoadTime.difference(new MicroSecondDate()); delay.convertTo(UnitImpl.SECOND); logger.debug("Resolving Scepp DataCenter "+...
protected DataCenterOperations getSceppDC() { logger.debug("Resolving Scepp DataCenter"); while (sceppDC == null) { TimeInterval delay = sceppDCLoadTime.difference(ClockUtil.now()); delay.convertTo(UnitImpl.SECOND); logger.debug("Resolving Scepp DataCenter "+delay)...
1,117,515
public NCReader(NetworkAttr net, Map initialLocations) { this.net = net; this.locs = initialLocations; }
public NCReader(NetworkAttr net, Map initialLocations) { this.net = net; this.locs = initialLocations; }
1,117,516
public Element getParamter(String name);
public Object getParamter(String name);
1,117,517
public MainFrameMenuBar() { // File add(menuFile); menuFile.add(menuItemReinitialize); menuFile.addSeparator(); menuFile.add(menuItemOptions); menuFile.addSeparator(); menuFile.add(menuItemQuit); // Play add(menuPlay); menuPlay.add(menuItemShowUsers); menuPlay.add(menuItemShowGames); menuPlay.addSeparato...
public MainFrameMenuBar() { // File add(menuFile); menuFile.add(menuItemReinitialize); menuFile.addSeparator(); menuFile.add(menuItemOptions); menuFile.addSeparator(); menuFile.add(menuItemQuit); // Play add(menuPlay); menuPlay.add(menuItemShowUsers); menuPlay.add(menuItemShowGames); menuPlay.addSeparato...
1,117,518
public MainFrameMenuBar() { // File add(menuFile); menuFile.add(menuItemReinitialize); menuFile.addSeparator(); menuFile.add(menuItemOptions); menuFile.addSeparator(); menuFile.add(menuItemQuit); // Play add(menuPlay); menuPlay.add(menuItemShowUsers); menuPlay.add(menuItemShowGames); menuPlay.addSeparato...
public MainFrameMenuBar() { // File add(menuFile); menuFile.add(menuItemReinitialize); menuFile.addSeparator(); menuFile.add(menuItemOptions); menuFile.addSeparator(); menuFile.add(menuItemQuit); // Play add(menuPlay); menuPlay.add(menuItemShowUsers); menuPlay.add(menuItemShowGames); menuPlay.addSeparato...
1,117,519
public MainFrameMenuBar() { // File add(menuFile); menuFile.add(menuItemReinitialize); menuFile.addSeparator(); menuFile.add(menuItemOptions); menuFile.addSeparator(); menuFile.add(menuItemQuit); // Play add(menuPlay); menuPlay.add(menuItemShowUsers); menuPlay.add(menuItemShowGames); menuPlay.addSeparato...
public MainFrameMenuBar() { // File add(menuFile); menuFile.add(menuItemReinitialize); menuFile.addSeparator(); menuFile.add(menuItemOptions); menuFile.addSeparator(); menuFile.add(menuItemQuit); // Play add(menuPlay); menuPlay.add(menuItemShowUsers); menuPlay.add(menuItemShowGames); menuPlay.addSeparato...
1,117,520
public void setMode(int mode) { menuItemShowUsers.setEnabled(enablednessInModesMenuItemShowUsers[mode]); menuItemShowGames.setEnabled(enablednessInModesMenuItemShowGames[mode]); menuItemStartNewGame.setEnabled(enablednessInModesMenuItemStartNewGame[mode]); menuItemStartGamePlay.setEnable...
public void setMode(int mode) { menuItemShowUsers.setEnabled(enablednessInModesMenuItemShowUsers[mode]); menuItemShowGames.setEnabled(enablednessInModesMenuItemShowGames[mode]); menuItemStartNewGame.setEnabled(enablednessInModesMenuItemStartNewGame[mode]); menuItemStartGamePlay.setEnable...
1,117,521
public Rectangle getBounds(){ return null; }
public Rectangle getBounds(){ logger.debug("calling getBounds"); return null; }
1,117,523
public Rectangle2D getBounds2D(){ return null; }
public Rectangle2D getBounds2D(){ logger.debug("calling getBounds2D"); return null; }
1,117,524
public static Plottable makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int pixelsPerDay) throws CodecException { if(tr.getEndTime().before(seis.getEndTime()) || tr.getBeginTime().afte...
public static Plottable makePlottable(LocalSeismogramImpl seis, MicroSecondTimeRange tr, int pixelsPerDay) throws CodecException { if(tr.getEndTime().before(seis.getBeginTime()) || tr.getBeginTime().af...
1,117,527
public void getFreeBusy(CaldavCalNode cnode, FreeBusyQuery freeBusy) throws WebdavIntfException { try { String user = cnode.getCDURI().getOwner(); getSvci(); BwFreeBusy fb = freeBusy.getFreeBusy(svci, user); cnode.setFreeBusy(fb); } catch (WebdavIntfException we) { ...
public void getFreeBusy(CaldavCalNode cnode, FreeBusyQuery freeBusy) throws WebdavIntfException { try { String user = cnode.getCDURI().getOwner(); getSvci(); BwFreeBusy fb = freeBusy.getFreeBusy(svci, cnode.getCDURI().getCal(), user); cnode.setFreeBusy(fb); } catch (...
1,117,529
public TimeZone getDefaultTimeZone() throws CalFacadeException;
public TimeZone getDefaultTimeZone() throws CalFacadeException { if ((defaultTimeZone == null) && (defaultTimeZoneId != null)) { defaultTimeZone = getTimeZone(defaultTimeZoneId); } return defaultTimeZone; }
1,117,530
public JDBCTime(Connection conn) throws SQLException{ super("time", conn); seq = new JDBCSequence(conn, "TimeSeq"); if(!DBUtil.tableExists("time", conn)){ conn.createStatement().executeUpdate(ConnMgr.getSQL("time.create")); } getById = conn.prepareStatement("SELECT * FR...
public JDBCTime(Connection conn) throws SQLException{ super("time", conn); seq = new JDBCSequence(conn, "TimeSeq"); if(!DBUtil.tableExists("time", conn)){ conn.createStatement().executeUpdate(ConnMgr.getSQL("time.create")); } getById = conn.prepareStatement("SELECT * FR...
1,117,531
public static GJChronology getInstance( DateTimeZone zone, ReadableInstant gregorianCutover) { return getInstance(zone, gregorianCutover, 4); }
public static GJChronology getInstance( DateTimeZone zone, ReadableInstant gregorianCutover) { return getInstance(zone, gregorianCutover, 4); }
1,117,532
private void adjustModel() { points = new Vector<Point2D>(); Vector<IdeaView> views = rootView.getSubViews(); createPoints(rootView, ORIGIN); tweakIdeas(views, ORIGIN, 0.0, false); }
private void adjustModel() { points = new Vector<Point2D>(); Vector<IdeaView> views = rootView.getSubViews(); createPoints(rootView, ORIGIN, rootView.getAngle()); tweakIdeas(views, ORIGIN, 0.0, false); }
1,117,533
private void createPoints(IdeaView parentView, Point2D c) { Vector<IdeaView> views = parentView.getSubViews(); double initAngle = parentView.getAngle(); points.add(ORIGIN); synchronized(views) { for(IdeaView view: views) { Point2D point = getPoint(view, c, initA...
private void createPoints(IdeaView parentView, Point2D c, double initAngle) { Vector<IdeaView> views = parentView.getSubViews(); double initAngle = parentView.getAngle(); points.add(ORIGIN); synchronized(views) { for(IdeaView view: views) { Point2D point = getPo...
1,117,534
private void createPoints(IdeaView parentView, Point2D c) { Vector<IdeaView> views = parentView.getSubViews(); double initAngle = parentView.getAngle(); points.add(ORIGIN); synchronized(views) { for(IdeaView view: views) { Point2D point = getPoint(view, c, initA...
private void createPoints(IdeaView parentView, Point2D c) { Vector<IdeaView> views = parentView.getSubViews(); points.add(ORIGIN); synchronized(views) { for(IdeaView view: views) { Point2D point = getPoint(view, c, initAngle);// if (parentView.is...
1,117,535
private void createPoints(IdeaView parentView, Point2D c) { Vector<IdeaView> views = parentView.getSubViews(); double initAngle = parentView.getAngle(); points.add(ORIGIN); synchronized(views) { for(IdeaView view: views) { Point2D point = getPoint(view, c, initA...
private void createPoints(IdeaView parentView, Point2D c) { Vector<IdeaView> views = parentView.getSubViews(); double initAngle = parentView.getAngle(); points.add(ORIGIN); synchronized(views) { for(IdeaView view: views) { Point2D point = getPoint(view, c, initA...
1,117,536
private Point2D tweakIdeas(final Vector<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())); ...
private Point2D tweakIdeas(final Vector<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())); ...
1,117,537
public IdeaView(Idea anIdea) { setIdea(anIdea); }
public IdeaView(Idea anIdea) { setIdea(anIdea); }
1,117,538
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } FormFile upFile = form.g...
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } FormFile upFile = form.g...
1,117,539
protected void createDefaultEditPolicies() { super.createDefaultEditPolicies(); installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new ResizableCompartmentEditPolicy()); installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new RegionSubverticesItemSemanticEditPolicy()); installEditPolicy(EditPolicyRoles.CREATION_ROLE, ne...
protected void createDefaultEditPolicies() { super.createDefaultEditPolicies(); installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE, new RegionSubverticesItemSemanticEditPolicy()); installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy()); installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDr...
1,117,540
public void addSeismogram(DataSetSeismogram newSeismogram){ seismos.add(newSeismogram); SeismogramPlotter newPlotter = new SeismogramPlotter(newSeismogram.getSeismogram(), timeRegistrar, ampRegistrar); Iterator e = filters.iterator(); seisPlotters.put(newPlotter, seisColors[seisPlotters.size()%seisColors.length]); ...
public void addSeismogram(DataSetSeismogram newSeismogram){ seismos.add(newSeismogram); SeismogramPlotter newPlotter = new SeismogramPlotter(newSeismogram.getSeismogram(), timeRegistrar, ampRegistrar); Iterator e = filters.iterator(); if(autoColor) seisPlotters.put(newPlotter, seisColors[seisPlotters.size()%seisCol...
1,117,541
public int find(String file, TimeRange fileTimeWindow) throws RT130FormatException, IOException { return rtFileReader.processRT130Data(file, false, fileTimeWindow)[0].sample_rate; }
public int find(String file, MicroSecondTimeRange fileTimeWindow) throws RT130FormatException, IOException { return rtFileReader.processRT130Data(file, false, fileTimeWindow)[0].sample_rate; }
1,117,543
public void addSubscription(BwSubscription val) throws CalFacadeException { BwPreferences prefs = getPreferences(); checkOwnerOrSuper(prefs); setupOwnedEntity(val); val = (BwSubscription)val.clone(); // Avoid hibernate prefs.addSubscription(val); dbi.updatePreferences(prefs); }
public void addSubscription(BwSubscription val) throws CalFacadeException { BwPreferences prefs = getPreferences(); checkOwnerOrSuper(prefs); setupOwnedEntity(val); // Avoid hibernate prefs.addSubscription(val); dbi.updatePreferences(prefs); }
1,117,544
public void addSubscription(BwSubscription val) throws CalFacadeException { BwPreferences prefs = getPreferences(); checkOwnerOrSuper(prefs); setupOwnedEntity(val); val = (BwSubscription)val.clone(); // Avoid hibernate prefs.addSubscription(val); dbi.updatePreferences(prefs); }
public void addSubscription(BwSubscription val) throws CalFacadeException { BwPreferences prefs = getPreferences(); checkOwnerOrSuper(prefs); setupOwnedEntity(val); val = (BwSubscription)val.clone(); // Avoid hibernate prefs.addSubscription(val); }
1,117,545
public double[] acf(int maxlag) { if (autocorrelation.length < maxlag+1) { double[] tmp = new double[maxlag+1]; System.arraycopy(autocorrelation, 0, tmp, 0, autocorrelation.length); double normalizer = binarySumDevSqr(0, getLength(), mean()); for (int i...
public double[] acf(int maxlag) { if (autocorrelation.length < maxlag+1) { double[] tmp = new double[maxlag+1]; System.arraycopy(autocorrelation, 0, tmp, 0, autocorrelation.length); double normalizer = binarySumDevSqr(0, getLength(), mean()); for (int i...
1,117,546