rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
System.out.println("link initially " + link); | public void startElement(String namespaceURI, String sName, // simple name (localName) String qName, // qualified name Attributes attrs) throws SAXException { if ("outline".equals(qName)) { if (attrs != null) { String type = attrs.getValue... | |
TimeSeriesDataSel dataSel = new TimeSeriesDataSel(); | LocalSeismogramImpl outSeis; | public LocalSeismogramImpl apply(LocalSeismogramImpl seis) { if ( begin.after(seis.getEndTime()) || end.before(seis.getBeginTime())) { return null; } // end of if () TimeInterval sampPeriod = seis.getSampling().getPeriod(); QuantityImpl beginShift = begin.subtract(seis.getBeginTime()); beginShift = beginShift.... |
dataSel.sht_values(outS); | outSeis = new LocalSeismogramImpl(seis, outS); | public LocalSeismogramImpl apply(LocalSeismogramImpl seis) { if ( begin.after(seis.getEndTime()) || end.before(seis.getBeginTime())) { return null; } // end of if () TimeInterval sampPeriod = seis.getSampling().getPeriod(); QuantityImpl beginShift = begin.subtract(seis.getBeginTime()); beginShift = beginShift.... |
dataSel.int_values(outI); | outSeis = new LocalSeismogramImpl(seis, outI); logger.debug("out num_points="+seis.num_points+" out data length="+outI.length); | public LocalSeismogramImpl apply(LocalSeismogramImpl seis) { if ( begin.after(seis.getEndTime()) || end.before(seis.getBeginTime())) { return null; } // end of if () TimeInterval sampPeriod = seis.getSampling().getPeriod(); QuantityImpl beginShift = begin.subtract(seis.getBeginTime()); beginShift = beginShift.... |
dataSel.flt_values(outF); | outSeis = new LocalSeismogramImpl(seis, outF); | public LocalSeismogramImpl apply(LocalSeismogramImpl seis) { if ( begin.after(seis.getEndTime()) || end.before(seis.getBeginTime())) { return null; } // end of if () TimeInterval sampPeriod = seis.getSampling().getPeriod(); QuantityImpl beginShift = begin.subtract(seis.getBeginTime()); beginShift = beginShift.... |
dataSel.dbl_values(outD); } | outSeis = new LocalSeismogramImpl(seis, outD); } | public LocalSeismogramImpl apply(LocalSeismogramImpl seis) { if ( begin.after(seis.getEndTime()) || end.before(seis.getBeginTime())) { return null; } // end of if () TimeInterval sampPeriod = seis.getSampling().getPeriod(); QuantityImpl beginShift = begin.subtract(seis.getBeginTime()); beginShift = beginShift.... |
return new LocalSeismogramImpl(seis, dataSel); | return outSeis; | public LocalSeismogramImpl apply(LocalSeismogramImpl seis) { if ( begin.after(seis.getEndTime()) || end.before(seis.getBeginTime())) { return null; } // end of if () TimeInterval sampPeriod = seis.getSampling().getPeriod(); QuantityImpl beginShift = begin.subtract(seis.getBeginTime()); beginShift = beginShift.... |
form.initFields(); | initFields(form); | 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 void addParameter(Element param) { config.appendChild(param); | public void addParameter(String name, Object param) { parameterCache.put(name, param); if (param instanceof Element) { config.appendChild((Element)param); } else { logger.warn("Parameter is only stored in memory."); } | public void addParameter(Element param) { config.appendChild(param); } |
public Element getParamter(String name) { | public Object getParamter(String name) { if (parameterCache.containsKey(name)) { return parameterCache.get(name); } | 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 parameter, tr... |
return sl.retrieve(); | Element e = sl.retrieve(); parameterCache.put(name, e); return e; | 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 parameter, tr... |
File outFile = new File(sacFile.getParent(), ChannelIdUtil.toString(seis.channel_id)); | String chanFileName = ChannelIdUtil.toString(seis.channel_id); chanFileName = chanFileName.replace(' ', '_'); File outFile = new File(sacFile.getParent(), chanFileName); | void loadSacFile(File sacFile) throws IOException, FissuresException { if (excludes.contains(sacFile.getName())) { return; } // end of if (excludes.contains(sacFile.getName())) if (paramRefs.containsValue(sacFile.getName())) { return; } // end of if (excludes.contains(sacFile.getName())) ... |
if (debug) { trace("------------Using calendar " + calendar.getPath()); } | private void doCalendarEntities(boolean setUser, BwCalendar calendar, boolean allCalendars) throws CalFacadeException { HibSession sess = getSess(); if (setUser) { sess.setEntity("user", getUser()); } if (calendar != null) { if (calendar.getCalendarColle... | |
if (debug) { trace("------------Using calendar " + calendar.getPath()); } | private void setCalendarEntities(BwCalendar calendar, CalTerm calTerm, boolean allCalendars) throws CalFacadeException { if (calendar.getCalendarCollection()) { if (allCalendars || (calendar.getCalType() == BwCalendar.calTypeCollection)) { // leaf calendar ... | |
res.setStatus(getStatus()); | public BwEvent makeFreeBusyEvent() { BwEvent res = new BwEvent(); res.setDtend(getDtend()); res.setDtstart(getDtstart()); res.setDuration(getDuration()); res.setEndType(getEndType()); res.setGuid(getGuid()); res.setTransparency(getTransparency()); return res; } | |
form.getErr().emit("org.bedework.client.missingfield", "name"); | form.getErr().emit("org.bedework.client.error.missingfield", "name"); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { CalSvcI svc = form.getCalSvcI(); String name = request.getParameter("name"); if (name == null) { ... |
form.getErr().emit("org.bedework.client.notfound", name); | form.getErr().emit("org.bedework.client.error.notfound", name); | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { CalSvcI svc = form.getCalSvcI(); String name = request.getParameter("name"); if (name == null) { ... |
fldval.substring(17, 19); | fldval.substring(17, 19) + "Z"; | protected String isoDateTimeFld() throws Exception { if (fldval == null) { throw new Exception("No value for " + tagName); } /** Value should be of form yyyy-MM-dd hh:mm:ss.0 or yyyy-MM-dd hh:mm:ss, convert to yyyyMMddThhmmss */ if ((fldval.length() < 21) || (fldval.charAt(4) != '-'... |
this.registrar = registrar; | public ParticleMotionDisplay(DataSetSeismogram datasetSeismogram, Registrar registrar, boolean advancedOption) { this.registrar = registrar; particleDisplayPanel = new JLayeredPane(); OverlayLayout overlayLayout = new OverlayLayout... | |
advancedOption, true, | public ParticleMotionDisplay(DataSetSeismogram datasetSeismogram, Registrar registrar, boolean advancedOption) { this.registrar = registrar; particleDisplayPanel = new JLayeredPane(); OverlayLayout overlayLayout = new OverlayLayout... | |
if(!advancedOption) { formRadioSetPanel(); } else { formCheckBoxPanel(); } setInitialButton(); | public ParticleMotionDisplay(DataSetSeismogram datasetSeismogram, Registrar registrar, boolean advancedOption) { this.registrar = registrar; particleDisplayPanel = new JLayeredPane(); OverlayLayout overlayLayout = new OverlayLayout... | |
this.registrar = registrar; boolean buttonPanel = this.displayButtonPanel; displayButtonPanel = false; | public synchronized void addParticleMotionDisplay(DataSetSeismogram datasetSeismogram, Registrar registrar) { this.registrar = registrar; boolean buttonPanel = this.displayButtonPanel; displayButtonPanel = false; ParticleMotionDisplayT... | |
false, buttonPanel, | public synchronized void addParticleMotionDisplay(DataSetSeismogram datasetSeismogram, Registrar registrar) { this.registrar = registrar; boolean buttonPanel = this.displayButtonPanel; displayButtonPanel = false; ParticleMotionDisplayT... | |
impl.setLdapContext(ldapContext); | impl.setContextSource(this.contextSource); | protected AbstractDefaultQueryPersonAttributeDao getAbstractDefaultQueryPersonAttributeDao() { final String queryAttr = "uid"; final List queryAttrList = new LinkedList(); queryAttrList.add(queryAttr); LdapPersonAttributeDaoImpl impl = new LdapPersonAttributeDaoImpl(); ... |
Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, "ldap: this.ldapContext = new InitialLdapContext(env, null); | this.contextSource = new LdapContextSource(); this.contextSource.setUrl("ldap: this.contextSource.setBase("o=yale.edu"); this.contextSource.afterPropertiesSet(); | protected void setUp() throws Exception { super.setUp(); Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, "ldap://mrfrumble.its.yale.edu:389/o=yale.edu"); this.ldapContext = new InitialLdap... |
this.ldapContext = null; | this.contextSource = null; | protected void tearDown() throws Exception { super.tearDown(); this.ldapContext = null; } |
impl.setLdapContext(ldapContext); | impl.setContextSource(this.contextSource); | public void testDefaultAttrMap() { final String queryAttr = "uid"; final List queryAttrList = new LinkedList(); queryAttrList.add(queryAttr); LdapPersonAttributeDaoImpl impl = new LdapPersonAttributeDaoImpl(); Map ldapAttribsToPortalAttribs = new HashMap(); ... |
impl.setLdapContext(ldapContext); | impl.setContextSource(this.contextSource); | public void testInsufficientAttrQuery() { final String queryAttr1 = "uid"; final String queryAttr2 = "alias"; final List queryAttrList = new LinkedList(); queryAttrList.add(queryAttr1); queryAttrList.add(queryAttr2); LdapPersonAttributeDaoImpl impl = new LdapPersonA... |
impl.setLdapContext(ldapContext); | impl.setContextSource(this.contextSource); | public void testInvalidAttrMap() { final String queryAttr = "uid"; final List queryAttrList = new LinkedList(); queryAttrList.add(queryAttr); LdapPersonAttributeDaoImpl impl = new LdapPersonAttributeDaoImpl(); Map ldapAttribsToPortalAttribs = new HashMap(); ... |
impl.setLdapContext(ldapContext); | impl.setContextSource(this.contextSource); | public void testMultiAttrQuery() { final String queryAttr1 = "uid"; final String queryAttr2 = "alias"; final List queryAttrList = new LinkedList(); queryAttrList.add(queryAttr1); queryAttrList.add(queryAttr2); LdapPersonAttributeDaoImpl impl = new LdapPersonAttribut... |
impl.setLdapContext(ldapContext); | impl.setContextSource(this.contextSource); | public void testNotFoundQuery() { final String queryAttr = "uid"; final List queryAttrList = new LinkedList(); queryAttrList.add(queryAttr); LdapPersonAttributeDaoImpl impl = new LdapPersonAttributeDaoImpl(); Map ldapAttribsToPortalAttribs = new HashMap(); l... |
impl.setLdapContext(ldapContext); | impl.setContextSource(this.contextSource); | public void testNullContext() { LdapPersonAttributeDaoImpl impl = new LdapPersonAttributeDaoImpl(); impl.setLdapContext(ldapContext); try { impl.getUserAttributes(Collections.singletonMap("dummy", "seed")); fail("IllegalStateException should have been thrown with n... |
assertNull(impl.getLdapContext()); impl.setLdapContext(ldapContext); assertEquals(ldapContext, impl.getLdapContext()); | assertNull(impl.getContextSource()); impl.setContextSource(this.contextSource); assertEquals(contextSource, impl.getContextSource()); | public void testProperties() { LdapPersonAttributeDaoImpl impl = new LdapPersonAttributeDaoImpl(); assertEquals("", impl.getBaseDN()); impl.setBaseDN("BaseDN"); assertEquals("BaseDN", impl.getBaseDN()); impl.setBaseDN(null); assertEquals("", impl.getBaseDN()); ... |
impl.setLdapContext(ldapContext); | impl.setContextSource(this.contextSource); | public void testSingleAttrQuery() { final String queryAttr = "uid"; final List queryAttrList = new LinkedList(); queryAttrList.add(queryAttr); LdapPersonAttributeDaoImpl impl = new LdapPersonAttributeDaoImpl(); Map ldapAttribsToPortalAttribs = new HashMap(); ... |
impl.setLdapContext(ldapContext); | impl.setContextSource(this.contextSource); | public void testToString() { final String queryAttr1 = "uid"; final String queryAttr2 = "alias"; final List queryAttrList = new LinkedList(); queryAttrList.add(queryAttr1); queryAttrList.add(queryAttr2); LdapPersonAttributeDaoImpl impl = new LdapPersonAttributeDaoIm... |
expected.append("[ldapContext="); expected.append(ldapContext.getClass().getName()); | expected.append("[contextSource="); expected.append(contextSource.getClass().getName()); | public void testToString() { final String queryAttr1 = "uid"; final String queryAttr2 = "alias"; final List queryAttrList = new LinkedList(); queryAttrList.add(queryAttr1); queryAttrList.add(queryAttr2); LdapPersonAttributeDaoImpl impl = new LdapPersonAttributeDaoIm... |
expected.append(Integer.toHexString(ldapContext.hashCode())); | expected.append(Integer.toHexString(contextSource.hashCode())); | public void testToString() { final String queryAttr1 = "uid"; final String queryAttr2 = "alias"; final List queryAttrList = new LinkedList(); queryAttrList.add(queryAttr1); queryAttrList.add(queryAttr2); LdapPersonAttributeDaoImpl impl = new LdapPersonAttributeDaoIm... |
if(parents.isEmpty()){ Iterator e = displays.iterator(); while(e.hasNext()){ ((BasicSeismogramDisplay)e.next()).remove(); } } | public void removeParent(BasicSeismogramDisplay disowner){ parents.remove(disowner); if(parents.isEmpty()){ Iterator e = displays.iterator(); while(e.hasNext()){ ((BasicSeismogramDisplay)e.next()).remove(); } } } | |
System.out.println(newInterval); | private void setInterval(TimeInterval newInterval){ double currentInterval = latestTime.getTime().getInterval().getValue(); System.out.println(newInterval); double scale = newInterval.getValue()/currentInterval; internalRegistrar.shaleTime(0, scale); } | |
this.setAttribute(ATTRIBUTE_IS_UNDERLINE, Boolean.toString(value)); | this.setAttribute(ATTRIBUTE_IS_UNDERLINE, String.valueOf(value)); | public void setIsUnderline(boolean value){ this.setAttribute(ATTRIBUTE_IS_UNDERLINE, Boolean.toString(value)); } |
return BwEvent.maxDescriptionLength; | try { return fetchSvci().getSyspars().getMaxPublicDescriptionLength(); } catch (Throwable t) { err.emit(t); return 0; } | public int getMaxDescriptionLength() { return BwEvent.maxDescriptionLength; } |
public JavaClosure(ATObject scope, JavaMethod meth) { super(meth, null); scope_ = scope; | public JavaClosure(ATObject scope) { this(scope, null); | public JavaClosure(ATObject scope, JavaMethod meth) { super(meth, null); scope_ = scope; } |
public String getDefaultPersonalAccess() { | public static String getDefaultPersonalAccess() { | public String getDefaultPersonalAccess() { return defaultPersonalAccess; } |
public String getDefaultPublicAccess() { | public static String getDefaultPublicAccess() { | public String getDefaultPublicAccess() { return defaultPublicAccess; } |
debugMsg(debugsb.toString() + "...Check access denied (!allowed)"); | debugsb.append("...Check access denied (!allowed) "); debugsb.append(ca.privileges); debugMsg(debugsb.toString()); | public CurrentAccess evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl, PrivilegeSet filter) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; Curr... |
/* Parse any content | public void doMethod(HttpServletRequest req, HttpServletResponse resp) throws WebdavException { if (debug) { trace("MkcolMethod: doMethod"); } /* Parse any content */ Document doc = parseContent(req, resp); /* Create the node */ String resourceUri = getResourceUri(req); ... | |
*/ | public void doMethod(HttpServletRequest req, HttpServletResponse resp) throws WebdavException { if (debug) { trace("MkcolMethod: doMethod"); } /* Parse any content */ Document doc = parseContent(req, resp); /* Create the node */ String resourceUri = getResourceUri(req); ... | |
form.getMsg().emit("org.bedework.pubevents.message.authuser.updated"); | form.getMsg().emit("org.bedework.client.message.authuser.updated"); | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getUserAuth().isSuperUser()) { return "noAccess"; } CalSvcI svci = form.getCalSvcI(); /** We are just updating ... |
logger.debug("calling getWindingRule"); | public int getWindingRule(){ return WIND_NON_ZERO; } | |
if(currentIndex % 200 == 0){ logger.debug("calling isDone"); } | public boolean isDone(){ if(currentIndex == endIndex){ return true; } return false; } | |
if(currentIndex % 200 == 0){ logger.debug("calling next()"); } | public void next(){ currentIndex++; } | |
if (seed == null) { throw new IllegalArgumentException("seed may not be null"); } | public Map getUserAttributes(final Map seed) { return new HashMap(seed); } | |
if (isDefined) { log.debug(indent + " " + "<is-defined/>\n"); | if (isNotDefined) { log.debug(indent + " " + "<is-not-defined/>\n"); | public void dump(Logger log, String indent) { StringBuffer sb = new StringBuffer(indent); sb.append("<prop-filter name=\""); sb.append(name); sb.append("\">\n"); log.debug(sb.toString()); if (isDefined) { log.debug(indent + " " + "<is-defined/>\n"); } else if (timeRange != null) { time... |
return false; } if (getIsDefined()) { return true; | return getIsNotDefined(); | public boolean filter(Component c) throws WebdavException { try { PropertyList pl = c.getProperties(); if (pl == null) { return false; } Property prop = pl.getProperty(getName()); if (prop == null) { return false; } if (getIsDefined()) { return true; } ... |
if (isDefined) { log.debug(indent + " " + "<is-defined/>\n"); | if (isNotDefined) { log.debug(indent + " " + "<is-not-defined/>\n"); | public void dump(Logger log, String indent) { StringBuffer sb = new StringBuffer(indent); sb.append("<param-filter name=\""); sb.append(name); sb.append(">\n"); log.debug(sb.toString()); if (isDefined) { log.debug(indent + " " + "<is-defined/>\n"); } else { match.dump(log, indent + " ... |
Field field = tableObj.getClass().getField(tableName+"Seq"); | Field field = tableObj.getClass().getDeclaredField(tableName+"Seq"); | public static void createSequence(String tableName, Connection conn, Object tableObj, SQLLoader statements) throws SQLException { try { Field field = tableObj.getClass().getField(tableName+"S... |
logger.info("No Sequence field named: "+tableName+"Seq found."); Field[] fields = tableObj.getClass().getDeclaredFields(); for(int i = 0; i < fields.length; i++) { logger.info("Field in "+tableName+" "+fields[i].getName()); } | public static void createSequence(String tableName, Connection conn, Object tableObj, SQLLoader statements) throws SQLException { try { Field field = tableObj.getClass().getField(tableName+"S... | |
return getNameService().resolve(getNameService().to_name(dns)); | NameComponent[] names = getNameService().to_name(dns); return getNameService().resolve(names); | public org.omg.CORBA.Object resolve(String dns, String interfacename, String objectname) throws NotFound,CannotProceed, InvalidName, org.omg.CORBA.ORBPackage.InvalidName { dns = appendKindNames(dns); if(interfacename != null && interfacename.length() != 0) dns = dns + "/" + interfacename + ".interface"... |
logger.info("NOT FOUND Exception caught while resolving dns name context and the name not found is "+nfe.rest_of_name[0].id); | logger.info("NOT FOUND Exception caught while resolving name context and the name not found is "+nfe.rest_of_name[0].id); | public org.omg.CORBA.Object resolve(String dns, String interfacename, String objectname) throws NotFound,CannotProceed, InvalidName, org.omg.CORBA.ORBPackage.InvalidName { dns = appendKindNames(dns); if(interfacename != null && interfacename.length() != 0) dns = dns + "/" + interfacename + ".interface"... |
logger.info("INVALID NAME Exception caught while resolving dns name context"); | logger.info("INVALID NAME Exception caught while resolving name context", ine); | public org.omg.CORBA.Object resolve(String dns, String interfacename, String objectname) throws NotFound,CannotProceed, InvalidName, org.omg.CORBA.ORBPackage.InvalidName { dns = appendKindNames(dns); if(interfacename != null && interfacename.length() != 0) dns = dns + "/" + interfacename + ".interface"... |
public List getAllObjects(String interfaceName, FissBranch startingBranch) { List leaves = new ArrayList(); NamingContext namingContext = startingBranch.namingContext; BindingListHolder bindings = new BindingListHolder(); BindingIteratorHolder bindingIteratorHolder = new BindingIteratorHolder(); namingContext.list(0, b... | public List getAllObjects(String interfaceName) { return getAllObjects(interfaceName, new FissBranch(getNameService(), "/")); | public List getAllObjects(String interfaceName, FissBranch startingBranch) { List leaves = new ArrayList(); NamingContext namingContext = startingBranch.namingContext; BindingListHolder bindings = new BindingListHolder(); BindingIteratorHolder bindingIteratorHolder = new BindingIteratorH... |
TimeRange fileTimeWindow) throws IOException, RT130FormatException, RT130BadPacketException { | MicroSecondTimeRange fileTimeWindow) throws IOException, RT130FormatException, RT130BadPacketException { | public void readNextPacket(DataInput in, boolean processData, TimeRange fileTimeWindow) throws IOException, RT130FormatException, RT130BadPacketException { Calendar beginTime = Calendar.getInstance(); MicroSecondDate beginDate = ne... |
MicroSecondDate beginDate = new MicroSecondDate(fileTimeWindow.start_time); | MicroSecondDate beginDate = new MicroSecondDate(fileTimeWindow.getBeginTime()); | public void readNextPacket(DataInput in, boolean processData, TimeRange fileTimeWindow) throws IOException, RT130FormatException, RT130BadPacketException { Calendar beginTime = Calendar.getInstance(); MicroSecondDate beginDate = ne... |
MicroSecondDate endDate = new MicroSecondDate(fileTimeWindow.end_time); | MicroSecondDate endDate = new MicroSecondDate(fileTimeWindow.getEndTime()); | public void readNextPacket(DataInput in, boolean processData, TimeRange fileTimeWindow) throws IOException, RT130FormatException, RT130BadPacketException { Calendar beginTime = Calendar.getInstance(); MicroSecondDate beginDate = ne... |
if(packetType.equals("DT") && (time.before(beginDate) || time.after(endDate))) { | if(packetType.equals("DT") && !fileTimeWindow.contains(time)) { | public void readNextPacket(DataInput in, boolean processData, TimeRange fileTimeWindow) throws IOException, RT130FormatException, RT130BadPacketException { Calendar beginTime = Calendar.getInstance(); MicroSecondDate beginDate = ne... |
public RT130BadPacketException(String s) { super(s); | public RT130BadPacketException() { super(); | public RT130BadPacketException(String s) { super(s); } |
form.getMsg().emit("org.bedework.client.message.sponsor.referenced"); | form.getErr().emit("org.bedework.client.error.sponsor.referenced"); | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } BwSponsor sp = form.getSponsor(); int delResult = form.getCalSvcI()... |
double scale = 2.2; | double scale = 1.8; | public OMEvent(EventAccessOperations eao) throws NoPreferredOrigin{ super(2); Origin prefOrigin = eao.get_preferred_origin(); float lat = prefOrigin.my_location.latitude; float lon = prefOrigin.my_location.longitude; float mag = prefOrigin.magnitudes[0].value; double scale = 2.2; int lilDiameter = (int)... |
if(size.height == 0) break; | public void run(){ PlotInfo currentRequirements; BasicSeismogramDisplay.ImagePainter currentPatron; int numLeft; numLeft = requests.size(); while(numLeft > 0){ synchronized(this){ currentPatron = ((BasicSeismogramDisplay.ImagePainter)requests.getFirst()); currentRequirements = ((PlotInfo)patrons.get(current... | |
System.out.println("THe channel Str is "+ ChannelIdUtil.toString(channels[j].get_id())); | public Channel[] retrieve_grouping( Channel[] channels, Channel channel) { ChannelId channelId = channel.get_id(); String givenChannelStr = channelId.channel_code; String givenPrefixStr = givenChannelStr.substring(0, givenChannelStr.length() - 1); char givenOrientation = givenChannelStr.charAt(givenChannelStr.lengt... | |
if (getReqPar(request, "user") != null) { | if (getPublicAdmin(form) && (getReqPar(request, "user") != null)) { | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { CalSvcI svc = form.fetchSvci(); BwPreferences prefs; /* Refetch the prefs */ if (getReqPar(requ... |
public void addParent(BasicSeismogramDisplay newParent){ parents.add(newParent); } | public void addParent(BasicSeismogramDisplay newParent){ if(!parents.contains(newParent)) parents.add(newParent); } | public void addParent(BasicSeismogramDisplay newParent){ parents.add(newParent); } |
setEncoded(val); | EncodedAcl ea = new EncodedAcl(); ea.setEncoded(val); | public void merge(char[] val) throws AccessException { setEncoded(val); if (empty()) { return; } while (hasMore()) { Ace ace = new Ace(); ace.decode(this, true); ace.setInherited(true); if (aces == null) { aces = new TreeSet(); aces.add(ace); } else if (!aces.co... |
if (empty()) { | if (ea.empty()) { | public void merge(char[] val) throws AccessException { setEncoded(val); if (empty()) { return; } while (hasMore()) { Ace ace = new Ace(); ace.decode(this, true); ace.setInherited(true); if (aces == null) { aces = new TreeSet(); aces.add(ace); } else if (!aces.co... |
while (hasMore()) { | while (ea.hasMore()) { | public void merge(char[] val) throws AccessException { setEncoded(val); if (empty()) { return; } while (hasMore()) { Ace ace = new Ace(); ace.decode(this, true); ace.setInherited(true); if (aces == null) { aces = new TreeSet(); aces.add(ace); } else if (!aces.co... |
ace.decode(this, true); | ace.decode(ea, true); | public void merge(char[] val) throws AccessException { setEncoded(val); if (empty()) { return; } while (hasMore()) { Ace ace = new Ace(); ace.decode(this, true); ace.setInherited(true); if (aces == null) { aces = new TreeSet(); aces.add(ace); } else if (!aces.co... |
forward = checkLogOut(request, form); | if (!isPortlet) { forward = checkLogOut(request, form); } else { forward = null; } | public ActionForward execute(ActionMapping mapping, ActionForm frm, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ErrorEmitSvlt err = null; M... |
response.setContentType(defaultContentType); | if (!isPortlet) { response.setContentType(defaultContentType); } | public ActionForward execute(ActionMapping mapping, ActionForm frm, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ErrorEmitSvlt err = null; M... |
logger = (BwLog)CalEnv.getGlobalObject("loggerclass", BwLog.class); | logger = (BwLog)CalEnvFactory.getEnv(null, false).getGlobalObject("loggerclass", BwLog.class); | public static BwLog getLogger() { BwLog logger = null; try { logger = (BwLog)CalEnv.getGlobalObject("loggerclass", BwLog.class); } catch (Throwable t) { logger = new BwLogImpl(); } return logger; } |
if(beginTime == null) | if(beginTime == null){ | public void addSeismogram(LocalSeismogram seis){ if(beginTime == null) this.beginTime = ((LocalSeismogramImpl)seis).getBeginTime(); if(displayInterval == null) this.displayInterval = new TimeInterval(((LocalSeismogramImpl)seis).getBeginTime(), ((LocalSeismogramImpl)seis).getEndTime()); seismos.put... |
seismos.put(seis, ((LocalSeismogramImpl)seis).getBeginTime()); | public void addSeismogram(LocalSeismogram seis){ if(beginTime == null) this.beginTime = ((LocalSeismogramImpl)seis).getBeginTime(); if(displayInterval == null) this.displayInterval = new TimeInterval(((LocalSeismogramImpl)seis).getBeginTime(), ((LocalSeismogramImpl)seis).getEndTime()); seismos.put... | |
public abstract MicroSecondTimeRange getTimeRange(); | public abstract MicroSecondTimeRange getTimeRange(DataSetSeismogram seis); | public abstract MicroSecondTimeRange getTimeRange(); |
if (current.getEvent().get_preferred_origin().equals(eqSelectionEvent.getEvents()[0].get_preferred_origin())){ | if (DisplayUtils.originIsEqual(current.getEvent(), eqSelectionEvent.getEvents()[0])){ | public void eqSelectionChanged(EQSelectionEvent eqSelectionEvent) { OMEvent selected = null; List deselected = new ArrayList(); synchronized(circles){ Iterator it = circles.iterator(); while (it.hasNext()){ OMEvent current = (OMEvent)it.next(); try{ if (current.getEvent().get_preferred_origin().equ... |
catch(NoPreferredOrigin e){} | catch(NoPreferredOrigin e){ e.printStackTrace(); } | public void eqSelectionChanged(EQSelectionEvent eqSelectionEvent) { OMEvent selected = null; List deselected = new ArrayList(); synchronized(circles){ Iterator it = circles.iterator(); while (it.hasNext()){ OMEvent current = (OMEvent)it.next(); try{ if (current.getEvent().get_preferred_origin().equ... |
StringBuffer buf = new StringBuffer(); ParseRegions regions = new ParseRegions(); String location = regions.getGeographicRegionName(event.get_attributes().region.number); MicroSecondDate msd = new MicroSecondDate(event.get_preferred_origin().origin_time); SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy HH:m... | fireRequestInfoLine(getEventInfo(event)); | public boolean mouseMoved(MouseEvent e){ synchronized(circles){ Iterator it = circles.iterator(); while(it.hasNext()){ OMEvent current = (OMEvent)it.next(); try{ if(current.getBigCircle().contains(e.getX(), e.getY())){ EventAccessOperations event = current.getEvent(); StringBuffer buf = new St... |
CalSvcIPars pars = new CalSvcIPars(user, access, user, | CalSvcIPars pars = new CalSvcIPars(user, user, | public CalSvcTestWrapper(String user, int access, boolean publicEvents, boolean debug) throws Throwable { super(); //this.debug = debug; isPublic = publicEvents; this.user = user; String envPrefix; if (publicEvents) { ... |
form.getErr().emit("org.bedework.error.location.referenced"); | form.getErr().emit("org.bedework.client.error.location.referenced"); | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } int id = form.getLocationId(); if (id < 0) { // Do nothing return "doNothing"; } CalSvcI svci = form.getCalSvcI(); BwLocatio... |
form.getErr().emit("org.bedework.error.nosuchlocation", id); | form.getErr().emit("org.bedework.client.error.nosuchlocation", id); | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } int id = form.getLocationId(); if (id < 0) { // Do nothing return "doNothing"; } CalSvcI svci = form.getCalSvcI(); BwLocatio... |
form.getMsg().emit("org.bedework.message.deleted.locations", 1); | form.getMsg().emit("org.bedework.client.message.deleted.locations", 1); | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { return "doNothing"; } int id = form.getLocationId(); if (id < 0) { // Do nothing return "doNothing"; } CalSvcI svci = form.getCalSvcI(); BwLocatio... |
request.setQueryString("param1=test1"); | public void testGetCurrentUrlMalformedQueryString() throws Exception { request.setScheme("http"); request.setServerName("www.example.com"); request.setServerPort(80); request.setContextPath(""); request.setServletPath("/index.jsp"); request.setQueryString("param1=test1"); URL result = RequestHelper.getCurrent... | |
request.setQueryString("param1=test1"); | public void testGetCurrentUrlMalformedQueryString() throws Exception { request.setScheme("http"); request.setServerName("www.example.com"); request.setServerPort(80); request.setContextPath(""); request.setServletPath("/index.jsp"); request.setQueryString("param1=test1"); URL result = RequestHelper.getCurrent... | |
Privilege p = findPriv(privs[privAll], acl); | Privilege p = Privilege.findPriv(privs[privAll], privs[privNone], acl); | public static PrivilegeSet fromEncoding(EncodedAcl acl) throws AccessException { char[] privStates = { unspecified, // privAll unspecified, // privRead unspecified, // privReadAcl unspecified, // privReadCurrentUserPrivilegeSet unspecified, // privReadFreeBusy unspecified, ... |
throw AccessException.badACL("unknown priv"); | throw AccessException.badACL("unknown priv " + acl.getErrorInfo()); | public static PrivilegeSet fromEncoding(EncodedAcl acl) throws AccessException { char[] privStates = { unspecified, // privAll unspecified, // privRead unspecified, // privReadAcl unspecified, // privReadCurrentUserPrivilegeSet unspecified, // privReadFreeBusy unspecified, ... |
if (debug) { debugMsg("set pos to " + pos); } | public void setPos(int val) { pos = val; } | |
Privilege p = findPriv(privs[privAll], acl); | Privilege p = Privilege.findPriv(privs[privAll], privs[privNone], acl); | public static Collection getPrivs(EncodedAcl acl) throws AccessException { ArrayList al = new ArrayList(); while (acl.hasMore()) { char c = acl.getChar(); if ((c == ' ') || (c == inheritedFlag)) { break; } acl.back(); Privilege p = findPriv(privs[privAll], acl); if (p == nul... |
int getMaxMonth() { return 12; | int getMaxMonth(int year) { return getMaxMonth(); | int getMaxMonth() { return 12; } |
MicroSecondDate halfPastFirstDay = START.add((TimeInterval)ONE_DAY.divideBy(2)); MicroSecondTimeRange halfFirstToHalfSecond = new MicroSecondTimeRange(halfPastFirstDay, ONE_DAY); PlottableChunk[] out = plottDb.get(halfFirstToHalfSecond, | TimeInterval halfDay = (TimeInterval)ONE_DAY.divideBy(2); MicroSecondDate halfPastFirstDay = START.add(halfDay); MicroSecondTimeRange halfFirstToStartSecond = new MicroSecondTimeRange(halfPastFirstDay, halfDay); PlottableChunk[] out = plottDb.get(halfFirstToStartSecond, | public void testPutTwoDaysGetOne() throws SQLException, IOException { PlottableChunk secondDay = new PlottableChunk(data.getData(), 0, 2, 2000, ... |
x[i] = (i + halfLength) / 2; | x[i] = i / 2; | public void testPutTwoDaysGetOne() throws SQLException, IOException { PlottableChunk secondDay = new PlottableChunk(data.getData(), 0, 2, 2000, ... |
PlottableChunk secondHalfFirstDay = new PlottableChunk(new Plottable(x, y), halfLength, | Plottable plott = new Plottable(x, y); PlottableChunk secondHalfFirstDay = new PlottableChunk(plott, PIXELS / 2, | public void testPutTwoDaysGetOne() throws SQLException, IOException { PlottableChunk secondDay = new PlottableChunk(data.getData(), 0, 2, 2000, ... |
org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); | GridLayout layoutThis = new GridLayout(); | public ClassFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; layoutThis.horizontalSpacing = 0; layoutThis.verticalSpacing = 0; layoutThis.marginWidth = 0;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.