bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void report(String message, Throwable e, List sections) throws IOException{ int cur = GlobalExceptionHandler.getNumHandled(); File outFile = new File(directory, "Exception_"+cur+".html"); appendToIndexFile(outFile, e); BufferedWriter bw = new BufferedWriter(new FileWriter(outFile)... | public void report(String message, Throwable e, List sections) throws IOException{ int cur = GlobalExceptionHandler.getNumHandled(); File outFile = new File(directory, "Exception_"+cur+".html"); appendToIndexFile(outFile, e); BufferedWriter bw = new BufferedWriter(new FileWriter(outFile)... | 1,119,269 |
public MicroSecondTimeRange getOversizedTimeRange(int scale){ long extraTime = scale*(endTime.getMicroSecondTime() - beginTime.getMicroSecondTime()); return new MicroSecondTimeRange(new MicroSecondDate(beginTime.getMicroSecondTime() - extraTime), new MicroSecondDate(endTime.getMicroSecondTime() + extraTime))... | public MicroSecondTimeRange getOversizedTimeRange(int scale){ long extraTime = scale*(endTime.getMicroSecondTime() - beginTime.getMicroSecondTime()); return new MicroSecondTimeRange(new MicroSecondDate(beginTime.getMicroSecondTime() - extraTime), new MicroSecondDate(endTime.getMicroSecondTime() + extraTime))... | 1,119,270 |
public TestBSD(){ super("TestBSD"); edu.iris.Fissures.Time begin = new edu.iris.Fissures.Time("19911015T163000.000Z", -1); DataSetSeismogram[] seismos = {new DataSetSeismogram(((LocalSeismogramImpl)SimplePlotUtil. createSineWave()),null)}; String[] names = {"FIRST"}; bsd = new BasicSeismogra... | public TestBSD(){ super("TestBSD"); edu.iris.Fissures.Time begin = new edu.iris.Fissures.Time("19911015T163000.000Z", -1); DataSetSeismogram[] seismos = {new DataSetSeismogram(((LocalSeismogramImpl)SimplePlotUtil. createSineWave()),null)}; String[] names = {"FIRST"}; bsd = new BasicSeismogra... | 1,119,271 |
public void addTestData(int numSeis){ DataSetSeismogram[] seismos = new DataSetSeismogram[numSeis]; String[] names = new String[numSeis]; for(int i = 0; i < numSeis; i++){ seismos[i] = new DataSetSeismogram(((LocalSeismogramImpl)SimplePlotUtil.createTestData()), null); names[i] = "SINE" + 1; } bsd.add(seism... | public void addTestData(int numSeis){ DataSetSeismogram[] seismos = new DataSetSeismogram[numSeis]; String[] names = new String[numSeis]; for(int i = 0; i < numSeis; i++){ seismos[i] = new DataSetSeismogram(((LocalSeismogramImpl)SimplePlotUtil.createTestData()), null); names[i] = "SINE" + 1; } bsd.add(seism... | 1,119,272 |
public void loadLogFile(String filename) { initData(); reviewMessages.clear(); try { FileReader fileReader = new FileReader(filename); BufferedReader bufferedReader = new BufferedReader(fileReader); for (;;) { String line = bufferedReader.readLine(); if (!(line instanceof String)) { break; } i... | public void loadLogFile(String filename) { initData(); reviewMessages.clear(); try { FileReader fileReader = new FileReader(filename); BufferedReader bufferedReader = new BufferedReader(fileReader); for (;;) { String line = bufferedReader.readLine(); if (!(line instanceof String)) { break; } i... | 1,119,274 |
public UnitRangeImpl getAmpRange(DataSetSeismogram aSeis){ LocalSeismogramImpl seis = aSeis.getSeismogram(); MicroSecondTimeRange pastTime = (MicroSecondTimeRange)seismoTimes.get(aSeis); if(timeRegistrar == null){ return getAmpRange(aSeis, (MicroSecondTimeRange)seismoTimes.get(aSeis)); }else{ if (!tim... | public UnitRangeImpl getAmpRange(DataSetSeismogram aSeis){ LocalSeismogramImpl seis = aSeis.getSeismogram(); if(timeRegistrar == null){ return getAmpRange(aSeis, (MicroSecondTimeRange)seismoTimes.get(aSeis)); }else{ if (!timeRegistrar.contains(aSeis)) { getAmpRange(aSeis, timeRegistrar.getTimeRange... | 1,119,276 |
public void removeSeismogram(DataSetSeismogram aSeis){ if (seismoAmps.size() == 1) { super.removeSeismogram(aSeis); return; } // end of if (seismos.size() == 1) MicroSecondTimeRange calcIntv; LocalSeismogramImpl seis = aSeis.getSeismogram(); if(this.timeRegistrar == null) calcIntv = new MicroSecondTime... | public void removeSeismogram(DataSetSeismogram aSeis){ if (seismoAmps.size() == 1) { super.removeSeismogram(aSeis); return; } // end of if (seismos.size() == 1) MicroSecondTimeRange calcIntv; LocalSeismogramImpl seis = aSeis.getSeismogram(); if(this.timeRegistrar == null) calcIntv = new MicroSecondTime... | 1,119,277 |
public void removeSeismogram(DataSetSeismogram aSeis){ if (seismoAmps.size() == 1) { super.removeSeismogram(aSeis); return; } // end of if (seismos.size() == 1) MicroSecondTimeRange calcIntv; LocalSeismogramImpl seis = aSeis.getSeismogram(); if(this.timeRegistrar == null) calcIntv = new MicroSecondTime... | public void removeSeismogram(DataSetSeismogram aSeis){ if (seismoAmps.size() == 1) { super.removeSeismogram(aSeis); return; } } // end of if (seismos.size() == 1) MicroSecondTimeRange calcIntv; LocalSeismogramImpl seis = aSeis.getSeismogram(); if(this.timeRegistrar == null) calcIntv = new MicroSecondTi... | 1,119,278 |
public void removeSeismogram(DataSetSeismogram aSeis){ if (seismoAmps.size() == 1) { super.removeSeismogram(aSeis); return; } // end of if (seismos.size() == 1) MicroSecondTimeRange calcIntv; LocalSeismogramImpl seis = aSeis.getSeismogram(); if(this.timeRegistrar == null) calcIntv = new MicroSecondTime... | public void removeSeismogram(DataSetSeismogram aSeis){ if (seismoAmps.size() == 1) { super.removeSeismogram(aSeis); return; } // end of if (seismos.size() == 1) MicroSecondTimeRange calcIntv; LocalSeismogramImpl seis = aSeis.getSeismogram(); if(this.timeRegistrar == null) calcIntv = new MicroSecondTime... | 1,119,279 |
public org.omg.CORBA.Object getRoot() { org.omg.CORBA.Object rootObj = null; if(nameServiceCorbaLoc != null) { logger.debug("corbaloc not null"); logger.info("Using name service corba loc=" + nameServiceCorbaLoc); rootObj = orb.string_to_object(nameServiceCorbaLoc); ... | public org.omg.CORBA.Object getRoot() { org.omg.CORBA.Object rootObj = null; if(nameServiceCorbaLoc != null) { logger.info("Using name service corba loc=" + nameServiceCorbaLoc); rootObj = orb.string_to_object(nameServiceCorbaLoc); if(rootObj == null) { ... | 1,119,281 |
public org.omg.CORBA.Object getRoot() { org.omg.CORBA.Object rootObj = null; if(nameServiceCorbaLoc != null) { logger.debug("corbaloc not null"); logger.info("Using name service corba loc=" + nameServiceCorbaLoc); rootObj = orb.string_to_object(nameServiceCorbaLoc); ... | public org.omg.CORBA.Object getRoot() { org.omg.CORBA.Object rootObj = null; if(nameServiceCorbaLoc != null) { logger.debug("corbaloc not null"); logger.info("Using name service corba loc=" + nameServiceCorbaLoc); rootObj = orb.string_to_object(nameServiceCorbaLoc); ... | 1,119,282 |
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = getReqPar(request, "cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } i... | 1,119,283 |
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = getReqPar(request, "event"); } i... | 1,119,284 |
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | 1,119,285 |
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | 1,119,286 |
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | 1,119,287 |
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | 1,119,288 |
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | 1,119,289 |
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | 1,119,290 |
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | 1,119,291 |
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } String idstr = request.getParameter("cal"); boolean calid = idstr != null; if (!calid) { idstr = request.getParameter("event"); } ... | 1,119,292 |
public Collection getFreeBusy(CalSvcI svci, String user) throws WebdavException { Iterator it = timeRanges.iterator(); Collection fbs = new Vector(); while (it.hasNext()) { TimeRange tr = (TimeRange)it.next(); try { BwFreeBusy fb = svci.getFreeBusy(null, new BwUser(user), ... | public Collection getFreeBusy(CalSvcI svci, String user) throws WebdavException { Iterator it = timeRanges.iterator(); Collection fbs = new ArrayList(); while (it.hasNext()) { TimeRange tr = (TimeRange)it.next(); try { BwFreeBusy fb = svci.getFreeBusy(null, new BwUser(user), ... | 1,119,293 |
public int parse(Node nd) throws WebdavException { try { if (timeRanges == null) { timeRanges = new Vector(); } if (!MethodBase.nodeMatches(nd, CaldavTags.timeRange)) { throw new WebdavBadRequest(); } TimeRange tr = CalDavParseUtil.parseTimeRange(nd, intf.getSvci().getTimezon... | public int parse(Node nd) throws WebdavException { try { if (timeRanges == null) { timeRanges = new ArrayList(); } if (!MethodBase.nodeMatches(nd, CaldavTags.timeRange)) { throw new WebdavBadRequest(); } TimeRange tr = CalDavParseUtil.parseTimeRange(nd, intf.getSvci().getTime... | 1,119,294 |
public double[] linearLeastSquares() { int n = getLength()-1; // use zero based, so n => n-1 int sumToN = n*(n+1)/2; int sumSqrToN = n*(n+1)*(2*n+1)/6; double sumValues = binarySum(0, getLength()); double indexSumValues = binaryIndexSum(0, getLength()); double d = n*sumSqrT... | public double[] linearLeastSquares() { int n = getLength()-1; // use zero based, so n => n-1 int sumToN = n*(n+1)/2; int sumSqrToN = n*(n+1)*(2*n+1)/6; double sumValues = binarySum(0, getLength()); double indexSumValues = binaryIndexSum(0, getLength()); double d = (n+1)*sum... | 1,119,295 |
public double[] linearLeastSquares() { int n = getLength()-1; // use zero based, so n => n-1 int sumToN = n*(n+1)/2; int sumSqrToN = n*(n+1)*(2*n+1)/6; double sumValues = binarySum(0, getLength()); double indexSumValues = binaryIndexSum(0, getLength()); double d = n*sumSqrT... | public double[] linearLeastSquares() { int n = getLength()-1; // use zero based, so n => n-1 int sumToN = n*(n+1)/2; int sumSqrToN = n*(n+1)*(2*n+1)/6; double sumValues = binarySum(0, getLength()); double indexSumValues = binaryIndexSum(0, getLength()); double d = n*sumSqrT... | 1,119,296 |
public Map getLdapAttributesToPortalAttributes() { return this.ldapAttributesToPortalAttributes; } | public Map getLdapAttributesToPortalAttributes() { return this.attributesMapper.getLdapAttributesToPortalAttributes(); } | 1,119,297 |
public Map getUserAttributes(final Map seed) { // Checks to make sure the argument & state is valid if (seed == null) throw new IllegalArgumentException("The query seed Map cannot be null."); if (this.ldapContext == null) throw new IllegalStateException("LDAP context is null"); if (this.query == null) throw ... | public Map getUserAttributes(final Map seed) { // Checks to make sure the argument & state is valid if (seed == null) throw new IllegalArgumentException("The query seed Map cannot be null."); if (this.ldapContext == null) throw new IllegalStateException("LDAP context is null"); if (this.query == null) throw ... | 1,119,298 |
public Map getUserAttributes(final Map seed) { // Checks to make sure the argument & state is valid if (seed == null) throw new IllegalArgumentException("The query seed Map cannot be null."); if (this.ldapContext == null) throw new IllegalStateException("LDAP context is null"); if (this.query == null) throw ... | public Map getUserAttributes(final Map seed) { // Checks to make sure the argument & state is valid if (seed == null) throw new IllegalArgumentException("The query seed Map cannot be null."); if (this.ldapContext == null) throw new IllegalStateException("LDAP context is null"); if (this.query == null) throw ... | 1,119,299 |
public Map getUserAttributes(final Map seed) { // Checks to make sure the argument & state is valid if (seed == null) throw new IllegalArgumentException("The query seed Map cannot be null."); if (this.ldapContext == null) throw new IllegalStateException("LDAP context is null"); if (this.query == null) throw ... | public Map getUserAttributes(final Map seed) { // Checks to make sure the argument & state is valid if (seed == null) throw new IllegalArgumentException("The query seed Map cannot be null."); if (this.ldapContext == null) throw new IllegalStateException("LDAP context is null"); if (this.query == null) throw ... | 1,119,300 |
public void setLdapAttributesToPortalAttributes(final Map ldapAttributesToPortalAttributesArg) { this.ldapAttributesToPortalAttributes = MultivaluedPersonAttributeUtils.parseAttributeToAttributeMapping(ldapAttributesToPortalAttributesArg); final Collection userAttributeCol = MultivaluedPersonAttributeUtils.flattenCo... | public void setLdapAttributesToPortalAttributes(final Map ldapAttributesToPortalAttributesArg) { this.ldapAttributesToPortalAttributes = MultivaluedPersonAttributeUtils.parseAttributeToAttributeMapping(ldapAttributesToPortalAttributesArg); final Collection userAttributeCol = MultivaluedPersonAttributeUtils.flattenCo... | 1,119,301 |
public String toString() { StringBuffer sb = new StringBuffer(); sb.append(super.toString()); sb.append("["); sb.append("ldapContext=").append(this.ldapContext); sb.append(", timeLimit=").append(this.timeLimit); sb.append(", baseDN=").append(this.baseDN); sb.append(", query=").a... | public String toString() { StringBuffer sb = new StringBuffer(); sb.append(super.toString()); sb.append("["); sb.append("contextSource=").append(this.contextSource); sb.append(", timeLimit=").append(this.timeLimit); sb.append(", baseDN=").append(this.baseDN); sb.append(", query=... | 1,119,303 |
public String toString() { StringBuffer sb = new StringBuffer(); sb.append(super.toString()); sb.append("["); sb.append("ldapContext=").append(this.ldapContext); sb.append(", timeLimit=").append(this.timeLimit); sb.append(", baseDN=").append(this.baseDN); sb.append(", query=").a... | public String toString() { StringBuffer sb = new StringBuffer(); sb.append(super.toString()); sb.append("["); sb.append("ldapContext=").append(this.ldapContext); sb.append(", timeLimit=").append(this.timeLimit); sb.append(", baseDN=").append(this.baseDN); sb.append(", query=").a... | 1,119,304 |
public URL getInfoURL() { if (info != null && info.getInfoURL() != null && source instanceof URL) { try { return new URL((URL)source, info.getInfoURL()); } catch (Exception exc) { return null; } } else { return null; } } | public URL getInfoURL() { if (info != null && info.getInfoURL() != null && source instanceof URL) { try { URL context = new URL("jar", "", source.toString() +"!/"); return new URL(context, info.getInfoURL()); } catch (Exception exc) { return null; } } else { return null; } } | 1,119,305 |
public String getRealPathToReportFile(String fileName, String extension) { IWMainApplication mainApp = getIWApplicationContext().getApplication(); String separator = FileUtil.getFileSeparator(); StringBuffer path = new StringBuffer(mainApp.getApplicationRealPath()); path.append(mainApp.getIWCacheManager()... | public String getRealPathToReportFile(String fileName, String extension) { IWMainApplication mainApp = getIWApplicationContext().getApplication(); String separator = FileUtil.getFileSeparator(); StringBuffer path = new StringBuffer(mainApp.getApplicationRealPath()); path.append(IWCacheManager.IW_ROOT_CACH... | 1,119,307 |
private String getURIToReport(String reportName, String extension) { IWMainApplication mainApp = getIWApplicationContext().getApplication(); String separator = FileUtil.getFileSeparator(); String appContextURI = mainApp.getApplicationContextURI(); StringBuffer uri = new StringBuffer(appContextURI); if(... | private String getURIToReport(String reportName, String extension) { IWMainApplication mainApp = getIWApplicationContext().getApplication(); String separator = "/"; String appContextURI = mainApp.getApplicationContextURI(); StringBuffer uri = new StringBuffer(appContextURI); if(!appContextURI.endsWith(... | 1,119,308 |
private String getURIToReport(String reportName, String extension) { IWMainApplication mainApp = getIWApplicationContext().getApplication(); String separator = FileUtil.getFileSeparator(); String appContextURI = mainApp.getApplicationContextURI(); StringBuffer uri = new StringBuffer(appContextURI); if(... | private String getURIToReport(String reportName, String extension) { IWMainApplication mainApp = getIWApplicationContext().getApplication(); String separator = FileUtil.getFileSeparator(); String appContextURI = mainApp.getApplicationContextURI(); StringBuffer uri = new StringBuffer(appContextURI); if(... | 1,119,309 |
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } /** Set the objects to null so we get new ones. */ form.initFie... | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } /** Set the objects to null so we get new ones. */ initFields(f... | 1,119,310 |
public void report(String message, Throwable e, List sections) throws IOException{ if (e.getCause() != null) { logger.error(message, e.getCause()); } logger.error(message, e); Iterator it = sections.iterator(); while(it.hasNext()) { Section section = (Section... | public void report(String message, Throwable e, List sections) throws IOException{ if (e.getCause() != null) { logger.error(message, e.getCause()); } logger.error(message, e); Iterator it = sections.iterator(); while(it.hasNext()) { Section section = (Section... | 1,119,311 |
public static AbstractNode getLessOrEqualNode(AbstractNode root, Location loc) { AbstractNode smallestSoFar = null; AbstractNode current = root; boolean greater = false; while (current != null && !greater) { if (current.getStart().compareTo(loc) <= 0) smallestSoFar = current; else greater = true; curre... | public static AbstractNode getLessOrEqualNode(AbstractNode root, Location loc) { AbstractNode smallestSoFar = null; AbstractNode current = root; boolean greater = false; while (current != null && !greater) { if (current.getStart().compareTo(loc) <= 0) smallestSoFar = current; else greater = true; curre... | 1,119,312 |
public static AbstractNode getLessOrEqualNode(AbstractNode root, Location loc) { AbstractNode smallestSoFar = null; AbstractNode current = root; boolean greater = false; while (current != null && !greater) { if (current.getStart().compareTo(loc) <= 0) smallestSoFar = current; else greater = true; curre... | public static AbstractNode getLessOrEqualNode(AbstractNode root, Location loc) { AbstractNode smallestSoFar = null; AbstractNode current = root; boolean greater = false; while (current != null && !greater) { if (current.getStart().compareTo(loc) <= 0) smallestSoFar = current; else greater = true; curre... | 1,119,313 |
public synchronized String getDateString() { Formatters fmt = getFormatters(); return fmt.shortDateFormatter.format(cal.getTime()); } | public String getDateString() { Formatters fmt = getFormatters(); return fmt.shortDateFormatter.format(cal.getTime()); } | 1,119,314 |
public synchronized String getDateString() { Formatters fmt = getFormatters(); return fmt.shortDateFormatter.format(cal.getTime()); } | public synchronized String getDateString() { Formatters fmt = getFormatters(); synchronized (fmt) { return fmt.shortDateFormatter.format(cal.getTime()); } } | 1,119,315 |
private Formatters getFormatters() { Locale loc = calInfo.getLocale(); Formatters fmt = (Formatters)formattersTbl.get(loc); if (fmt == null) { fmt = new Formatters(loc); formattersTbl.put(loc, fmt); } return fmt; } | private Formatters getFormatters() { Locale loc = calInfo.getLocale(); Formatters fmt = (Formatters)formattersTbl.get(loc); if (fmt == null) { fmt = new Formatters(loc); formattersTbl.put(loc, fmt); } return fmt; } | 1,119,316 |
public synchronized String getLongDateString() { Formatters fmt = getFormatters(); return fmt.longDateFormatter.format(cal.getTime()); } | public String getLongDateString() { Formatters fmt = getFormatters(); return fmt.longDateFormatter.format(cal.getTime()); } | 1,119,317 |
public synchronized String getLongDateString() { Formatters fmt = getFormatters(); return fmt.longDateFormatter.format(cal.getTime()); } | public synchronized String getLongDateString() { Formatters fmt = getFormatters(); synchronized (fmt) { return fmt.longDateFormatter.format(cal.getTime()); } } | 1,119,318 |
public synchronized String getMonthName() { Formatters fmt = getFormatters(); FieldPosition f = new FieldPosition(DateFormat.MONTH_FIELD); StringBuffer s = fmt.longDateFormatter.format(cal.getTime(), new StringBuffer(), f); return s.substring(f.getBeginIndex(), f.getEndIndex()); } | public String getMonthName() { Formatters fmt = getFormatters(); FieldPosition f = new FieldPosition(DateFormat.MONTH_FIELD); StringBuffer s = fmt.longDateFormatter.format(cal.getTime(), new StringBuffer(), f); return s.substring(f.getBeginIndex(), f.getEndIndex()); } | 1,119,319 |
public synchronized String getMonthName() { Formatters fmt = getFormatters(); FieldPosition f = new FieldPosition(DateFormat.MONTH_FIELD); StringBuffer s = fmt.longDateFormatter.format(cal.getTime(), new StringBuffer(), f); return s.substring(f.getBeginIndex(), f.getEndIndex()); } | public synchronized String getMonthName() { Formatters fmt = getFormatters(); FieldPosition f = new FieldPosition(DateFormat.MONTH_FIELD); StringBuffer s = fmt.longDateFormatter.format(cal.getTime(), new StringBuffer(), f); return s.substring(f.getBeginIndex(), f.getEndIndex()); } | 1,119,320 |
public synchronized String getTimeString() { Formatters fmt = getFormatters(); return fmt.shortTimeFormatter.format(cal.getTime()); } | public String getTimeString() { Formatters fmt = getFormatters(); return fmt.shortTimeFormatter.format(cal.getTime()); } | 1,119,321 |
public synchronized String getTimeString() { Formatters fmt = getFormatters(); return fmt.shortTimeFormatter.format(cal.getTime()); } | public synchronized String getTimeString() { Formatters fmt = getFormatters(); synchronized (fmt) { return fmt.shortTimeFormatter.format(cal.getTime()); } } | 1,119,322 |
private String chooseOutputFile(String extension) { final JFileChooser fc; if (lastSaveLocation != null) { fc = new JFileChooser(lastSaveLocation); } else { fc = new JFileChooser(); } String extensions[] = new String[1]; extensions[0] = extension; ... | private String chooseOutputFile(String extension) { final JFileChooser fc; if (lastSaveLocation != null) { fc = new JFileChooser(lastSaveLocation); } else { fc = new JFileChooser(); } String extensions[] = new String[1]; extensions[0] = extension; ... | 1,119,324 |
private String chooseOutputFile(String extension) { final JFileChooser fc; if (lastSaveLocation != null) { fc = new JFileChooser(lastSaveLocation); } else { fc = new JFileChooser(); } String extensions[] = new String[1]; extensions[0] = extension; ... | private String chooseOutputFile(String extension) { final JFileChooser fc; if (lastSaveLocation != null) { fc = new JFileChooser(lastSaveLocation); } else { fc = new JFileChooser(); } String extensions[] = new String[1]; extensions[0] = extension; ... | 1,119,325 |
private String chooseOutputFile(String extension) { final JFileChooser fc; if (lastSaveLocation != null) { fc = new JFileChooser(lastSaveLocation); } else { fc = new JFileChooser(); } String extensions[] = new String[1]; extensions[0] = extension; ... | private String chooseOutputFile(String extension) { final JFileChooser fc; if (lastSaveLocation != null) { fc = new JFileChooser(lastSaveLocation); } else { fc = new JFileChooser(); } String extensions[] = new String[1]; extensions[0] = extension; ... | 1,119,326 |
private String chooseOutputFile(String extension) { final JFileChooser fc; if (lastSaveLocation != null) { fc = new JFileChooser(lastSaveLocation); } else { fc = new JFileChooser(); } String extensions[] = new String[1]; extensions[0] = extension; ... | private String chooseOutputFile(String extension) { final JFileChooser fc; if (lastSaveLocation != null) { fc = new JFileChooser(lastSaveLocation); fc = new JFileChooser(); } String extensions[] = new String[1]; extensions[0] = extension; fc.se... | 1,119,327 |
private void getImagesPerPage(int numSeis){ final int numOfSeis = numSeis; final JDialog dialog = new JDialog(); dialog.getContentPane().setLayout(new BorderLayout()); dialog.setTitle("Printing Options"); dialog.setModal(true); JLabel information = new JLabel("Seismograms p... | private void getImagesPerPage(int numSeis){ final int numOfSeis = numSeis; final JDialog dialog = new JDialog(); dialog.getContentPane().setLayout(new BorderLayout()); dialog.setTitle("Printing Options"); dialog.setModal(true); JLabel information = new JLabel("Seismograms p... | 1,119,328 |
private void getImagesPerPage(int numSeis){ final int numOfSeis = numSeis; final JDialog dialog = new JDialog(); dialog.getContentPane().setLayout(new BorderLayout()); dialog.setTitle("Printing Options"); dialog.setModal(true); JLabel information = new JLabel("Seismograms p... | private void getImagesPerPage(int numSeis){ final int numOfSeis = numSeis; final JDialog dialog = new JDialog(); dialog.getContentPane().setLayout(new BorderLayout()); dialog.setTitle("Printing Options"); dialog.setModal(true); JLabel information = new JLabel("Seismograms p... | 1,119,329 |
public void actionPerformed(ActionEvent e){ int currentNumber = ((Integer)options.getSelectedItem()).intValue(); if(currentNumber < 0){ JOptionPane.showMessageDialog(null, ... | public void actionPerformed(ActionEvent e){ int currentNumber = ((Integer)options.getSelectedItem()).intValue(); if(currentNumber < 0){ JOptionPane.showMessageDialog(null, ... | 1,119,330 |
public void actionPerformed(ActionEvent e){ int currentNumber = ((Integer)options.getSelectedItem()).intValue(); if(currentNumber < 0){ JOptionPane.showMessageDialog(null, ... | public void actionPerformed(ActionEvent e){ int currentNumber = ((Integer)options.getSelectedItem()).intValue(); if(currentNumber < 0){ JOptionPane.showMessageDialog(null, ... | 1,119,331 |
protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.ProfileContentsEditPart.VISUAL_ID); view.setType(semanticHi... | protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(ProfileContentsEditPart.VISUAL_ID); view.setType(semanticHint); } super.decorateView(containerView, v... | 1,119,332 |
public BwEvent getEvent() { if (event == null) { event = new BwEventObj(); eventInfo = new EventInfo(event); } return event; } | public BwEvent getEvent() { if (event == null) { event = new BwEventObj(); eventInfo = new EventInfo(event); } return event; } | 1,119,333 |
public void setEvent(BwEvent val) { event = val; try { if (val == null) { getEventDates().setNewEvent(getEvent(), fetchSvci().getTimezones()); } else { getEventDates().setFromEvent(getEvent(), fetchSvci().getTimezones()); } } catch (Throwable t) { err.emit(t); } if (de... | public void setEvent(BwEvent val) { event = val; try { if (val == null) { getEventDates().setNewEvent(getEvent(), fetchSvci().getTimezones()); } else { getEventDates().setFromEvent(getEvent(), fetchSvci().getTimezones()); } } catch (Throwable t) { err.emit(t); } if (de... | 1,119,334 |
public Privilege(String name, String description, int index) { this(name, description, false, false, index); } | public Privilege(String name, String description, int index) { this.name = name; this.description = description; this.abstractPriv = abstractPriv; this.denial = denial; setIndex(index); } | 1,119,335 |
public void addContainedPrivilege(Privilege val) { containedPrivileges.add(val); } | void addContainedPrivilege(Privilege val) { containedPrivileges.add(val); } | 1,119,336 |
public static void main(String[] args) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); boolean verbose = false; boolean finished = false; NCFile ncFi... | public static void main(String[] args) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); boolean verbose = false; boolean finished = false; NCFile ncFi... | 1,119,337 |
public static void main(String[] args) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); boolean verbose = false; boolean finished = false; NCFile ncFi... | public static void main(String[] args) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); boolean verbose = false; boolean finished = false; NCFile ncFi... | 1,119,338 |
public static void main(String[] args) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); boolean verbose = false; boolean finished = false; NCFile ncFi... | public static void main(String[] args) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); boolean verbose = false; boolean finished = false; NCFile ncFi... | 1,119,339 |
public static void main(String[] args) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); boolean verbose = false; boolean finished = false; NCFile ncFi... | public static void main(String[] args) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); boolean verbose = false; boolean finished = false; NCFile ncFi... | 1,119,340 |
public static void main(String[] args) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); boolean verbose = false; boolean finished = false; NCFile ncFi... | public static void main(String[] args) throws FissuresException, IOException, SeedFormatException, SQLException, NotFound { BasicConfigurator.configure(); Properties props = Initializer.loadProperties(args); boolean verbose = false; boolean finished = false; NCFile ncFi... | 1,119,341 |
private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, String absoluteBas... | private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, ... | 1,119,344 |
private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, String absoluteBas... | private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, String absoluteBas... | 1,119,345 |
private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, String absoluteBas... | private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, String ... | 1,119,346 |
private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, String absoluteBas... | private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, String absoluteBas... | 1,119,347 |
private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, String absoluteBas... | private static boolean readEntireDirectory(String baseDirectory, boolean verbose, Connection conn, NCFile ncFile, String absoluteBas... | 1,119,348 |
private static boolean readSingleFile(String fileLoc, boolean verbose, Connection conn, NCFile ncFile, String absoluteBaseDirectory, ... | private static boolean readSingleFile(String fileLoc, boolean verbose, Connection conn, NCFile ncFile, JDBCSei... | 1,119,349 |
private static boolean readSingleFile(String fileLoc, boolean verbose, Connection conn, NCFile ncFile, String absoluteBaseDirectory, ... | private static boolean readSingleFile(String fileLoc, boolean verbose, Connection conn, NCFile ncFile, String absoluteBaseDirectory, ... | 1,119,350 |
private static boolean readSingleFile(String fileLoc, boolean verbose, Connection conn, NCFile ncFile, String absoluteBaseDirectory, ... | private static boolean readSingleFile(String fileLoc, boolean verbose, Connection conn, NCFile ncFile, String absoluteBaseDirectory, ... | 1,119,351 |
private static boolean readSingleFile(String fileLoc, boolean verbose, Connection conn, NCFile ncFile, String absoluteBaseDirectory, ... | private static boolean readSingleFile(String fileLoc, boolean verbose, Connection conn, NCFile ncFile, String absoluteBaseDirectory, ... | 1,119,352 |
public void saveSeismogramToDatabase(Channel channel, LocalSeismogramImpl seis, String fileLocation, SeismogramFileTypes filetype) throws SQLException { // Get absolute file path... | public void saveSeismogramToDatabase(ChannelId channelId, LocalSeismogramImpl seis, String fileLocation, SeismogramFileTypes filetype) throws SQLException { // Get absolute file ... | 1,119,353 |
public void saveSeismogramToDatabase(Channel channel, LocalSeismogramImpl seis, String fileLocation, SeismogramFileTypes filetype) throws SQLException { // Get absolute file path... | public void saveSeismogramToDatabase(Channel channel, LocalSeismogramImpl seis, String fileLocation, SeismogramFileTypes filetype) throws SQLException, IOException { int channel_id = ch... | 1,119,354 |
public void saveSeismogramToDatabase(Channel channel, LocalSeismogramImpl seis, String fileLocation, SeismogramFileTypes filetype) throws SQLException { // Get absolute file path... | public void saveSeismogramToDatabase(Channel channel, LocalSeismogramImpl seis, String fileLocation, SeismogramFileTypes filetype) throws SQLException { // Get absolute file path... | 1,119,355 |
public void initialise(String userid, CallBack cb, Object val) throws CalFacadeException { throw new CalFacadeException("Method not accessible"); } | public void initialise(String userid, CallBack cb, Object val, boolean debug) throws CalFacadeException { throw new CalFacadeException("Method not accessible"); } | 1,119,356 |
public MailerIntf getMailer() { if (mailer != null) { return mailer; } try { mailer = (MailerIntf)CalEnv.getGlobalObject("mailerclass", MailerIntf.class); mailer.init(svci, debug); } catch (Throwable t) { error(t); ... | public MailerIntf getMailer() { if (mailer != null) { return mailer; } try { mailer = (MailerIntf)CalEnvFactory.getEnv(null, debug).getGlobalObject("mailerclass", MailerIntf.class); mailer.init(svci, debug); } catch (Throwab... | 1,119,357 |
protected void ownedEntityTags(BwOwnedDbentity entity) throws Throwable { taggedEntityId(entity); taggedEntityId("owner", entity.getOwner()); taggedVal("public", entity.getPublick()); } | protected void ownedEntityTags(BwOwnedDbentity entity) throws Throwable { taggedEntityId(entity); ownerKey(entity.getOwner()); taggedVal("public", entity.getPublick()); } | 1,119,358 |
protected void ownerKey(BwPrincipal val) throws Throwable { taggedVal("owner-account", val.getAccount()); taggedVal("owner-kind", val.getKind()); } | protected void ownerKey(BwPrincipal val) throws Throwable { taggedVal("owner-account", val.getAccount()); taggedVal("owner-kind", val.getKind()); } | 1,119,359 |
public void setFreeBusy(BwFreeBusy fb) throws WebdavIntfException { try { VFreeBusy vfreeBusy = VFreeUtil.toVFreeBusy(fb); if (vfreeBusy != null) { ical = new Calendar(); ical.getComponents().add(vfreeBusy); vfreeBusyString = ical.toString(); contentLen = vfreeBusyString.lengt... | public void setFreeBusy(BwFreeBusy fb) throws WebdavIntfException { try { VFreeBusy vfreeBusy = VFreeUtil.toVFreeBusy(fb); if (vfreeBusy != null) { ical = IcalTranslator.newIcal(); ical.getComponents().add(vfreeBusy); vfreeBusyString = ical.toString(); contentLen = vfreeBusySt... | 1,119,360 |
public void open() throws Throwable { openSess(); /* This doesn't work - at least with mysql Connection conn = sess.connection(); PreparedStatement ps = null; ps = conn.prepareStatement("SET REFERENTIAL_INTEGRITY FALSE"); ps.executeUpdate(); ps.close(); ps = conn.prepareStatement("delete from ... | public void open() throws Throwable { openSess(); /* This doesn't work - at least with mysql Connection conn = sess.connection(); PreparedStatement ps = null; ps = conn.prepareStatement("SET REFERENTIAL_INTEGRITY FALSE"); ps.executeUpdate(); ps.close(); ps = conn.prepareStatement("delete from ... | 1,119,362 |
public void restoreAdminGroup(BwAdminGroup o) throws Throwable { openSess(); if (globals.from2p3px) { // No id assigned o.setId(adminGroupId); adminGroupId++; } save(o); log.debug("Saved admin group " + o); closeSess(); /* Save members. */ Collection c = o.getGroupMembers();... | public void restoreAdminGroup(BwAdminGroup o) throws Throwable { openSess(); if (globals.from2p3px) { // No id assigned o.setId(adminGroupId); adminGroupId++; } save(o); log.debug("Saved admin group " + o); closeSess(); /* Save members. */ Collection c = o.getGroupMembers();... | 1,119,363 |
public void init(CalSvcIPars parsParam) throws CalFacadeException { pars = (CalSvcIPars)parsParam.clone(); debug = pars.getDebug(); //if (userAuth != null) { // userAuth.reinitialise(getUserAuthCallBack()); //} if (userGroups != null) { userGroups.init(getGroupsCallBack()); } if (adminGr... | public void init(CalSvcIPars parsParam) throws CalFacadeException { pars = (CalSvcIPars)parsParam.clone(); debug = pars.getDebug(); //if (userAuth != null) { // userAuth.reinitialise(getUserAuthCallBack()); //} if (userGroups != null) { userGroups.init(getGroupsCallBack()); } if (adminGr... | 1,119,377 |
public void init(CalSvcIPars parsParam) throws CalFacadeException { pars = (CalSvcIPars)parsParam.clone(); debug = pars.getDebug(); //if (userAuth != null) { // userAuth.reinitialise(getUserAuthCallBack()); //} if (userGroups != null) { userGroups.init(getGroupsCallBack()); } if (adminGr... | public void init(CalSvcIPars parsParam) throws CalFacadeException { pars = (CalSvcIPars)parsParam.clone(); debug = pars.getDebug(); //if (userAuth != null) { // userAuth.reinitialise(getUserAuthCallBack()); //} if (userGroups != null) { userGroups.init(getGroupsCallBack()); } if (adminGr... | 1,119,378 |
protected void resize() { Insets insets = getInsets(); Dimension d = getSize(); displaySize = new Dimension(d.width - insets.left - insets.right, d.height - insets.top - insets.bottom); if(displaySize.height < 0 || displaySize.width < 0){ return; } timeScaleMap.setTotalPixels(displaySize.width); ampScaleMap.se... | protected void resize() { Insets insets = getInsets(); Dimension d = getSize(); displaySize = new Dimension(d.width - insets.left - insets.right, d.height - insets.top - insets.bottom); if(displaySize.height < 0 || displaySize.width < 0){ return; } timeScaleMap.setTotalPixels(displaySize.width); ampScaleMap.se... | 1,119,383 |
public ActionForward resetPkgOptions( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { DynaActionForm dynaForm = (DynaActionForm) form; String projectId = ((String) dynaForm.get(UMLBrowserFormConstant... | public ActionForward resetPkgOptions( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { DynaActionForm dynaForm = (DynaActionForm) form; String projectId = ((String) dynaForm.get(UMLBrowserFormConstant... | 1,119,384 |
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... | public Collection toVEvent(String val) throws CalFacadeException { try { CalendarBuilder bldr = new CalendarBuilder(new CalendarParserImpl()); UnfoldingReader ufrdr = new UnfoldingReader(new StringReader(val), true); Calendar cal = bldr.build(ufrdr); Vector evs = new Vector(); if (cal == null)... | 1,119,385 |
public ATObject base_setValue(ATObject newValue) throws NATException { // certain fields may not have setters if(setter_ != null) return getter_.base_apply(new NATTable(new ATObject[] { newValue })); throw new XIllegalOperation("Field " + name_.getText().asNativeText().javaValue + " cannot be set."); } | public ATObject base_setValue(ATObject newValue) throws NATException { // certain fields may not have setters if(setter_ != null) return getter_.base_apply(new NATTable(new ATObject[] { newValue })); throw new XIllegalOperation("Field " + name_.base_getText().asNativeText().javaValue + " cannot be set."); } | 1,119,386 |
public NATText meta_print() throws XTypeMismatch { return NATText.atValue("<native field:"+name_.getText().asNativeText().javaValue+">"); } | public NATText meta_print() throws XTypeMismatch { return NATText.atValue("<native field:"+name_.base_getText().asNativeText().javaValue+">"); } | 1,119,387 |
public XMLDataSetAccess(DocumentBuilder docBuilder, Element config) { this.docBuilder = docBuilder; this.config = config; } | public XMLDataSetAccess(DocumentBuilder docBuilder, Element config) { this.docBuilder = docBuilder; this.config = config; } | 1,119,388 |
public DataSetAccess getDataSet(String id) { NodeList nList = evalNodeList(config, "dataset[@datasetid="+dquote+id+dquote+"]"); if (nList != null && nList.getLength() != 0) { System.out.println("got "+nList.getLength()); Node n = nList.item(0); if (n instanceof Element) { return new XMLDataSetAcc... | public DataSetAccess getDataSet(String id) { NodeList nList = evalNodeList(config, " if (nList != null && nList.getLength() != 0) { System.out.println("got "+nList.getLength()); Node n = nList.item(0); if (n instanceof Element) { return new XMLDataSetAccess(docBuilder, (Element)n); } } // not... | 1,119,389 |
public DataSetAccess getDataSet(String id) { NodeList nList = evalNodeList(config, "dataset[@datasetid="+dquote+id+dquote+"]"); if (nList != null && nList.getLength() != 0) { System.out.println("got "+nList.getLength()); Node n = nList.item(0); if (n instanceof Element) { return new XMLDataSetAcc... | public DataSetAccess getDataSet(String id) { NodeList nList = evalNodeList(config, "dataset[@datasetid="+dquote+id+dquote+"]"); if (nList != null && nList.getLength() != 0) { Node n = nList.item(0); if (n instanceof Element) { return new XMLDataSetAccess(docBuilder, (Element)n); } } // not a... | 1,119,390 |
public String[] getDataSetIds() { return getAllAsStrings("dataset/@datasetid"); } | public String[] getDataSetIds() { return getAllAsStrings("*/@datasetid"); } | 1,119,391 |
public Element getParamter(String name) { NodeList nList = evalNodeList(config, "dataset/parameter[name/text()="+ dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { System.out.println("got "+nList.getLength()); Node n = nList.item(0); if (n instanceof Element) { ... | public Element getParamter(String name) { NodeList nList = evalNodeList(config, "dataset/parameter[name/text()="+ dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { Node n = nList.item(0); if (n instanceof Element) { return (Element)n; } } // not a paramete... | 1,119,392 |
public LocalSeismogramImpl getSeismogram(String name) { NodeList nList = evalNodeList(config, "dataset/SacSeismogram[name="+dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { try { System.out.println("got "+nList.getLength()); Node n = nList.item(0); if (n instanceof Element) { ... | public LocalSeismogramImpl getSeismogram(String name) { NodeList nList = evalNodeList(config, "SacSeismogram[name="+dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { try { System.out.println("got "+nList.getLength()); Node n = nList.item(0); if (n instanceof Element) { Elemen... | 1,119,393 |
public LocalSeismogramImpl getSeismogram(String name) { NodeList nList = evalNodeList(config, "dataset/SacSeismogram[name="+dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { try { System.out.println("got "+nList.getLength()); Node n = nList.item(0); if (n instanceof Element) { ... | public LocalSeismogramImpl getSeismogram(String name) { NodeList nList = evalNodeList(config, "dataset/SacSeismogram[name="+dquote+name+dquote+"]"); if (nList != null && nList.getLength() != 0) { try { Node n = nList.item(0); if (n instanceof Element) { Element e = (Element)n; URL sacURL = ... | 1,119,394 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.