rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if (iterator == null) { iterator = (new ArrayList(0)).iterator(); } | private void getListOfQueries(IWBundle bundle, IWResourceBundle resourceBundle) { List queryRepresentations = new ArrayList(); Iterator iterator = queryFolder.getChildren(); while (iterator.hasNext()) { ICTreeNode node = (ICTreeNode) iterator.next(); String name = node.getNodeName(); int id = node.get... | |
if (absValue > 1000 || absValue < .001) { | if (absValue < 10 && absValue != 0 ) { | public String getLabel(int i) { if (isLabelTick(i)) { double value = minTick + i * tickInc; double absValue = Math.abs(value); // use regular notation DecimalFormat df; if (absValue > 1000 || absValue < .001) { // exponential notation ... |
public LocalSeismogram apply(LocalSeismogram seis){ if(seismo.can_convert_to_float()){ | public LocalSeismogramImpl apply(LocalSeismogramImpl seis){ if(seis.can_convert_to_float()){ | public LocalSeismogram apply(LocalSeismogram seis){ if(seismo.can_convert_to_float()){ float[] fSeries = seis.get_as_floats(); return new LocalSeismogramImpl(seis, apply(fSeries)); }else{ int[] iSeries = seismo.get_as_longs(); return new LocalSeismogramImpl(seis, apply(iSeries)); } } |
int[] iSeries = seismo.get_as_longs(); | int[] iSeries = seis.get_as_longs(); | public LocalSeismogram apply(LocalSeismogram seis){ if(seismo.can_convert_to_float()){ float[] fSeries = seis.get_as_floats(); return new LocalSeismogramImpl(seis, apply(fSeries)); }else{ int[] iSeries = seismo.get_as_longs(); return new LocalSeismogramImpl(seis, apply(iSeries)); } } |
logger.debug("calling contains(double, double, double, double)"); | public boolean contains(double x, double y, double w, double h){ logger.debug("calling contains(double, double, double, double)"); return false; } | |
logger.debug("calling getBounds"); return null; } | return null; } | public Rectangle getBounds(){ logger.debug("calling getBounds"); return null; } |
public Rectangle2D getBounds2D(){ logger.debug("calling getBounds2D"); return null; } | public Rectangle2D getBounds2D(){ return null; } | public Rectangle2D getBounds2D(){ logger.debug("calling getBounds2D"); return null; } |
logger.debug("calling getPathIterator(AffineTransform)"); | public PathIterator getPathIterator(AffineTransform at){ logger.debug("calling getPathIterator(AffineTransform)"); return getPathIterator(at, 0); } | |
logger.debug("calling intersects(double, double, double, double)"); | public boolean intersects(double x, double y, double w, double h){ logger.debug("calling intersects(double, double, double, double)"); return false; } | |
if(iterator.getPointsPerPixel() <= 1){ | /*if(iterator.getPointsPerPixel() <= 1){ | public void plot(SeismogramShapeIterator iterator){ iterator.setSeisPoints(DisplayUtils.getSeisPoints(dss.getSeismogram(), iterator.getTime())); iterator.setBaseSeisPoint(); iterator.setPointsPerPixel(); if(iterator.getPointsPerPix... |
}else{ | }else{*/ | public void plot(SeismogramShapeIterator iterator){ iterator.setSeisPoints(DisplayUtils.getSeisPoints(dss.getSeismogram(), iterator.getTime())); iterator.setBaseSeisPoint(); iterator.setPointsPerPixel(); if(iterator.getPointsPerPix... |
} | public void plot(SeismogramShapeIterator iterator){ iterator.setSeisPoints(DisplayUtils.getSeisPoints(dss.getSeismogram(), iterator.getTime())); iterator.setBaseSeisPoint(); iterator.setPointsPerPixel(); if(iterator.getPointsPerPix... | |
this.events = events; | if (events == null) { this.events = new Vector(); } else { this.events = events; } | public FormattedEvents(Collection events, CalendarInfo calInfo, CalTimezones ctz) { this.events = events; this.calInfo = calInfo; this.ctz = ctz; } |
} else if (path.endsWith(".gdo")) { setResourceURL("true"); | public int doStartTag() throws JspException { if (!PortletServlet.isPortletRequest(pageContext.getRequest())) { return super.doStartTag(); } String urlStr = null; BodyContent bodyContent = pageContext.pushBody(); try { super.doStartTag(); URL url = new URL(bodyContent.getString()); ... | |
if(type == FULL.getIntValue()) { | if(type == SCAN.getIntValue()) { return SCAN; } else if(type == FULL.getIntValue()) { | public static RT130FileHandlerFlag fromInt(int type) throws UnsupportedFileTypeException { if(type == FULL.getIntValue()) { return FULL; } else if(type == NO_LOGS.getIntValue()) { return NO_LOGS; } else if(type == POP_DB_WITH_CHANNELS.getIntValue()) { ... |
} else if(type == POP_DB_WITH_CHANNELS.getIntValue()) { return POP_DB_WITH_CHANNELS; | } else if(type == MAKE_LOGS.getIntValue()) { return MAKE_LOGS; | public static RT130FileHandlerFlag fromInt(int type) throws UnsupportedFileTypeException { if(type == FULL.getIntValue()) { return FULL; } else if(type == NO_LOGS.getIntValue()) { return NO_LOGS; } else if(type == POP_DB_WITH_CHANNELS.getIntValue()) { ... |
if(modeURL.equals(FULL.getURLValue().toString())) { | if(modeURL.equals(SCAN.getURLValue().toString())) { return SCAN; } else if(modeURL.equals(FULL.getURLValue().toString())) { | public static RT130FileHandlerFlag fromString(String modeURL) throws UnsupportedFileTypeException { if(modeURL.equals(FULL.getURLValue().toString())) { return FULL; } else if(modeURL.equals(NO_LOGS.getURLValue().toString())) { return NO_LOGS; } else if(modeURL.e... |
} else if(modeURL.equals(POP_DB_WITH_CHANNELS.getURLValue().toString())) { return POP_DB_WITH_CHANNELS; | } else if(modeURL.equals(MAKE_LOGS.getURLValue().toString())) { return MAKE_LOGS; | public static RT130FileHandlerFlag fromString(String modeURL) throws UnsupportedFileTypeException { if(modeURL.equals(FULL.getURLValue().toString())) { return FULL; } else if(modeURL.equals(NO_LOGS.getURLValue().toString())) { return NO_LOGS; } else if(modeURL.e... |
commandHandled = true; if (command[0].toString().equals("SB")) { handleSB(command); } else if (command[0].toString().equals("SV")) { handleSV(command); } else if (command[0].toString().equals("LM")) { handleLM(command); } else if (command[0].toString().equals("GM")) { handleGM(command); } else if (command[0].toString(... | Integer commandInt = hashmapCommand.get(command[0].toString()); if (commandInt != null) { commandHandled = true; switch (commandInt) { case COMMAND_AT: handleAT(command); break; case COMMAND_GC: handleGC(command); break; case COMMAND_GD: handleGD(command); break; case COMMAND_GM: handleGM(command); break; case COMMAND_... | protected void processDataRead() { while (true) { Matcher matcher = pattern.matcher(dataRead); if (!matcher.find()) { break; } dataRead = dataRead.substring(matcher.end(), dataRead.length()); Object[] command = Util.commandTextToJava(matcher.group(1)); commandHandled = true; if (command[0].toSt... |
public Vector getCompFilters() { | public Collection getCompFilters() { | public Vector getCompFilters() { if (compFilters == null) { compFilters = new Vector(); } return compFilters; } |
compFilters = new Vector(); | compFilters = new ArrayList(); | public Vector getCompFilters() { if (compFilters == null) { compFilters = new Vector(); } return compFilters; } |
public Vector getPropFilters() { | public Collection getPropFilters() { | public Vector getPropFilters() { if (propFilters == null) { propFilters = new Vector(); } return propFilters; } |
propFilters = new Vector(); | propFilters = new ArrayList(); | public Vector getPropFilters() { if (propFilters == null) { propFilters = new Vector(); } return propFilters; } |
boolean containsOnlyAccessVariable = ( (calculateAccess = identifierValueMap.containsKey(DirectSQLStatement.USER_ACCESS_VARIABLE)) || (calculateAccess = identifierValueMap.containsKey(DirectSQLStatement.GROUP_ACCESS_VARIABLE)) || (calculateAccess = identifierValueMap.containsKey(DirectSQLStatement.USER_GROUP_ACCESS_VA... | boolean containsOnlyAccessVariable = containsOnlyAccessVariables(identifierValueMap); | private void showInputFieldsOrExecuteQuery(List executedSQLStatements, IWResourceBundle resourceBundle, IWContext iwc) throws RemoteException { Map identifierValueMap = query.getIdentifierValueMap(); boolean calculateAccess = false; boolean containsOnlyAccessVariable = ( (calculateAccess = identifierValueMa... |
userAuth.initialise(user, getUserAuthCallBack(), par); | userAuth.initialise(user, getUserAuthCallBack(), par, debug); | public UserAuth getUserAuth(String user, Object par) throws CalFacadeException { if (userAuth != null) { //userAuth.reinitialise(getUserAuthCallBack()); return userAuth; } try { userAuth = (UserAuth)CalFacadeUtil.getObject(getSyspars().getUserauthClass(), ... |
private BwOrganizer makeOrganizer(String uri) { BwOrganizer org = new BwOrganizer(CalFacadeDefs.unsavedItemKey, | private BwOrganizer makeOrganizer(String uri, BwUser owner) { BwOrganizer org = new BwOrganizer(owner, false, | private BwOrganizer makeOrganizer(String uri) { BwOrganizer org = new BwOrganizer(CalFacadeDefs.unsavedItemKey, null, // cn null, // dir null, // language "me@rpi.edu"... |
ev.setOrganizer(makeOrganizer(orguri1)); | ev.setOrganizer(makeOrganizer(orguri1, ev.getOwner())); | public void testCalSvcEvents() { try { svciUtil.open(privateUser1); /* Add an organizer to our event as private user 1 */ ev = getEvent(key, privateUser1); // clone it to see what happens if (ev instanceof BwEventObj) { ((BwEventObj)ev).clone(); } ev.setOrganizer(makeOrgan... |
this.setLayoutManager(new org.eclipse.gmf.internal.codegen.draw2d.GridLayout()); | org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 2; layoutThis.makeColumnsEqualWidth = true; layoutThis.horizontalSpacing = 0; layoutThis.verticalSpacing = 0; layoutThis.marginWidth = 0; layoutThis.marginHeight = 0; this.se... | public PackageFigure() { this.setLayoutManager(new org.eclipse.gmf.internal.codegen.draw2d.GridLayout()); this.setFill(false); this.setFillXOR(false); this.setOutline(false); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); createContents(); ... |
double[] coeff = getCoefficients(w); double omega = coeff[0]; double f0 = coeff[1]; double f1 = coeff[2]; for (int i=0; i < w ; i++) { data[i] = (float)(data[i] * (f0 - f1 * Math.cos(omega*i))); data[data.length-i] = (float)(data[data.length-i] * (f0 - f1 * Math.cos(omega*i))); } | double[] coeff = getCoefficients(w); double omega = coeff[0]; double f0 = coeff[1]; double f1 = coeff[2]; for (int i=0; i < w ; i++) { data[i] = (float)(data[i] * (f0 - f1 * Math.cos(omega*i))); data[data.length-i-1] = (float)(data[data.length-i] * (f0 - f1 * Math.cos(omega*i))); | public void applyInPlace(float[] data) { int w = Math.round(data.length*width); double[] coeff = getCoefficients(w); double omega = coeff[0]; double f0 = coeff[1]; double f1 = coeff[2]; for (int i=0; i < w ; i++) { data[i] = (float)(data[i] * (f0 - f1 * Math.cos(omega*i))); data[data.length-i] = (float)(... |
} | public void applyInPlace(float[] data) { int w = Math.round(data.length*width); double[] coeff = getCoefficients(w); double omega = coeff[0]; double f0 = coeff[1]; double f1 = coeff[2]; for (int i=0; i < w ; i++) { data[i] = (float)(data[i] * (f0 - f1 * Math.cos(omega*i))); data[data.length-i] = (float)(... | |
double[] out = new double[3]; if (type == HANNING) { out[0] = Math.PI/length; out[1] = .5f; out[2] = .5f; } else if (type == HANNING) { out[0] = Math.PI/length; out[1] = .54f; out[2] = .46f; } else { out[0] = Math.PI/2/length; out[1] = 1; out[2] = 1; } return out; | double[] out = new double[3]; if (type == HANNING) { out[0] = Math.PI/length; out[1] = .5f; out[2] = .5f; } else if (type == HAMMING) { out[0] = Math.PI/length; out[1] = .54f; out[2] = .46f; } else { out[0] = Math.PI/2/length; out[1] = 1; out[2] = 1; | double[] getCoefficients(int length) { double[] out = new double[3]; if (type == HANNING) { out[0] = Math.PI/length; out[1] = .5f; out[2] = .5f; } else if (type == HANNING) { out[0] = Math.PI/length; out[1] = .54f; out[2] = .46f; } else { // cosine out[0] = Math.PI/2/length; out[... |
return out; } | double[] getCoefficients(int length) { double[] out = new double[3]; if (type == HANNING) { out[0] = Math.PI/length; out[1] = .5f; out[2] = .5f; } else if (type == HANNING) { out[0] = Math.PI/length; out[1] = .54f; out[2] = .46f; } else { // cosine out[0] = Math.PI/2/length; out[... | |
int currentMode, boolean ignoreCreator, | int currentMode, | public EventProperties(Calintf cal, AccessUtil access, int currentMode, boolean ignoreCreator, String keyFieldName, String className, String refQuery, int minId, boolean de... |
super(cal, access, currentMode, ignoreCreator, debug); | super(cal, access, currentMode, debug); | public EventProperties(Calintf cal, AccessUtil access, int currentMode, boolean ignoreCreator, String keyFieldName, String className, String refQuery, int minId, boolean de... |
fieldInError = "MONTH"; | fieldInError = "DAY_OF_MONTH"; | public void setDay(String val) { try { getCal().set(Calendar.DAY_OF_MONTH, Integer.parseInt(val)); } catch (NumberFormatException e) { getCal().set(Calendar.DAY_OF_MONTH, 1); fieldInError = "MONTH"; } } |
protected double binarySum(int start, int finish) { | public double binarySum(int start, int finish) { | protected double binarySum(int start, int finish) { if (iSeries != null) { return iBinarySum(start, finish); } // end of if (iSeries != null) if (sSeries != null) { return sBinarySum(start, finish); } // end of if (sSeries != null) if (fSeries != null) { return fBinarySum(start, finish); } // end of if ... |
protected double binarySumDevLag(int start, int finish, double mean, int lag) { | public double binarySumDevLag(int start, int finish, double mean, int lag) { | protected double binarySumDevLag(int start, int finish, double mean, int lag) { if (iSeries != null) { return iBinarySumDevLag(start, finish, mean, lag); } // end of if (iSeries != null) if (sSeries != null) { return sBinarySumDevLag(start, finish, mean, lag); } // end of if (sSeries != null) if (f... |
protected double binarySumDevSqr(int start, int finish, double mean) { | public double binarySumDevSqr(int start, int finish, double mean) { | protected double binarySumDevSqr(int start, int finish, double mean) { if (iSeries != null) { return iBinarySumDevSqr(start, finish, mean); } // end of if (iSeries != null) if (sSeries != null) { return sBinarySumDevSqr(start, finish, mean); } // end of if (sSeries != null) if (fSeries != null) { return... |
minMaxMean[0] = Double.POSITIVE_INFINITY; minMaxMean[1] = Double.NEGATIVE_INFINITY; minMaxMean[2] = 0; | double[] outMinMaxMean = new double[3]; outMinMaxMean[0] = Double.POSITIVE_INFINITY; outMinMaxMean[1] = Double.NEGATIVE_INFINITY; outMinMaxMean[2] = 0; | private double[] calculateMinMaxMean(int beginIndex, int endIndex){ minMaxMean[0] = Double.POSITIVE_INFINITY; minMaxMean[1] = Double.NEGATIVE_INFINITY; minMaxMean[2] = 0; if (iSeries != null) { for (int i = beginIndex; i < endIndex; i++) { minMaxMean[0] = Math.min(minMaxMean[0], iSeries[i]); minMaxMean[1] = M... |
minMaxMean[0] = Math.min(minMaxMean[0], iSeries[i]); minMaxMean[1] = Math.max(minMaxMean[1], iSeries[i]); minMaxMean[2] += iSeries[i]; | outMinMaxMean[0] = Math.min(outMinMaxMean[0], iSeries[i]); outMinMaxMean[1] = Math.max(outMinMaxMean[1], iSeries[i]); outMinMaxMean[2] += iSeries[i]; | private double[] calculateMinMaxMean(int beginIndex, int endIndex){ minMaxMean[0] = Double.POSITIVE_INFINITY; minMaxMean[1] = Double.NEGATIVE_INFINITY; minMaxMean[2] = 0; if (iSeries != null) { for (int i = beginIndex; i < endIndex; i++) { minMaxMean[0] = Math.min(minMaxMean[0], iSeries[i]); minMaxMean[1] = M... |
minMaxMean[0] = Math.min(minMaxMean[0], sSeries[i]); minMaxMean[1] = Math.max(minMaxMean[1], sSeries[i]); minMaxMean[2] += sSeries[i]; | outMinMaxMean[0] = Math.min(outMinMaxMean[0], sSeries[i]); outMinMaxMean[1] = Math.max(outMinMaxMean[1], sSeries[i]); outMinMaxMean[2] += sSeries[i]; | private double[] calculateMinMaxMean(int beginIndex, int endIndex){ minMaxMean[0] = Double.POSITIVE_INFINITY; minMaxMean[1] = Double.NEGATIVE_INFINITY; minMaxMean[2] = 0; if (iSeries != null) { for (int i = beginIndex; i < endIndex; i++) { minMaxMean[0] = Math.min(minMaxMean[0], iSeries[i]); minMaxMean[1] = M... |
minMaxMean[0] = Math.min(minMaxMean[0], fSeries[i]); minMaxMean[1] = Math.max(minMaxMean[1], fSeries[i]); minMaxMean[2] += fSeries[i]; | outMinMaxMean[0] = Math.min(outMinMaxMean[0], fSeries[i]); outMinMaxMean[1] = Math.max(outMinMaxMean[1], fSeries[i]); outMinMaxMean[2] += fSeries[i]; | private double[] calculateMinMaxMean(int beginIndex, int endIndex){ minMaxMean[0] = Double.POSITIVE_INFINITY; minMaxMean[1] = Double.NEGATIVE_INFINITY; minMaxMean[2] = 0; if (iSeries != null) { for (int i = beginIndex; i < endIndex; i++) { minMaxMean[0] = Math.min(minMaxMean[0], iSeries[i]); minMaxMean[1] = M... |
minMaxMean[0] = Math.min(minMaxMean[0], dSeries[i]); minMaxMean[1] = Math.max(minMaxMean[1], dSeries[i]); minMaxMean[2] += dSeries[i]; | outMinMaxMean[0] = Math.min(outMinMaxMean[0], dSeries[i]); outMinMaxMean[1] = Math.max(outMinMaxMean[1], dSeries[i]); outMinMaxMean[2] += dSeries[i]; | private double[] calculateMinMaxMean(int beginIndex, int endIndex){ minMaxMean[0] = Double.POSITIVE_INFINITY; minMaxMean[1] = Double.NEGATIVE_INFINITY; minMaxMean[2] = 0; if (iSeries != null) { for (int i = beginIndex; i < endIndex; i++) { minMaxMean[0] = Math.min(minMaxMean[0], iSeries[i]); minMaxMean[1] = M... |
minMaxMean[2] /= (endIndex - beginIndex); this.beginIndex = beginIndex; this.endIndex = endIndex; minMaxMeanCalculated = true; return minMaxMean; | outMinMaxMean[2] /= (endIndex - beginIndex); return outMinMaxMean; | private double[] calculateMinMaxMean(int beginIndex, int endIndex){ minMaxMean[0] = Double.POSITIVE_INFINITY; minMaxMean[1] = Double.NEGATIVE_INFINITY; minMaxMean[2] = 0; if (iSeries != null) { for (int i = beginIndex; i < endIndex; i++) { minMaxMean[0] = Math.min(minMaxMean[0], iSeries[i]); minMaxMean[1] = M... |
public void setIndex(int val) { | private void setIndex(int val) { | public void setIndex(int val) { index = val; encoding = privEncoding[index]; } |
error("Need to implement eventrefs fixup"); | void doRestore() throws Throwable { digester = new Digester(); RegexMatcher m = new SimpleRegexMatcher(); digester.setRules(new RegexRules(m)); digester.addRuleSet(new RestoreRuleSet(globals)); digester.parse(new FileReader(filename)); if (globals.config.getFrom2p3px()) { makePrefs(); if (... | |
boolean initSyspars = false; | void getConfigProperties(String[] args) throws Throwable { /* Look for the appname arg */ if (args != null) { for (int i = 0; i < args.length; i++) { if (argpar("-appname", args, i)) { i++; appName = args[i]; } else if (args[i].equals("-initSyspars")) { globals.conf... | |
globals.config.setInitSyspars(true); | initSyspars = true; | void getConfigProperties(String[] args) throws Throwable { /* Look for the appname arg */ if (args != null) { for (int i = 0; i < args.length; i++) { if (argpar("-appname", args, i)) { i++; appName = args[i]; } else if (args[i].equals("-initSyspars")) { globals.conf... |
if (globals.config.getInitSyspars() || globals.config.getFrom2p3px()) { | if (initSyspars || globals.config.getInitSyspars() || globals.config.getFrom2p3px()) { | void getConfigProperties(String[] args) throws Throwable { /* Look for the appname arg */ if (args != null) { for (int i = 0; i < args.length; i++) { if (argpar("-appname", args, i)) { i++; appName = args[i]; } else if (args[i].equals("-initSyspars")) { globals.conf... |
public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) | public CurrentAccess evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
char[] privileges = null; | CurrentAccess ca = new CurrentAccess(); ca.desiredAccess = how; | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
privileges = ace.getHow(); | ca.privileges = ace.getHow(); | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
privileges = defaultOwnerPrivileges; | ca.privileges = defaultOwnerPrivileges; | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
debugsb.append("... For user got: " + new String(privileges)); | debugsb.append("... For user got: " + new String(ca.privileges)); | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
privileges = mergePrivileges(privileges, ace.getHow()); | ca.privileges = mergePrivileges(ca.privileges, ace.getHow()); | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
if (privileges != null) { | if (ca.privileges != null) { | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
debugsb.append("...For groups got: " + new String(privileges)); | debugsb.append("...For groups got: " + new String(ca.privileges)); | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
debugsb.append("...For other got: " + new String(privileges)); | debugsb.append("...For other got: " + new String(ca.privileges)); | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
if (privileges == null) { | if (ca.privileges == null) { | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
return false; | return ca; | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
for (int i = 0; i < how.length; i++) { char priv = privileges[how[i].getIndex()]; if (priv == unspecified) { | ca.privileges = (char[])ca.privileges.clone(); for (int pi = 0; pi < ca.privileges.length; pi++) { if (ca.privileges[pi] == unspecified) { | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
priv = allowed; | ca.privileges[pi] = allowed; | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
priv = denied; | ca.privileges[pi] = denied; | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
return true; | ca.accessAllowed = true; return ca; | public synchronized boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, char[] acl) throws AccessException { boolean authenticated = !who.getUnauthenticated(); boolean isOwner = false; char[] privileges = null; setEncoded(acl); ... |
IdeaReader reader = factory.read(new File("etc/test.opml")); rootIdea = reader.getIdea(); rootView = new IdeaView(rootIdea); | try { IdeaReader reader = factory.read(new File("etc/test.opml")); rootIdea = reader.getIdea(); rootView = new IdeaView(rootIdea); } catch(ReaderException re) { re.printStackTrace(); } | private void buildModel() { ReaderFactory factory = ReaderFactory.getInstance(); IdeaReader reader = factory.read(new File("etc/test.opml")); rootIdea = reader.getIdea(); rootView = new IdeaView(rootIdea); // rootIdea = new Idea("Persistence");// System.out.println("... |
if (timeAdded == 0) { timeAdded = System.currentTimeMillis(); | if (timeChanged == 0) { timeChanged = System.currentTimeMillis(); | private Point2D tweakIdeas(final Vector<IdeaView> views, final Point2D c, final double initAngle, final boolean hasParent) { if (views.size() == 0) { return new Point2D.Double(0.0, 0.0); } double mass = 2000.0 / (points.size() * Math.sqrt((double)points.size())); ... |
if ((now - timeAdded) < (MAX_MOVE_TIME_SECS * 1000.0)) { maxSpeed = MAX_SPEED - ((now - timeAdded) * MAX_SPEED / 1000.0 | if ((now - timeChanged) < (MAX_MOVE_TIME_SECS * 1000.0)) { maxSpeed = MAX_SPEED - ((now - timeChanged) * MAX_SPEED / 1000.0 | private Point2D tweakIdeas(final Vector<IdeaView> views, final Point2D c, final double initAngle, final boolean hasParent) { if (views.size() == 0) { return new Point2D.Double(0.0, 0.0); } double mass = 2000.0 / (points.size() * Math.sqrt((double)points.size())); ... |
parentView.remove(selected); | parentView.getIdea().remove(selected.getIdea()); | private void deleteSelected() { final IdeaView selected = this.ideaMap.getSelectedView(); if (selected == null) { return; } MapComponent parent = selected.getParent(); if (!(parent instanceof IdeaView)) { return; } IdeaView parentView = (IdeaVie... |
new DumpEvents(globals).dumpSection(di.getEventAnnotations()); | new DumpEventAnnotations(globals).dumpSection(di.getEventAnnotations()); | public void dumpSection(Iterator it) throws Throwable { tagStart(dumpTag); info("Dumping system parameters."); di.open(); new DumpSyspars(globals).dumpSection(di.getSyspars()); di.close(); info("Dumping users."); di.open(); new DumpUsers(globals).dumpSection(di.getUsers()); di.close(); i... |
if (!access.accessible(subroot, desiredAccess, nullForNoAccess)) { | CurrentAccess ca = access.checkAccess(subroot, desiredAccess, nullForNoAccess); if (!ca.accessAllowed) { | private BwCalendar cloneAndCheckOne(BwCalendar subroot, int desiredAccess, boolean nullForNoAccess) throws CalFacadeException { if (!access.accessible(subroot, desiredAccess, nullForNoAccess)) { return null; } BwCalendar cal = (BwCalendar)subroot.clone(); // XXX Temp fix - a... |
cal.setCurrentAccess(ca); | private BwCalendar cloneAndCheckOne(BwCalendar subroot, int desiredAccess, boolean nullForNoAccess) throws CalFacadeException { if (!access.accessible(subroot, desiredAccess, nullForNoAccess)) { return null; } BwCalendar cal = (BwCalendar)subroot.clone(); // XXX Temp fix - a... | |
ical = trans.toIcal(event); | ical = trans.toIcal(eventInfo.getEvent()); | public Calendar getIcal() throws WebdavIntfException { init(true); try { if (ical == null) { if (events.size() == 1) { ical = trans.toIcal(event); } else { // recurring ical = trans.toIcal(events); } } if ((veventString == null)) { veventStri... |
if ((event != null) && (vevent == null)) { Calendar ical = trans.toIcal(event); | if ((eventInfo != null) && (vevent == null)) { Calendar ical = trans.toIcal(eventInfo.getEvent()); | public Component getVevent() throws WebdavIntfException { init(true); try { if ((event != null) && (vevent == null)) { Calendar ical = trans.toIcal(event); if (events.size() == 1) { this.ical = ical; // Save doing it again } vevent = (VEvent)ical.getComponents().getComp... |
if ((event == null) && exists) { | if ((eventInfo == null) && exists) { | public void init(boolean content) throws WebdavIntfException { if (!content) { return; } try { if ((event == null) && exists) { String entityName = cdURI.getEntityName(); if (entityName == null) { return; } if (debug) { debugMsg("SEARCH: compNode retrie... |
event = (BwEvent)events.iterator().next(); | eventInfo = (EventInfo)events.iterator().next(); | public void init(boolean content) throws WebdavIntfException { if (!content) { return; } try { if ((event == null) && exists) { String entityName = cdURI.getEntityName(); if (entityName == null) { return; } if (debug) { debugMsg("SEARCH: compNode retrie... |
BwEvent ev = (BwEvent)it.next(); | EventInfo ei = (EventInfo)it.next(); | public void init(boolean content) throws WebdavIntfException { if (!content) { return; } try { if ((event == null) && exists) { String entityName = cdURI.getEntityName(); if (entityName == null) { return; } if (debug) { debugMsg("SEARCH: compNode retrie... |
if (ev.getRecurring()) { event = ev; | if (ei.getEvent().getRecurring()) { eventInfo = ei; | public void init(boolean content) throws WebdavIntfException { if (!content) { return; } try { if ((event == null) && exists) { String entityName = cdURI.getEntityName(); if (entityName == null) { return; } if (debug) { debugMsg("SEARCH: compNode retrie... |
if (event == null) { | if (eventInfo == null) { | public void init(boolean content) throws WebdavIntfException { if (!content) { return; } try { if ((event == null) && exists) { String entityName = cdURI.getEntityName(); if (entityName == null) { return; } if (debug) { debugMsg("SEARCH: compNode retrie... |
if (event != null) { | if (eventInfo != null) { BwEvent event = eventInfo.getEvent(); | public void init(boolean content) throws WebdavIntfException { if (!content) { return; } try { if ((event == null) && exists) { String entityName = cdURI.getEntityName(); if (entityName == null) { return; } if (debug) { debugMsg("SEARCH: compNode retrie... |
logger.debug(ExceptionReporterUtils.getMemoryUsage()+" after write image to file"); | public void writeMapToPNG(String filename) throws IOException { synchronized(OpenMap.class) { Projection proj = mapBean.getProjection(); int w = proj.getWidth(), h = proj.getHeight(); logger.debug(ExceptionReporterUtils.getMemoryUsage()+" before make Buf Image"); B... | |
private void generateGenericAmp(){ | protected void generateGenericAmp(){ | private void generateGenericAmp(){ // Currently, we only do "real world units" in the case of one seismogram // eventually, the overlays should if(amps.length == 0){ genericAmp = DisplayUtils.ONE_RANGE; } else if(amps.length == 1){ genericAmp = UnitDisplayUtil.getRe... |
taggedEntityId(o); | ownedEntityTags(o); | private void dumpOrganizer(BwOrganizer o) throws Throwable { tagStart(objectOrganizer); taggedEntityId(o); taggedVal("cn", o.getCn()); taggedVal("dir", o.getDir()); taggedVal("lang", o.getLanguage()); taggedVal("sent-by", o.getSentBy()); taggedVal("organizer-uri", o.getOrganizerUri()); tagEnd(... |
dtim.init(false, fldval, null, globals.getTzcache()); | dtim.init(dateType, dtVal, tzid, globals.getTzcache()); | protected BwDateTime dateTimeFld() throws Exception { if (fldval == null) { throw new Exception("No value for " + tagName); } try { BwDateTime dtim = new BwDateTime(); dtim.init(false, fldval, null, globals.getTzcache()); return dtim; } catch (Throwable t) { throw new Exception(t)... |
strCCExpire = yearExpires + monthExpires; | strCCExpire = monthExpires + yearExpires; | public String doSale(String nameOnCard, String cardnumber, String monthExpires, String yearExpires, String ccVerifyNumber, double amount, String currency, String referenceNumber) throws CreditCardAuthorizationException { try { IWTimestamp stamp = IWTimestamp.RightNow(); strName = nameOnCard; strCCNumber = cardn... |
String name; try { name = CalEnv.getGlobalProperty("system.name"); } catch (Throwable t) { throw new CalFacadeException(t); } | public BwSystem getSyspars() throws CalFacadeException { if (syspars == null) { String name; try { name = CalEnv.getGlobalProperty("system.name"); } catch (Throwable t) { throw new CalFacadeException(t); } sess.namedQuery("getSystemPars"); sess.setString("name", name); ... | |
sess.setString("name", name); | sess.setString("name", getSystemName()); | public BwSystem getSyspars() throws CalFacadeException { if (syspars == null) { String name; try { name = CalEnv.getGlobalProperty("system.name"); } catch (Throwable t) { throw new CalFacadeException(t); } sess.namedQuery("getSystemPars"); sess.setString("name", name); ... |
throw new CalFacadeException("No system parameters with name " + name); | throw new CalFacadeException("No system parameters with name " + getSystemName()); | public BwSystem getSyspars() throws CalFacadeException { if (syspars == null) { String name; try { name = CalEnv.getGlobalProperty("system.name"); } catch (Throwable t) { throw new CalFacadeException(t); } sess.namedQuery("getSystemPars"); sess.setString("name", name); ... |
public boolean init(String url, | public boolean init(String systemName, String url, | public boolean init(String url, String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException { super.init(url, authent... |
super.init(url, authenticatedUser, user, publicAdmin, | super.init(systemName, url, authenticatedUser, user, publicAdmin, | public boolean init(String url, String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException { super.init(url, authent... |
rtnValue += "edu.sc.seis.gee.configuration : "+System.getProperty("edu.sc.seis.gee.configurtation")+"\n"; | rtnValue += "edu.sc.seis.gee.configuration : "+System.getProperty("edu.sc.seis.gee.configuration")+"\n"; | public static String getSystemInformation() { String rtnValue = ""; rtnValue += "Date : "+new java.util.Date().toString()+"\n"; rtnValue += "os.name : "+System.getProperty("os.name")+"\n"; rtnValue += "os.version : "+System.getProperty("os.version")+"\n"; rtnValue += "os.arch : "+... |
if(coordinates[0] % 100 == 0){ logger.debug("x: " + coordinates[0] + " y: " + coordinates[1]); } | public int currentSegment(float[] coordinates){ int i = 0; if(min){ i = 1; currentIndex--; } min = !min; coordinates[0] = currentIndex; coordinates[1] = points[i][currentIndex]; if(at != null){ at.transform(coordinates, 0, coordinates... | |
this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); | this.setLineStyle(Graphics.LINE_SOLID); | public SolidLineWDstClosedArrow() { this.setFill(true); this.setFillXOR(false); this.setOutline(true); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); setTargetDecoration(createTargetDecoration()); } |
private org.eclipse.draw2d.RotatableDecoration createTargetDecoration() { org.eclipse.draw2d.PolygonDecoration df = new org.eclipse.draw2d.PolygonDecoration(); | private RotatableDecoration createTargetDecoration() { PolygonDecoration df = new PolygonDecoration(); | private org.eclipse.draw2d.RotatableDecoration createTargetDecoration() { org.eclipse.draw2d.PolygonDecoration df = new org.eclipse.draw2d.PolygonDecoration(); df.setFill(true); df.setFillXOR(false); df.setOutline(true); df.setOutlineXOR(false); df.setLineWidth(1); df.setLineStyle(org.eclipse.draw2d.Gra... |
df.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.draw2d.geometry.PointList pl = new org.eclipse.draw2d.geometry.PointList(); | df.setLineStyle(Graphics.LINE_SOLID); PointList pl = new PointList(); | private org.eclipse.draw2d.RotatableDecoration createTargetDecoration() { org.eclipse.draw2d.PolygonDecoration df = new org.eclipse.draw2d.PolygonDecoration(); df.setFill(true); df.setFillXOR(false); df.setOutline(true); df.setOutlineXOR(false); df.setLineWidth(1); df.setLineStyle(org.eclipse.draw2d.Gra... |
private boolean disableDoubleBuffering(Component c){ if(c instanceof JComponent == false) return false; JComponent jc = (JComponent)c; boolean wasBuffered = jc.isDoubleBuffered(); | private void disableDoubleBuffering(JComponent jc){ | private boolean disableDoubleBuffering(Component c){ if(c instanceof JComponent == false) return false; JComponent jc = (JComponent)c; boolean wasBuffered = jc.isDoubleBuffered(); jc.setDoubleBuffered(false); return wasBuffered; } |
return wasBuffered; | private boolean disableDoubleBuffering(Component c){ if(c instanceof JComponent == false) return false; JComponent jc = (JComponent)c; boolean wasBuffered = jc.isDoubleBuffered(); jc.setDoubleBuffered(false); return wasBuffered; } | |
private void restoreDoubleBuffering(Component c, boolean wasBuffered){ if(c instanceof JComponent) ((JComponent)c).setDoubleBuffered(wasBuffered); | private void restoreDoubleBuffering(JComponent jc){ jc.setDoubleBuffered(true); | private void restoreDoubleBuffering(Component c, boolean wasBuffered){ if(c instanceof JComponent) ((JComponent)c).setDoubleBuffered(wasBuffered); } |
oprops.put("xalan:indent-amount", "4"); | public void write(OutputStream out) throws Exception { DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = dfactory.newDocumentBuilder(); org.w3c.dom.Document outNode = docBuilder.newDocument(); javax.xml.transform.TransformerFactory tfact... | |
acl.decode(aclChars); acl.merge(entAccess.toCharArray()); | if (entAccess != null) { acl.decode(entAccess.toCharArray()); } acl.merge(aclChars); | private char[] getAclChars(BwShareableDbentity ent) throws CalFacadeException { if (ent instanceof BwShareableContainedDbentity) { BwCalendar container; if (ent instanceof BwCalendar) { container = (BwCalendar)ent; } else { container = ((BwShareableContainedDbentity)ent).getCalendar();... |
return acl.getEncoded(); | return acl.encodeAll(); | private char[] getAclChars(BwShareableDbentity ent) throws CalFacadeException { if (ent instanceof BwShareableContainedDbentity) { BwCalendar container; if (ent instanceof BwCalendar) { container = (BwCalendar)ent; } else { container = ((BwShareableContainedDbentity)ent).getCalendar();... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.