bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void testUnknownDasChannelCreation() { DASChannelCreator creator = new DASChannelCreator(NCReaderTest.net, new SamplingFinder() { public int find(String file, ...
public void testUnknownDasChannelCreation() { DASChannelCreator creator = new DASChannelCreator(NCReaderTest.net, new SamplingFinder() { public int find(String file, ...
1,117,201
public void testUnknownDasChannelCreation() { DASChannelCreator creator = new DASChannelCreator(NCReaderTest.net, new SamplingFinder() { public int find(String file, ...
public void testUnknownDasChannelCreation() { DASChannelCreator creator = new DASChannelCreator(NCReaderTest.net, new SamplingFinder() { public int find(String file, ...
1,117,202
public void testUnknownDasChannelCreation() { DASChannelCreator creator = new DASChannelCreator(NCReaderTest.net, new SamplingFinder() { public int find(String file, ...
public void testUnknownDasChannelCreation() { DASChannelCreator creator = new DASChannelCreator(NCReaderTest.net, new SamplingFinder() { public int find(String file, ...
1,117,203
public int find(String file, TimeRange fileTimeWindow) throws RT130FormatException, ...
public int find(String file, MicroSecondTimeRange fileTimeWindow) throws RT130FormatException, ...
1,117,204
public static Orientation[] parseOrientations(String orientationString) { Matcher m = orientation.matcher(orientationString); if(!m.matches()) { throw new IllegalArgumentException("The orientation string must be either 'default' or a channel orientation specification"); } if(m...
public static Orientation[] parseOrientations(String orientationString) { Matcher m = orientation.matcher(orientationString); if(!m.matches()) { throw new IllegalArgumentException("The orientation string must be either 'default' or a channel orientation specification"); } if(m...
1,117,205
public DASChannelCreator(NetworkAttr net, List sites) { this.net = net; Iterator it = sites.iterator(); while(it.hasNext()) { add((Site)it.next()); } }
public DASChannelCreator(NetworkAttr net, List sites) { this.net = net; Iterator it = sites.iterator(); while(it.hasNext()) { add((Site)it.next()); } }
1,117,206
public int find(String file, TimeRange fileTimeWindow) throws RT130FormatException, IOException;
public int find(String file, MicroSecondTimeRange fileTimeWindow) throws RT130FormatException, IOException;
1,117,207
public static Property parse(Element element) { try { String name = XMLUtil.getText(XMLUtil.getElement(base,"name")); String value = XMLUtil.getText(XMLUtil.getElement(base, "value")); return new Property(name, value); } catch (Exception e) { return null; } // end of try-catch }
public static Property parse(Element element) { try { String name = XMLUtil.getText(XMLUtil.getElement(base,"name")); String value = XMLUtil.getText(XMLUtil.getElement(base, "value")); return new Property(name, value); } catch (Exception e) { return null; } // end of try-catch }
1,117,210
private void plotAll(Dimension size) throws CodecException{ if(seisEnd <= seis.getNumPoints() && seisStart >= 0){ if(seisStart != 0){ startPixel = 0; } if(seisEnd < seis.getNumPoints()){ endPixel = size.width; seisEnd++; } points = new int[seisEnd - seisStart][2]; samplesPerPixel = (seisEnd...
private void plotAll(Dimension size) throws CodecException{ if(seisEnd <= seis.getNumPoints() && seisStart >= 0 && (startPixel != 0 && endPixel != 0)){ if(seisStart != 0){ startPixel = 0; } if(seisEnd < seis.getNumPoints()){ endPixel = size.width; seisEnd++; } points = new int[seisEnd - seisStar...
1,117,211
public Statistics(LocalSeismogramImpl seismo) throws FissuresException { if(seismo.can_convert_to_short()){ sSeries = seismo.get_as_shorts(); endIndex = sSeries.length; }else if(seismo.can_convert_to_long()){ iSeries = seismo.get_as_longs(); endIndex = iSeries.length; }else if(s...
public Statistics(LocalSeismogramImpl seismo) throws FissuresException { if(seismo.can_convert_to_short()){ sSeries = seismo.get_as_shorts(); endIndex = sSeries.length; }else if(seismo.can_convert_to_long()){ iSeries = seismo.get_as_longs(); endIndex = iSeries.length; }else if(s...
1,117,212
public Statistics(LocalSeismogramImpl seismo) throws FissuresException { if(seismo.can_convert_to_short()){ sSeries = seismo.get_as_shorts(); endIndex = sSeries.length; }else if(seismo.can_convert_to_long()){ iSeries = seismo.get_as_longs(); endIndex = iSeries.length; }else if(s...
public Statistics(LocalSeismogramImpl seismo) throws FissuresException { if(seismo.can_convert_to_short()){ sSeries = seismo.get_as_shorts(); endIndex = sSeries.length; }else if(seismo.can_convert_to_long()){ iSeries = seismo.get_as_longs(); endIndex = iSeries.length; }else if(s...
1,117,213
public Statistics(LocalSeismogramImpl seismo) throws FissuresException { if(seismo.can_convert_to_short()){ sSeries = seismo.get_as_shorts(); endIndex = sSeries.length; }else if(seismo.can_convert_to_long()){ iSeries = seismo.get_as_longs(); endIndex = iSeries.length; }else if(s...
public Statistics(LocalSeismogramImpl seismo) throws FissuresException { if(seismo.can_convert_to_short()){ sSeries = seismo.get_as_shorts(); endIndex = sSeries.length; }else if(seismo.can_convert_to_long()){ iSeries = seismo.get_as_longs(); endIndex = iSeries.length; }else if(s...
1,117,214
public static void main(String[] args) throws Exception { BasicConfigurator.configure(); Initializer.init(args); unbindFrom = Initializer.getNS(); unbindDead(unbindFrom.getAllEventDC()); unbindDead(unbindFrom.getAllSeismogramDC()); unbindDead(unbindFrom.getAllNetworkDC()); ...
public static void main(String[] args) throws Exception { BasicConfigurator.configure(); Initializer.init(args); unbindFrom = Initializer.getNS(); unbindDead(unbindFrom.getAllEventDC()); unbindDead(unbindFrom.getAllSeismogramDC()); unbindDead(unbindFrom.getAllNetworkDC()); ...
1,117,215
private static void unbindDead(ServerNameDNS[] servers) throws NotFound, CannotProceed, InvalidName { for(int i = 0; i < servers.length; i++) { CorbaChecker checker = new CorbaChecker(servers[i].getCorbaObject(), servers[i].toString());...
private static void unbindDead(ServerNameDNS[] servers) throws NotFound, CannotProceed, InvalidName { for(int i = 0; i < servers.length; i++) { CorbaChecker checker = new CorbaChecker(servers[i].getCorbaObject(), servers[i].toString());...
1,117,216
private static void unbindDead(ServerNameDNS[] servers) throws NotFound, CannotProceed, InvalidName { for(int i = 0; i < servers.length; i++) { CorbaChecker checker = new CorbaChecker(servers[i].getCorbaObject(), servers[i].toString());...
private static void unbindDead(ServerNameDNS[] servers) throws NotFound, CannotProceed, InvalidName { for(int i = 0; i < servers.length; i++) { org.omg.CORBA.Object object; try { object = servers[i].getCorbaObject(); } catch(SystemException e) { logger.info(servers[i] + " threw " + e + ...
1,117,217
private static void unbindDead(ServerNameDNS[] servers) throws NotFound, CannotProceed, InvalidName { for(int i = 0; i < servers.length; i++) { CorbaChecker checker = new CorbaChecker(servers[i].getCorbaObject(), servers[i].toString());...
private static void unbindDead(ServerNameDNS[] servers) throws NotFound, CannotProceed, InvalidName { for(int i = 0; i < servers.length; i++) { CorbaChecker checker = new CorbaChecker(servers[i].getCorbaObject(), servers[i].toString());...
1,117,218
private LinkToolEntry(String title, String description, java.util.List relationshipTypes) { super(title, description, null, null); this.relationshipTypes = relationshipTypes; }
private LinkToolEntry(String title, String description, List relationshipTypes) { super(title, description, null, null); this.relationshipTypes = relationshipTypes; }
1,117,219
public org.eclipse.gef.Tool createTool() { org.eclipse.gef.Tool tool = new org.eclipse.gmf.runtime.diagram.ui.tools.UnspecifiedTypeConnectionTool(relationshipTypes); tool.setProperties(getToolProperties()); return tool; }
public org.eclipse.gef.Tool createTool() { org.eclipse.gef.Tool tool = new org.eclipse.gmf.runtime.diagram.ui.tools.UnspecifiedTypeConnectionTool(relationshipTypes); tool.setProperties(getToolProperties()); return tool; }
1,117,220
private NodeToolEntry(String title, String description, java.util.List elementTypes) { super(title, description, null, null); this.elementTypes = elementTypes; }
private NodeToolEntry(String title, String description, List elementTypes) { super(title, description, null, null); this.elementTypes = elementTypes; }
1,117,221
public org.eclipse.gef.Tool createTool() { org.eclipse.gef.Tool tool = new org.eclipse.gmf.runtime.diagram.ui.tools.UnspecifiedTypeCreationTool(elementTypes); tool.setProperties(getToolProperties()); return tool; }
public org.eclipse.gef.Tool createTool() { org.eclipse.gef.Tool tool = new org.eclipse.gmf.runtime.diagram.ui.tools.UnspecifiedTypeCreationTool(elementTypes); tool.setProperties(getToolProperties()); return tool; }
1,117,222
private org.eclipse.gef.palette.ToolEntry createConstraint4CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Constraint_3008); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.diagra...
private org.eclipse.gef.palette.ToolEntry createConstraint4CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Constraint_3008); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.diagra...
1,117,223
private org.eclipse.gef.palette.ToolEntry createEnumeration1CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Enumeration_2003); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.diag...
private org.eclipse.gef.palette.ToolEntry createEnumeration1CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Enumeration_2003); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.diag...
1,117,224
private org.eclipse.gef.palette.ToolEntry createExtension4CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Extension_4002); LinkToolEntry entry = new LinkToolEntry( org.eclipse.uml2.diagram....
private org.eclipse.gef.palette.ToolEntry createExtension4CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Extension_4002); LinkToolEntry entry = new LinkToolEntry( org.eclipse.uml2.diagram....
1,117,225
private org.eclipse.gef.palette.ToolEntry createGeneralization2CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Generalization_4001); LinkToolEntry entry = new LinkToolEntry( org.eclipse.uml...
private org.eclipse.gef.palette.ToolEntry createGeneralization2CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Generalization_4001); LinkToolEntry entry = new LinkToolEntry( org.eclipse.uml...
1,117,226
private org.eclipse.gef.palette.ToolEntry createLiteral5CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.EnumerationLiteral_3005); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.d...
private org.eclipse.gef.palette.ToolEntry createLiteral5CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.EnumerationLiteral_3005); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.d...
1,117,227
private org.eclipse.gef.palette.ToolEntry createMetaclass3CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.ElementImport_2006); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.diag...
private org.eclipse.gef.palette.ToolEntry createMetaclass3CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.ElementImport_2006); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.diag...
1,117,228
private org.eclipse.gef.palette.ToolEntry createProfile1CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Profile_2002); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.diagram.prof...
private org.eclipse.gef.palette.ToolEntry createProfile1CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Profile_2002); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.diagram.prof...
1,117,229
private org.eclipse.gef.palette.PaletteContainer createProfiles1Group() { org.eclipse.gef.palette.PaletteGroup paletteContainer = new org.eclipse.gef.palette.PaletteGroup(org.eclipse.uml2.diagram.profile.part.UMLDiagramEditorPlugin.getString("Profiles1Group.title")); //$NON-NLS-1$ paletteContainer.add(createProfile1...
private org.eclipse.gef.palette.PaletteContainer createProfiles1Group() { org.eclipse.gef.palette.PaletteGroup paletteContainer = new org.eclipse.gef.palette.PaletteGroup(org.eclipse.uml2.diagram.profile.part.UMLDiagramEditorPlugin.getString("Profiles1Group.title")); //$NON-NLS-1$ paletteContainer.add(createProfile1...
1,117,230
private org.eclipse.gef.palette.ToolEntry createProperty3CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Property_3001); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.diagram.pr...
private org.eclipse.gef.palette.ToolEntry createProperty3CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(1); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Property_3001); NodeToolEntry entry = new NodeToolEntry( org.eclipse.uml2.diagram.pr...
1,117,231
private org.eclipse.gef.palette.ToolEntry createStereotype2CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(2); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Stereotype_2001); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementType...
private org.eclipse.gef.palette.ToolEntry createStereotype2CreationTool() { java.util.List/*<IElementType>*/types = new java.util.ArrayList/*<IElementType>*/(2); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementTypes.Stereotype_2001); types.add(org.eclipse.uml2.diagram.profile.providers.UMLElementType...
1,117,232
private org.eclipse.gef.palette.PaletteContainer createUML2Group() { org.eclipse.gef.palette.PaletteGroup paletteContainer = new org.eclipse.gef.palette.PaletteGroup(org.eclipse.uml2.diagram.profile.part.UMLDiagramEditorPlugin.getString("UML2Group.title")); //$NON-NLS-1$ paletteContainer.add(createEnumeration1Creati...
private org.eclipse.gef.palette.PaletteContainer createUML2Group() { org.eclipse.gef.palette.PaletteGroup paletteContainer = new org.eclipse.gef.palette.PaletteGroup(org.eclipse.uml2.diagram.profile.part.UMLDiagramEditorPlugin.getString("UML2Group.title")); //$NON-NLS-1$ paletteContainer.add(createEnumeration1Creati...
1,117,233
public void fillPalette(org.eclipse.gef.palette.PaletteRoot paletteRoot) { paletteRoot.add(createProfiles1Group()); paletteRoot.add(createUML2Group()); }
public void fillPalette(PaletteRoot paletteRoot) { paletteRoot.add(createProfiles1Group()); paletteRoot.add(createUML2Group()); }
1,117,234
public boolean addLocation(BwLocation val) throws CalFacadeException { updateOK(val); setupSharableEntity(val); if (findLocation(val) != null) { return false; } if (debug) { trace("Add location " + val); } getCal().addLocation(val); return true; }
public boolean addLocation(BwLocation val) throws CalFacadeException { updateOK(val); if (findLocation(val) != null) { return false; } if (debug) { trace("Add location " + val); } getCal().addLocation(val); return true; }
1,117,235
public boolean addSponsor(BwSponsor val) throws CalFacadeException { updateOK(val); setupSharableEntity(val); if (findSponsor(val) != null) { return false; } if (debug) { trace("Add sponsor " + val); } getCal().addSponsor(val); return true; }
public boolean addSponsor(BwSponsor val) throws CalFacadeException { updateOK(val); if (findSponsor(val) != null) { return false; } if (debug) { trace("Add sponsor " + val); } getCal().addSponsor(val); return true; }
1,117,236
Calintf getCal() throws CalFacadeException { if (cali != null) { return cali; } try { cali = (Calintf)CalEnv.getGlobalObject("calintfclass", Calintf.class); } catch (Throwable t) { throw new CalFacadeException(t); } try { cali.open(); // Just for the user interactions cali.b...
Calintf getCal() throws CalFacadeException { if (cali != null) { return cali; } try { cali = (Calintf)CalEnv.getGlobalObject("calintfclass", Calintf.class); } catch (Throwable t) { throw new CalFacadeException(t); } try { cali.open(); // Just for the user interactions cali.b...
1,117,238
private boolean isSuper() throws CalFacadeException { return pars.getPublicAdmin() && pars.isSuperUser(); }
private boolean isSuper() throws CalFacadeException { return pars.getPublicAdmin() && superUser; }
1,117,239
public VTimeZone findTimeZone(final String id, BwUser owner) throws CalFacadeException;
public abstract VTimeZone findTimeZone(final String id, BwUser owner) throws CalFacadeException;
1,117,241
public void registerTimeZone(String id, TimeZone timezone) throws CalFacadeException;
public void registerTimeZone(String id, TimeZone timezone) throws CalFacadeException { if (debug) { trace("register timezone with id " + id); } TimezoneInfo tzinfo = (TimezoneInfo)timezones.get(id); if (tzinfo == null) { tzinfo = new TimezoneInfo(timezone, null); timezones.put(id, tzinfo); } else { tzinfo.tz = t...
1,117,242
public void saveTimeZone(String tzid, VTimeZone vtz) throws CalFacadeException;
public abstract void saveTimeZone(String tzid, VTimeZone vtz) throws CalFacadeException;
1,117,243
public void addSubscription(BwSubscription val) throws CalFacadeException { Collection c = getSubscriptions(); if (c.contains(val)) { throw new CalFacadeException(CalFacadeException.duplicateSubscription); } c.add(val); }
public void addSubscription(BwSubscription val) throws CalFacadeException { Collection c = getSubscriptions(); if (c.contains(val)) { throw new CalFacadeException(CalFacadeException.duplicateSubscription, val.toString()); } c.add(val); }
1,117,244
public void clearPublicTimezones() throws CalFacadeException;
public abstract void clearPublicTimezones() throws CalFacadeException;
1,117,245
public BwPreferences fetchPreferences(BwUser owner) throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getOwnerPreferences"); sess.setEntity("owner", owner); sess.cacheableQuery(); return (BwPreferences)sess.getUnique(); }
public BwPreferences fetchPreferences(BwUser owner) throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getOwnerPreferences"); sess.setEntity("owner", owner); sess.cacheableQuery(); return (BwPreferences)sess.getUnique(); }
1,117,246
public void initialise(String userid, CallBack cb, Object val) throws CalFacadeException;
public void initialise(String userid, CallBack cb, Object val, boolean debug) throws CalFacadeException;
1,117,247
public Object clone() { CalSvcIPars pars = new CalSvcIPars(getAuthUser(), getRights(), getUser(), getEnvPrefix(), getPublicAdmin(), ...
public Object clone() { CalSvcIPars pars = new CalSvcIPars(getAuthUser(), getUser(), getEnvPrefix(), getPublicAdmin(), getCa...
1,117,248
public void refreshTimezones() throws CalFacadeException;
public abstract void refreshTimezones() throws CalFacadeException;
1,117,249
protected void setUp() throws Exception { super.setUp(); short size = 40; intTestData = new int[size]; shortTestData = new short[size]; floatTestData = new float[size]; doubleTestData = new double[size]; for (short i=0; i<size; i++) { shortTestData[i] = ...
protected void setUp() throws Exception { super.setUp(); short size = 400; intTestData = new int[size]; shortTestData = new short[size]; floatTestData = new float[size]; doubleTestData = new double[size]; for (short i=0; i<size; i++) { shortTestData[i] =...
1,117,251
public void testApplyDouble() throws Exception { double[] dOut = rtrend.apply(doubleTestData); assertEquals("double", 0, dOut[0], 0.000001); }
public void testApplyDouble() throws Exception { double[] dOut = rtrend.apply(doubleTestData); for (int i = 0; i < dOut.length; i++) { assertEquals("double", 0, dOut[i], 0.000001); } }
1,117,253
public void testApplyFloat() throws Exception { float[] fOut = rtrend.apply(floatTestData); assertEquals("float", 0, fOut[0], 0.0000001); }
public void testApplyFloat() throws Exception { float[] fOut = rtrend.apply(floatTestData); for (int i = 0; i < fOut.length; i++) { assertEquals("float", 0, fOut[i], 0.0000001); } }
1,117,254
public void testApplyInt() throws Exception { int[] iOut = rtrend.apply(intTestData); assertEquals("int", 0, iOut[0]); }
public void testApplyInt() throws Exception { int[] iOut = rtrend.apply(intTestData); for (int i = 0; i < iOut.length; i++) { assertEquals("int", 0, iOut[i]); } }
1,117,255
public void testApplyShort() throws Exception { short[] sOut = rtrend.apply(shortTestData); assertEquals("short", 0, sOut[0]); }
public void testApplyShort() throws Exception { short[] sOut = rtrend.apply(shortTestData); for (int i = 0; i < sOut.length; i++) { assertEquals("short", 0, sOut[i]); } }
1,117,256
public short[] apply(short[] data) { short[] out = new short[data.length]; System.arraycopy(data, 0, out, 0, data.length); applyInPlace(out); return out; }
public short[] apply(short[] data) { short[] out = new short[data.length]; System.arraycopy(data, 0, out, 0, data.length); applyInPlace(out); return out; }
1,117,257
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { ...
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { ...
1,117,258
public JDBCChannel(Connection conn) throws SQLException { this(conn, new JDBCQuantity(conn), new JDBCSite(conn), new JDBCTime(conn)); }
public JDBCChannel(Connection conn) throws SQLException { this(conn, new JDBCQuantity(conn), new JDBCSite(conn), new JDBCTime(conn)); }
1,117,261
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < dayChunks.length; i++) { int...
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); if(getData().y_coor.length % getSamplesPerDay() == 0 && beginSample != 0) { numDays++; } List dayChunks = new ArrayList(); MicroSecondDate time = getBeginTime(); ...
1,117,262
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < dayChunks.length; i++) { int...
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < numDays; i++) { int copyStar...
1,117,263
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < dayChunks.length; i++) { int...
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < dayChunks.length; i++) { int...
1,117,264
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < dayChunks.length; i++) { int...
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < dayChunks.length; i++) { int...
1,117,265
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < dayChunks.length; i++) { int...
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < dayChunks.length; i++) { int...
1,117,266
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < dayChunks.length; i++) { int...
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < dayChunks.length; i++) { int...
1,117,267
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < dayChunks.length; i++) { int...
public PlottableChunk[] breakIntoDays() { int numDays = (int)Math.ceil(getData().y_coor.length / getSamplesPerDay()); PlottableChunk[] dayChunks = new PlottableChunk[numDays]; MicroSecondDate time = getBeginTime(); for(int i = 0; i < dayChunks.length; i++) { int...
1,117,268
public int getDBId(ChannelId id) throws SQLException, NotFound { int netDbId = netTable.getDBId(id.network_id); int[] possibleStaDbIds = stationTable.getDBIds(netDbId, id.station_code); int[] possibleSiteIds = siteTable.getDBIds(possibleStaDbIds, ...
public int getDBId(ChannelId id) throws SQLException, NotFound { int netDbId = netTable.getDBId(id.network_id); int[] possibleStaDbIds = stationTable.getDBIds(netDbId, id.station_code); int[] possibleSiteIds = siteTable.getDBIds(possibleStaDbIds, ...
1,117,269
public PlottableChunk(Plottable data, int startSample, int jday, int year, int samplesPerDay, ChannelId channel) { this.data = data; this.beginSample = startSample; this.samplesPerDay = samplesPerDay; this.jday = jday; this.year = year; this.channel = channel; ...
public PlottableChunk(Plottable data, int startSample, int jday, int year, int samplesPerDay, ChannelId channel) { this.data = data; this.beginSample = startSample; this.samplesPerDay = samplesPerDay; this.jday = jday; this.year = year; this.channel = channel; ...
1,117,270
public static PlottableChunk[] merge(PlottableChunk[] chunks) { return new PlottableChunkMerger().merge(chunks); }
public static PlottableChunk[] merge(PlottableChunk[] chunks) { return new PlottableChunkMerger().merge(chunks); }
1,117,271
public int put(ChannelId id) throws SQLException { int dbid; try { dbid = getDBId(id); } catch(NotFound notFound) { // no id found so ok to add the whole thing dbid = seq.next(); putId.setInt(1, dbid); insertId(id, putId, 2, siteTable, time...
public int put(Channel chan) throws SQLException { int dbid; try { dbid = getDBId(id); } catch(NotFound notFound) { // no id found so ok to add the whole thing dbid = seq.next(); putId.setInt(1, dbid); insertId(id, putId, 2, siteTable, time...
1,117,272
public int put(ChannelId id) throws SQLException { int dbid; try { dbid = getDBId(id); } catch(NotFound notFound) { // no id found so ok to add the whole thing dbid = seq.next(); putId.setInt(1, dbid); insertId(id, putId, 2, siteTable, time...
public int put(ChannelId id) throws SQLException { int dbid; try { dbid = getDBId(chan.get_id()); } catch(NotFound notFound) { // no id found so ok to add the whole thing dbid = seq.next(); putId.setInt(1, dbid); insertId(id, putId, 2, site...
1,117,273
public int put(ChannelId id) throws SQLException { int dbid; try { dbid = getDBId(id); } catch(NotFound notFound) { // no id found so ok to add the whole thing dbid = seq.next(); putId.setInt(1, dbid); insertId(id, putId, 2, siteTable, time...
public int put(ChannelId id) throws SQLException { int dbid; try { dbid = getDBId(id); } catch(NotFound notFound) { // no id found so ok to add the whole thing dbid = seq.next(); putId.setInt(1, dbid); insertId(id, putId, 2, siteTable, time...
1,117,274
public void setIsTitleNewPage(boolean value){ this.getRootElement().setAttribute(ATTRIBUTE_IS_TITLE_NEW_PAGE,Boolean.toString(value)); }
public void setIsTitleNewPage(boolean value){ this.getRootElement().setAttribute(ATTRIBUTE_IS_TITLE_NEW_PAGE,String.valueOf(value)); }
1,117,275
public void setIsForPrompting(boolean value){ setAttribute(ATTRIBUTE_IS_FOR_PROMPTING,Boolean.toString(value)); }
public void setIsForPrompting(boolean value){ setAttribute(ATTRIBUTE_IS_FOR_PROMPTING,String.valueOf(value)); }
1,117,276
protected static void writeLittleEndian(DataOutput out, int value) throws IOException { byte[] tmpBytes; tmpBytes = Utility.intToByteArray(value); out.write(tmpBytes[0]); out.write(tmpBytes[1]); out.write(tmpBytes[2]); out.write(tmpBytes[3]); }
protected static void writeLittleEndian(DataOutput out, int value) throws IOException { byte[] tmpBytes; tmpBytes = Utility.intToByteArray(value); out.write(tmpBytes[0]); out.write(tmpBytes[1]); out.write(tmpBytes[2]); out.write(tmpBytes[3]); }
1,117,277
public static void writeWAV(LocalSeismogramImpl seis, int speedUp, DataOutput out) throws IOException { out.writeBytes("RIFF"); int size = 36 + 2*seis.getNumPoints(); writeLittleEndian(out, size); out.writeBytes("WAVE"); // write fmt subchunk out.writeBytes("fmt "); writeLittleEndian(out, 16); writeLittleEnd...
public static void writeWAV(LocalSeismogramImpl seis, int speedUp, DataOutput out) throws IOException { out.writeBytes("RIFF"); int size = 36 + 2*seis.getNumPoints(); writeLittleEndian(out, size); out.writeBytes("WAVE"); // write fmt subchunk out.writeBytes("fmt "); writeLittleEndian(out, 16); writeLittleEnd...
1,117,278
public void returnSnapshot(){ taken = false; snapshot.update(seismos, timeConfig.getTimeRange()); }
public void returnSnapshot(){ taken = false; }
1,117,279
public void setTimeConfig(TimeRangeConfig newTimeConfig){ timeConfig.removeTimeSyncListener(this); Iterator e = seismos.keySet().iterator(); timeFinder = newTimeConfig.getTimeFinder(); newTimeConfig.addTimeSyncListener(this); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); time...
public void setTimeConfig(TimeRangeConfig newTimeConfig){ timeConfig.removeTimeSyncListener(this); timeFinder = newTimeConfig.getTimeFinder(); newTimeConfig.addTimeSyncListener(this); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); timeConfig.removeSeismogram(current); thi...
1,117,280
public void setTimeConfig(TimeRangeConfig newTimeConfig){ timeConfig.removeTimeSyncListener(this); Iterator e = seismos.keySet().iterator(); timeFinder = newTimeConfig.getTimeFinder(); newTimeConfig.addTimeSyncListener(this); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); time...
public void setTimeConfig(TimeRangeConfig newTimeConfig){ timeConfig.removeTimeSyncListener(this); Iterator e = seismos.keySet().iterator(); timeFinder = newTimeConfig.getTimeFinder(); /*Iterator e = seismos.keySet().iterator(); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); t...
1,117,281
public void setTimeConfig(TimeRangeConfig newTimeConfig){ timeConfig.removeTimeSyncListener(this); Iterator e = seismos.keySet().iterator(); timeFinder = newTimeConfig.getTimeFinder(); newTimeConfig.addTimeSyncListener(this); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); time...
public void setTimeConfig(TimeRangeConfig newTimeConfig){ timeConfig.removeTimeSyncListener(this); Iterator e = seismos.keySet().iterator(); timeFinder = newTimeConfig.getTimeFinder(); newTimeConfig.addTimeSyncListener(this); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); time...
1,117,282
public void setTimeConfig(TimeRangeConfig newTimeConfig){ timeConfig.removeTimeSyncListener(this); Iterator e = seismos.keySet().iterator(); timeFinder = newTimeConfig.getTimeFinder(); newTimeConfig.addTimeSyncListener(this); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); time...
public void setTimeConfig(TimeRangeConfig newTimeConfig){ timeConfig.removeTimeSyncListener(this); Iterator e = seismos.keySet().iterator(); timeFinder = newTimeConfig.getTimeFinder(); newTimeConfig.addTimeSyncListener(this); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); time...
1,117,283
public AmpConfigRegistrar(AmpRangeConfig ar){ this(ar, null); }
public AmpConfigRegistrar(AmpRangeConfig ar){ this(ar, null); }
1,117,284
public boolean contains(String name){ if(seismos.contains(name)) return true; return false; }
public boolean contains(String name){ if(names.contains(name)) return true; return false; }
1,117,285
public BasicSeismogramDisplay(LocalSeismogram seis, TimeRangeConfig tr, AmpRangeConfig ar, boolean timeBorder){ super(); this.setLayout(new OverlayLayout(this)); this.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { resize(); } public void componentShown(Compone...
public BasicSeismogramDisplay(LocalSeismogram seis, TimeRangeConfig tr, AmpRangeConfig ar, boolean timeBorder){ super(); this.setLayout(new OverlayLayout(this)); this.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { resize(); } public void componentShown(Compone...
1,117,286
public int sort(DataSetSeismogram seismo, String name){ seismos.add(name); return seismos.size(); }
public int sort(DataSetSeismogram seismo, String name){ names.add(name); return seismos.size(); }
1,117,287
public OffsetMeanAmpConfig(){ ampRange = new UnitRangeImpl(-500, 500, UnitImpl.COUNT); }
public OffsetMeanAmpConfig(){ ampRange = new UnitRangeImpl(-500, 500, UnitImpl.COUNT); }
1,117,288
public ParticleMotionDisplay (DataSetSeismogram hSeis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, boolean advancedOption){ this(hSeis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, null,...
public ParticleMotionDisplay (DataSetSeismogram hSeis, TimeConfigRegistrar timeConfigRegistrar, AmpConfigRegistrar hAmpConfigRegistrar, AmpConfigRegistrar vAmpConfigRegistrar, boolean advancedOption){ this(hSeis, timeConfigRegistrar, hAmpConfigRegistrar, vAmpConfigRegistrar, null,...
1,117,289
public static ChannelId[] retrieveGrouping(DataSet dataset, ChannelId channelID) { String[] paramNames = dataset.getParameterNames(); LinkedList list = new LinkedList(); String origChannelIdStr = ChannelIdUtil.toString(channelID); origChannel...
public static ChannelId[] retrieveGrouping(DataSet dataset, ChannelId channelID) { String[] paramNames = dataset.getParameterNames(); LinkedList list = new LinkedList(); String origChannelIdStr = ChannelIdUtil.toString(channelID); origChannel...
1,117,290
public LocalSeismogramImpl getSeismogram(String name) { if (seismogramCache.containsKey(name)) { logger.debug("getting the seismogram fromt the cache"); SoftReference softReference = (SoftReference)seismogramCache.get(name); LocalSeismogramImpl seis = (LocalSeismogramImpl)softReference.get...
public LocalSeismogramImpl getSeismogram(String name) { if (seismogramCache.containsKey(name)) { logger.debug("getting the seismogram fromt the cache"); SoftReference softReference = (SoftReference)seismogramCache.get(name); LocalSeismogramImpl seis = (LocalSeismogramImpl)softReference.get...
1,117,291
public void redraw(){ overSizedImage = null; repaint(); }
public void redraw(){ redo = true; repaint(); }
1,117,293
public boolean remove(String name){ return seismos.remove(name); }
public boolean remove(String name){ seismos.remove(name); return names.remove(name); }
1,117,294
public CaldavCalNode(CaldavURI cdURI, CalSvcI svci, IcalTranslator trans, boolean debug) { super(cdURI, svci, trans, debug); this.name = cdURI.getCalName(); collection = true; allowsGet = false; if (!uri.endsWith("/")) { uri += "/"; } contentLang = "en"; contentLen =...
public CaldavCalNode(CaldavURI cdURI, CalSvcI svci, IcalTranslator trans, boolean debug) { super(cdURI, svci, trans, debug); this.name = cdURI.getCalName(); collection = true; allowsGet = false; if (!uri.endsWith("/")) { uri += "/"; } contentLang = "en"; contentLen =...
1,117,295
public Object clone() { return new CaldavCalNode(getCDURI(), svci, trans, debug); }
public Object clone() { return new CaldavCalNode(getCDURI(), getSvci(), trans, debug); }
1,117,296
public Collection getChildren() throws WebdavIntfException { /* For the moment we're going to do this the inefficient way. We really need to have calendar defs that can be expressed as a search allowing us to retrieve all the ids of objects within a calendar. */ try { BwCalendar cal = cdU...
public Collection getChildren() throws WebdavIntfException { /* For the moment we're going to do this the inefficient way. We really need to have calendar defs that can be expressed as a search allowing us to retrieve all the ids of objects within a calendar. */ try { BwCalendar cal = cdU...
1,117,297
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } BwLocation loc = form.getLocation(); int delResult = form.getCalSvc...
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } BwLocation loc = form.getLocation(); int delResult = form.getCalSvc...
1,117,298
public abstract String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable;
public abstract String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable;
1,117,299
public ControlPanel(final AudioPlayer owner) { super(new GridLayout(0, 4)); this.owner = owner; prev.setBorderPainted(false); pause.setBorderPainted(false); play.setBorderPainted(false); next.setBorderPainted(false); prev.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) ...
public ControlPanel(final AudioPlayer owner) { super(new GridLayout(0, 3)); this.owner = owner; prev.setBorderPainted(false); pause.setBorderPainted(false); play.setBorderPainted(false); next.setBorderPainted(false); prev.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) ...
1,117,300
public ControlPanel(final AudioPlayer owner) { super(new GridLayout(0, 4)); this.owner = owner; prev.setBorderPainted(false); pause.setBorderPainted(false); play.setBorderPainted(false); next.setBorderPainted(false); prev.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) ...
public ControlPanel(final AudioPlayer owner) { super(new GridLayout(0, 4)); this.owner = owner; prev.setBorderPainted(false); prev.setFocusPainted(false); play.setBorderPainted(false); next.setBorderPainted(false); prev.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ...
1,117,301
public ControlPanel(final AudioPlayer owner) { super(new GridLayout(0, 4)); this.owner = owner; prev.setBorderPainted(false); pause.setBorderPainted(false); play.setBorderPainted(false); next.setBorderPainted(false); prev.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) ...
public ControlPanel(final AudioPlayer owner) { super(new GridLayout(0, 4)); this.owner = owner; prev.setBorderPainted(false); pause.setBorderPainted(false); play.setBorderPainted(false); next.setBorderPainted(false); prev.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) ...
1,117,302
public ControlPanel(final AudioPlayer owner) { super(new GridLayout(0, 4)); this.owner = owner; prev.setBorderPainted(false); pause.setBorderPainted(false); play.setBorderPainted(false); next.setBorderPainted(false); prev.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) ...
public ControlPanel(final AudioPlayer owner) { super(new GridLayout(0, 4)); this.owner = owner; prev.setBorderPainted(false); pause.setBorderPainted(false); play.setBorderPainted(false); next.setBorderPainted(false); prev.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) ...
1,117,303
public ControlPanel(final AudioPlayer owner) { super(new GridLayout(0, 4)); this.owner = owner; prev.setBorderPainted(false); pause.setBorderPainted(false); play.setBorderPainted(false); next.setBorderPainted(false); prev.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) ...
public ControlPanel(final AudioPlayer owner) { super(new GridLayout(0, 4)); this.owner = owner; prev.setBorderPainted(false); pause.setBorderPainted(false); play.setBorderPainted(false); next.setBorderPainted(false); prev.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) ...
1,117,304
public void actionPerformed(ActionEvent e) { MainPanel mainPanel = (MainPanel)owner.getPanelInstance(); mainPanel.pause(); }
public void actionPerformed(ActionEvent e) { MainPanel mainPanel = (MainPanel)owner.getPanelInstance(); if (mainPanel.isPlaying()) { mainPanel.pause(); } else { mainPanel.play(); } }
1,117,305
public void actionPerformed(ActionEvent e) { MainPanel mainPanel = (MainPanel)owner.getPanelInstance(); mainPanel.play(); }
public void actionPerformed(ActionEvent e) { MainPanel mainPanel = (MainPanel)owner.getPanelInstance(); mainPanel.next(); }
1,117,306
public void startTimer() { if (timer == null) { timer = new javax.swing.Timer((int)update.convertTo(UnitImpl.MILLISECOND).value, new ActionListener() { public void actionPerformed(ActionEvent e) { if (beginTime != null && speed != 0) { width = (TimeInterval)update.multiplyBy(spe...
public void startTimer() { if (timer == null) { timer = new javax.swing.Timer((int)update.convertTo(UnitImpl.MILLISECOND).value, new ActionListener() { public void actionPerformed(ActionEvent e) { if (beginTime != null && speed != 0) { width = (TimeInterval)timeInterval.multiply...
1,117,307
public void actionPerformed(ActionEvent e) { if (beginTime != null && speed != 0) { width = (TimeInterval)update.multiplyBy(speed); setAllBeginTime(beginTime.add(width)); getRegistrar().updateTimeSyncListeners(); System.out.println("Timer: updateTimeSyncListeners() speed="+speed); ...
public void actionPerformed(ActionEvent e) { if (beginTime != null && speed != 0) { width = (TimeInterval)timeInterval.multiplyBy(speed); lastDate = now; setAllBeginTime(beginTime.add(width)); getRegistrar().updateTimeSyncListeners(); System.out.println("Timer: updateTimeSyncListener...
1,117,308
public static void deleteEvent(BwActionFormBase form, BwEvent event) throws Throwable { CalSvcI svci = form.fetchSvci(); svci.deleteEvent(event, false); /* If we auto delete and if sponsor id no longer exists in events table then delete this sponsor. */ if (form.getAutoD...
public static void deleteEvent(BwActionFormBase form, BwEvent event) throws Throwable { CalSvcI svci = form.fetchSvci(); svci.deleteEvent(event, false); /* If we auto delete and if sponsor id no longer exists in events table then delete this sponsor. */ if (form.retrieve...
1,117,309