rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public synchronized void next() throws IOException { if (!enabled) { if (isLoggedOn()) { if (!state.isLogoutSent()) { state.logEvent("Initiated logout request"); generateLogout(logoutReason); } } else { return; } }
public synchronized void next(Message message) throws FieldNotFound, RejectLogon, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType, IOException, InvalidMessage { state.setConnected(true);
public synchronized void next() throws IOException { if (!enabled) { if (isLoggedOn()) { if (!state.isLogoutSent()) { state.logEvent("Initiated logout request"); generateLogout(logoutReason); } } else { r...
if (!state.isLogonReceived()) { if (state.isLogonSendNeeded()) { if (generateLogon()) { state.logEvent("Initiated logon request");
String msgType = message.getHeader().getString(MsgType.FIELD); try { if (isStateRefreshNeeded(msgType)) { if (getStore() instanceof RefreshableMessageStore) { getLog().onEvent("Refreshing message/state store at logon"); ((RefreshableMessageStore) getStore()).refresh();
public synchronized void next() throws IOException { if (!enabled) { if (isLoggedOn()) { if (!state.isLogoutSent()) { state.logEvent("Initiated logout request"); generateLogout(logoutReason); } } else { r...
state.logEvent("Error during logon request initiation");
getLog().onEvent( "Refresh at logon requested, but message store not capable: " + getStore().getClass().getName());
public synchronized void next() throws IOException { if (!enabled) { if (isLoggedOn()) { if (!state.isLogoutSent()) { state.logEvent("Initiated logout request"); generateLogout(logoutReason); } } else { r...
} else if (state.isLogonAlreadySent() && state.isLogonTimedOut()) { state.logEvent("Timed out waiting for logon response");
} String beginString = message.getHeader().getString(BeginString.FIELD); if (!beginString.equals(sessionID.getBeginString())) { throw new UnsupportedVersion(); } if (dataDictionary != null) { dataDictionary.validate(message); } if (msgType.equals(MsgType.LOGON)) { nextLogon(message); } else if (msgType.equals(MsgTy...
public synchronized void next() throws IOException { if (!enabled) { if (isLoggedOn()) { if (!state.isLogoutSent()) { state.logEvent("Initiated logout request"); generateLogout(logoutReason); } } else { r...
return;
} catch (IOException e) { LogUtil.logThrowable(sessionID, "error processing message", e);
public synchronized void next() throws IOException { if (!enabled) { if (isLoggedOn()) { if (!state.isLogoutSent()) { state.logEvent("Initiated logout request"); generateLogout(logoutReason); } } else { r...
if (state.getHeartBeatInterval() == 0) { return; } if (state.isLogoutTimedOut()) { state.logEvent("Timed out waiting for logout response"); disconnect(); } if (state.isWithinHeartBeat()) { return; } if (state.isTimedOut()) { state.logEvent("Timed out waiting for heartbeat"); disconnect(); } else { if (state.isTestRe...
nextQueued(); if (isLoggedOn()) { next();
public synchronized void next() throws IOException { if (!enabled) { if (isLoggedOn()) { if (!state.isLogoutSent()) { state.logEvent("Initiated logout request"); generateLogout(logoutReason); } } else { r...
public String getString(String name, String defaultValue) { String result = getString(name); return (result == null) ? defaultValue : result;
public String getString(String name) { String result = (String) getProperty(name, XMLConstants.XS_STRING_QNAME); if (result == null) return null; result = result.trim(); return (result.length() == 0) ? null : result;
public String getString(String name, String defaultValue) { String result = getString(name); return (result == null) ? defaultValue : result; }
public MatrixValueI evaluate(MatrixNodeI node,MatrixJep mjep) throws ParseException
public MatrixValueI evaluate(MatrixNodeI node,MatrixJep mj) throws ParseException
public MatrixValueI evaluate(MatrixNodeI node,MatrixJep mjep) throws ParseException { this.mjep=mjep; return (MatrixValueI) node.jjtAccept(this,null); }
this.mjep=mjep;
this.mjep=mj;
public MatrixValueI evaluate(MatrixNodeI node,MatrixJep mjep) throws ParseException { this.mjep=mjep; return (MatrixValueI) node.jjtAccept(this,null); }
public void formatValue(Object val,StringBuffer sb)
public void formatValue(Object val,StringBuffer sb1)
public void formatValue(Object val,StringBuffer sb) { if(format != null) { if(val instanceof Number) format.format(val,sb,fp); else if(val instanceof Complex) { if((mode | COMPLEX_I) == COMPLEX_I) sb.append(((Complex) val).toString(format,true)); else sb.append(((Complex) val).toString(format)); } e...
format.format(val,sb,fp);
format.format(val,sb1,fp);
public void formatValue(Object val,StringBuffer sb) { if(format != null) { if(val instanceof Number) format.format(val,sb,fp); else if(val instanceof Complex) { if((mode | COMPLEX_I) == COMPLEX_I) sb.append(((Complex) val).toString(format,true)); else sb.append(((Complex) val).toString(format)); } e...
sb.append(((Complex) val).toString(format,true));
sb1.append(((Complex) val).toString(format,true));
public void formatValue(Object val,StringBuffer sb) { if(format != null) { if(val instanceof Number) format.format(val,sb,fp); else if(val instanceof Complex) { if((mode | COMPLEX_I) == COMPLEX_I) sb.append(((Complex) val).toString(format,true)); else sb.append(((Complex) val).toString(format)); } e...
sb.append(((Complex) val).toString(format));
sb1.append(((Complex) val).toString(format));
public void formatValue(Object val,StringBuffer sb) { if(format != null) { if(val instanceof Number) format.format(val,sb,fp); else if(val instanceof Complex) { if((mode | COMPLEX_I) == COMPLEX_I) sb.append(((Complex) val).toString(format,true)); else sb.append(((Complex) val).toString(format)); } e...
sb.append(val);
sb1.append(val);
public void formatValue(Object val,StringBuffer sb) { if(format != null) { if(val instanceof Number) format.format(val,sb,fp); else if(val instanceof Complex) { if((mode | COMPLEX_I) == COMPLEX_I) sb.append(((Complex) val).toString(format,true)); else sb.append(((Complex) val).toString(format)); } e...
else return true;
return true;
private boolean testRight(XOperator top,Node rhs){ if((mode & FULL_BRACKET)!= 0) { return true; } else if(rhs instanceof ASTFunNode && ((ASTFunNode) rhs).isOperator()) { XOperator rhsop = (XOperator) ((ASTFunNode) rhs).getOperator(); if(top == rhsop) { if(top.getBinding() == XOperator.RIGHT // 1=(2=3) -> 1=2=3 ...
else throw new ParseException("Bad second argument to ele, expecting a double "+param2.toString());
throw new ParseException("Bad second argument to ele, expecting a double "+param2.toString());
public void run(Stack stack) throws ParseException { checkStack(stack); // check the stack Object param1,param2; // get the parameter from the stack param2 = stack.pop(); param1 = stack.pop(); if(param1 instanceof MVector) { if(param2 instanceof Double) { Object val = ((MVector)...
public Object getEle(int i,int j)
public Object getEle(int n)
public Object getEle(int i,int j) { return data[i][j]; }
int i = n / cols; int j = n % cols;
public Object getEle(int i,int j) { return data[i][j]; }
rsp.sendRedirect(req.getContextPath()+"/nocacheImages/48x48/"+getBuildStatusUrl());
rsp.sendRedirect2(req.getContextPath()+"/nocacheImages/48x48/"+getBuildStatusUrl());
public void doBuildStatus( StaplerRequest req, StaplerResponse rsp ) throws IOException { // see Hudson.doNocacheImages. this is a work around for a bug in Firefox rsp.sendRedirect(req.getContextPath()+"/nocacheImages/48x48/"+getBuildStatusUrl()); }
req.getView(this,"dir.jsp").forward(req,rsp);
req.getView(this,"dir.jelly").forward(req,rsp);
protected final void serveFile(StaplerRequest req, StaplerResponse rsp, File root, String icon, boolean serveDirIndex) throws IOException, ServletException { if(req.getQueryString()!=null) { req.setCharacterEncoding("UTF-8"); String path = req.getParameter("path"); if(path!=n...
Node node = j.parse(str); Node proc = j.preprocess(node); Node simp = j.simplify(proc);
Node node = mj.parse(str); Node proc = mj.preprocess(node); Node simp = mj.simplify(proc);
public static void doStuff(String str) { try { Node node = j.parse(str); Node proc = j.preprocess(node); Node simp = j.simplify(proc); MRpEval rpe = new MRpEval(j); MRpCommandList list = rpe.compile(simp); MRpRes res = rpe.evaluate(list); j.print(node); // conversion to String System.out.println(...
MRpEval rpe = new MRpEval(j);
public static void doStuff(String str) { try { Node node = j.parse(str); Node proc = j.preprocess(node); Node simp = j.simplify(proc); MRpEval rpe = new MRpEval(j); MRpCommandList list = rpe.compile(simp); MRpRes res = rpe.evaluate(list); j.print(node); // conversion to String System.out.println(...
j.print(node);
mj.print(node);
public static void doStuff(String str) { try { Node node = j.parse(str); Node proc = j.preprocess(node); Node simp = j.simplify(proc); MRpEval rpe = new MRpEval(j); MRpCommandList list = rpe.compile(simp); MRpRes res = rpe.evaluate(list); j.print(node); // conversion to String System.out.println(...
j = new MatrixJep(); j.addStandardConstants(); j.addStandardFunctions(); j.addComplex(); j.setAllowUndeclared(true); j.setImplicitMul(true); j.setAllowAssignment(true);
mj = new MatrixJep(); mj.addStandardConstants(); mj.addStandardFunctions(); mj.addComplex(); mj.setAllowUndeclared(true); mj.setImplicitMul(true); mj.setAllowAssignment(true); rpe = new MRpEval(mj);
public static void main(String args[]) { j = new MatrixJep(); j.addStandardConstants(); j.addStandardFunctions(); j.addComplex(); j.setAllowUndeclared(true); j.setImplicitMul(true); j.setAllowAssignment(true); // parse and evaluate each equation in turn doStuff("[1,2,3]"); // Value: [1.0,2.0,3...
doStuff("x=[1,2,3]"); doStuff("x+x"); doStuff("x . x"); doStuff("x^x"); doStuff("y=[[1,2],[3,4]]"); doStuff("y * y");
public static void main(String args[]) { j = new MatrixJep(); j.addStandardConstants(); j.addStandardFunctions(); j.addComplex(); j.setAllowUndeclared(true); j.setImplicitMul(true); j.setAllowAssignment(true); // parse and evaluate each equation in turn doStuff("[1,2,3]"); // Value: [1.0,2.0,3...
public final MRpCommandList compile(Node node) throws ParseException
public final MRpCommandList compile(MatrixVariableI var,Node node) throws ParseException
public final MRpCommandList compile(Node node) throws ParseException { curCommandList = new MRpCommandList(); node.jjtAccept(this,null); scalerStore.alloc(); v2Store.alloc(); v3Store.alloc(); v4Store.alloc(); vnStore.alloc(); m22Store.alloc(); m23Store.alloc(); m24Store.alloc(); m32Store.alloc(); m33Store....
curCommandList = new MRpCommandList(); node.jjtAccept(this,null); scalerStore.alloc(); v2Store.alloc(); v3Store.alloc(); v4Store.alloc(); vnStore.alloc(); m22Store.alloc(); m23Store.alloc(); m24Store.alloc(); m32Store.alloc(); m33Store.alloc(); m34Store.alloc(); m42Store.alloc(); m43Store.alloc(); m44Store.alloc(); m...
MRpCommandList list = compile(node); ObjStore store = getStoreByDim(var.getDimensions()); short vRef = (short) store.addVar(var); store.decStack(); list.addCommand(ASSIGN,getDimType(var.getDimensions()),vRef); return list;
public final MRpCommandList compile(Node node) throws ParseException { curCommandList = new MRpCommandList(); node.jjtAccept(this,null); scalerStore.alloc(); v2Store.alloc(); v3Store.alloc(); v4Store.alloc(); vnStore.alloc(); m22Store.alloc(); m23Store.alloc(); m24Store.alloc(); m32Store.alloc(); m33Store....
Operator tens = ((MatrixOperatorSet) opSet).getMTensorFun();
this.parser.setInitialTokenManagerState(Parser.NO_DOT_IN_IDENTIFIERS); Operator tens = ((MatrixOperatorSet) opSet).getMList();
public MatrixJep() { super(); nf = new MatrixNodeFactory(); symTab = new DSymbolTable(mvf); opSet = new MatrixOperatorSet(); /* Operator.OP_ADD.setPFMC(new MAdd()); Operator.OP_SUBTRACT.setPFMC(new MSubtract()); Operator.OP_MULTIPLY.setPFMC(new MMultiply()); Operator.OP_POWER.setPFMC(new MPower()); Operator....
dv.addDiffRule(new PassThroughDiffRule(tens.getName(),tens.getPFMC()));
addDiffRule(new PassThroughDiffRule(tens.getName(),tens.getPFMC())); Operator cross = ((MatrixOperatorSet) opSet).getCross(); addDiffRule(new MultiplyDiffRule(cross.getName(),cross)); Operator dot = ((MatrixOperatorSet) opSet).getDot(); addDiffRule(new MultiplyDiffRule(dot.getName(),dot));
public MatrixJep() { super(); nf = new MatrixNodeFactory(); symTab = new DSymbolTable(mvf); opSet = new MatrixOperatorSet(); /* Operator.OP_ADD.setPFMC(new MAdd()); Operator.OP_SUBTRACT.setPFMC(new MSubtract()); Operator.OP_MULTIPLY.setPFMC(new MMultiply()); Operator.OP_POWER.setPFMC(new MPower()); Operator....
super.addFunction("ele",new Ele());
public void addStandardFunctions() { super.addStandardFunctions(); this.getFunctionTable().remove("if"); this.getFunctionTable().put("if",new MIf()); }
backupFile(maltsFile);
public void writeFermentables(ArrayList newIngr, boolean[] add) { File maltsFile = new File(dbPath, "malts.csv"); try { CSVWriter writer = new CSVWriter(new FileWriter(maltsFile)); writer.put("Item"); writer.put("Name"); writer.put("Yield"); writer.put("Lov"); writer.put("Cost"); writer.put("Stock"...
backupFile(hopsFile);
public void writeHops(ArrayList newIngr, boolean[] add) { if (!(newIngr.size() > 0)) return; File hopsFile = new File(dbPath, "hops.csv"); try { CSVWriter writer = new CSVWriter(new FileWriter(hopsFile)); writer.put("Item"); writer.put("Name"); writer.put("Alpha"); writer.put("Cost"); writer.put(...
backupFile(miscFile);
public void writeMisc(ArrayList newIngr, boolean[] add) { if (!(newIngr.size() > 0)) return; File miscFile = new File(dbPath, "misc_ingr.csv"); try { CSVWriter writer = new CSVWriter(new FileWriter(miscFile)); writer.put("ITEM"); writer.put("NAME"); writer.put("COST"); writer.put("DESCR"); writ...
backupFile(yeastFile);
public void writeYeast(ArrayList newIngr, boolean[] add) { if (!(newIngr.size() > 0)) return; File yeastFile = new File(dbPath, "yeast.csv"); try { CSVWriter writer = new CSVWriter(new FileWriter(yeastFile)); writer.put("Item"); writer.put("Name"); writer.put("Cost"); writer.put("Descr"); writer.p...
public Fermentable(){ setName(""); pppg = 0; lov = 0; setAmount(1.0); setUnits("pounds");
public Fermentable(String n, double p, double l, double a, String u) { setName(n); pppg = p; lov = l; setAmount(a); setUnits(u);
public Fermentable(){ // default constructor setName(""); pppg = 0; lov = 0; setAmount(1.0); setUnits("pounds"); mashed = true; // I want to get options working sometime, // but can't figure out how: // myOptions.getProperty("optMaltUnits"); }
public Partner(Entity entity, String alias, char state, boolean strong) { this.entity = entity; this.alias = alias; this.state = state; this.strong = strong;
public Partner() {
public Partner(Entity entity, String alias, char state, boolean strong) { this.entity = entity; this.alias = alias; this.state = state; this.strong = strong; }
seismograms.put(seis, ampConfig.getAmpRange(seis));
public void addSeismogram(DataSetSeismogram seis){ ampConfig.addSeismogram(seis); seismograms.put(seis, ampConfig.getAmpRange(seis)); }
seismograms.remove(seis);
public void removeSeismogram(DataSetSeismogram seis){ ampConfig.removeSeismogram(seis); seismograms.remove(seis); }
seismograms = ampConfig.getSeismograms();
public void setAmpConfig(AmpRangeConfig ampConfig){ ampConfig.removeAmpSyncListener(this); Iterator e = seismograms.keySet().iterator(); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); ampConfig.addSeismogram(current); seismograms.put(current, ampConfig.getAmpRange(current)...
userRole.setUser(new User());
userRole.setUserGroup(new UserGroup()); userRole.setUserGroup(new User());
public void testUserRole() { UserRole userRole = new UserRole(); userRole.setId(Long.MAX_VALUE); userRole.setId(Long.MIN_VALUE); userRole.setUser(new User()); userRole.setService(new Service()); userRole.setServiceExtension(""); }
userRole.setUser(new User());
userRole.setUserGroup(new UserGroup());
public void testUserRoleEquals() { UserRole copy, userRole = new UserRole(); userRole.setUser(new User()); userRole.setService(new Service()); copy = (UserRole) DomainTestSupport.minimalEqualsTest(userRole); copy.setUser(userRole.getUser()); assertFalse(userRole.equals(copy...
copy.setUser(userRole.getUser());
copy.setUserGroup(userRole.getUserGroup());
public void testUserRoleEquals() { UserRole copy, userRole = new UserRole(); userRole.setUser(new User()); userRole.setService(new Service()); copy = (UserRole) DomainTestSupport.minimalEqualsTest(userRole); copy.setUser(userRole.getUser()); assertFalse(userRole.equals(copy...
copy.setUser(null);
copy.setUserGroup(null);
public void testUserRoleEquals() { UserRole copy, userRole = new UserRole(); userRole.setUser(new User()); userRole.setService(new Service()); copy = (UserRole) DomainTestSupport.minimalEqualsTest(userRole); copy.setUser(userRole.getUser()); assertFalse(userRole.equals(copy...
public Contact(Partner partner, Credential credential, int internalNumber, int priority) { this.partner = partner; this.credential = credential; this.internalNumber = internalNumber; this.priority = priority;
public Contact() {
public Contact(Partner partner, Credential credential, int internalNumber, int priority) { this.partner = partner; this.credential = credential; this.internalNumber = internalNumber; this.priority = priority; }
public Controller(View aView) {
public Controller(View aView, Recipe aRecipe) {
public Controller(View aView) { myView = aView; aView.setController(this); }
myRecipe = aRecipe;
public Controller(View aView) { myView = aView; aView.setController(this); }
public void addStep(){ MashStep step = new MashStep(); steps.add(step);
public void addStep(String type, double st, double et, String m, int min, int rmin, double weight) { MashStep step = new MashStep(type, st, et, m, min, rmin); if (m.equals("cereal mash")) step.weightLbs = weight; steps.add(step);
public void addStep(){ MashStep step = new MashStep(); steps.add(step); calcMashSchedule(); }
return fToC(((MashStep)steps.get(i)).getStartTemp());
return BrewCalcs.fToC(((MashStep)steps.get(i)).getStartTemp());
public double getStepStartTemp(int i) { if (tempUnits.equals("C")) return fToC(((MashStep)steps.get(i)).getStartTemp()); else return ((MashStep)steps.get(i)).getStartTemp(); }
return fToC(((MashStep)steps.get(i)).getEndTemp());
return BrewCalcs.fToC(((MashStep)steps.get(i)).getEndTemp());
public double getStepEndTemp(int i) { if (tempUnits.equals("C")) return fToC(((MashStep)steps.get(i)).getEndTemp()); else return ((MashStep)steps.get(i)).getEndTemp(); }
t = cToF(t);
t = BrewCalcs.cToF(t);
public void setStepStartTemp(int i, double t){ if (tempUnits.equals("C")){ t = cToF(t); } ((MashStep)steps.get(i)).setStartTemp(t); ((MashStep)steps.get(i)).setEndTemp(t); ((MashStep)steps.get(i)).setType(calcStepType(t)); calcMashSchedule(); }
((MashStep)steps.get(i)).setEndTemp(cToF(t));
((MashStep)steps.get(i)).setEndTemp(BrewCalcs.cToF(t));
public void setStepEndTemp(int i, double t){ if (tempUnits.equals("C")) ((MashStep)steps.get(i)).setEndTemp(cToF(t)); else ((MashStep)steps.get(i)).setEndTemp(t); calcMashSchedule(); }
currentTemp = cToF(currentTemp);
currentTemp = BrewCalcs.cToF(currentTemp);
public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do...
strikeTemp = fToC(strikeTemp);
strikeTemp = BrewCalcs.fToC(strikeTemp);
public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do...
displTemp = fToC(displTemp);
displTemp = BrewCalcs.fToC(displTemp);
public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do...
strikeTemp = fToC(strikeTemp); cerealTemp = fToC(cerealTemp); targetTemp = fToC(targetTemp); cerealTargTemp = fToC(cerealTargTemp);
strikeTemp = BrewCalcs.fToC(strikeTemp); cerealTemp = BrewCalcs.fToC(cerealTemp); targetTemp = BrewCalcs.fToC(targetTemp); cerealTargTemp = BrewCalcs.fToC(cerealTargTemp);
public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do...
tempStr = SBStringUtils.format(fToC(SPARGETMPF), 1) + "C";
tempStr = SBStringUtils.format(BrewCalcs.fToC(SPARGETMPF), 1) + "C";
public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do...
public Object visit(ASTVarNode node, Object data) { String message = "Could not evaluate " + node.getName() + ": "; if (symTab == null) { message += "the symbol table is null"; addToErrorList(message); } else if (!symTab.containsKey(node.getName())) { message += "the variable was not found in the symbol table"; addTo...
public Object visit(SimpleNode node, Object data) {
public Object visit(ASTVarNode node, Object data) { String message = "Could not evaluate " + node.getName() + ": "; if (symTab == null) { message += "the symbol table is null"; addToErrorList(message); } else if (!symTab.containsKey(node.getName())) { message += "the variable was not found in the symbol table...
Map<String,String> previousRevisions = parseRevisionFile(build.getPreviousBuild());
Map<String,Integer> previousRevisions = parseRevisionFile(build.getPreviousBuild());
private boolean calcChangeLog(Build build, File changelogFile, Launcher launcher, BuildListener listener) throws IOException { if(build.getPreviousBuild()==null) { // nothing to compare against return createEmptyChangeLog(changelogFile, listener, "log"); } PrintStream logg...
String prevRev = previousRevisions.get(module);
Integer prevRev = previousRevisions.get(module);
private boolean calcChangeLog(Build build, File changelogFile, Launcher launcher, BuildListener listener) throws IOException { if(build.getPreviousBuild()==null) { // nothing to compare against return createEmptyChangeLog(changelogFile, listener, "log"); } PrintStream logg...
String cmd = DESCRIPTOR.getSvnExe()+" log -v --xml --non-interactive -r "+prevRev+":BASE "+module;
String cmd = DESCRIPTOR.getSvnExe()+" log -v --xml --non-interactive -r "+(prevRev+1)+":BASE "+module;
private boolean calcChangeLog(Build build, File changelogFile, Launcher launcher, BuildListener listener) throws IOException { if(build.getPreviousBuild()==null) { // nothing to compare against return createEmptyChangeLog(changelogFile, listener, "log"); } PrintStream logg...
static Map<String,String> parseRevisionFile(Build build) throws IOException { Map<String,String> revisions = new HashMap<String,String>();
static Map<String,Integer> parseRevisionFile(Build build) throws IOException { Map<String,Integer> revisions = new HashMap<String,Integer>();
/*package*/ static Map<String,String> parseRevisionFile(Build build) throws IOException { Map<String,String> revisions = new HashMap<String,String>(); // module -> revision {// read the revision file of the last build File file = getRevisionFile(build); if(!file.exists()) ...
revisions.put(line.substring(0,index), line.substring(index+1));
try { revisions.put(line.substring(0,index), Integer.parseInt(line.substring(index+1))); } catch (NumberFormatException e) { }
/*package*/ static Map<String,String> parseRevisionFile(Build build) throws IOException { Map<String,String> revisions = new HashMap<String,String>(); // module -> revision {// read the revision file of the last build File file = getRevisionFile(build); if(!file.exists()) ...
public Node getChild(int i)
public Node getChild()
public Node getChild(int i) { return (Node)m_children.get(i); }
return (Node)m_children.get(i);
if (getNumberChildren() == 0) return null; return getChild(0);
public Node getChild(int i) { return (Node)m_children.get(i); }
assertEquals(stat.executeUpdate("create temp table in1000 (a);"), 0);
assertEquals(stat.executeUpdate("create table in1000 (a);"), 0);
@Test public void insert1000() throws SQLException { assertEquals(stat.executeUpdate("create temp table in1000 (a);"), 0); conn.setAutoCommit(false); for (int i=0; i < 1000; i++) assertEquals(stat.executeUpdate( "insert into in1000 values ("+i+");"), 1); conn.co...
return scm.parse(changelogFile);
return scm.parse(this,changelogFile);
public ChangeLogSet getChangeSet() { if(scm==null) scm = new CVSChangeLogParser(); File changelogFile = new File(getRootDir(), "changelog.xml"); if(!changelogFile.exists()) return ChangeLogSet.EMPTY; try { return scm.parse(changelogFile); } catch (...
else if(num != num) return new Double(Double.NaN);
public Object ln(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).log(); } else if (param instanceof Number) { // Now returns Complex if param is <0 double num = ((Number) param).doubleValue(); if( num > 0) return new Double(Math.log(num)); else { C...
public Complex(double re_in) { re = re_in;
public Complex() { re = 0;
public Complex(double re_in) { re = re_in; im = 0; }
if( mychannelchooser.allchanMap.containsKey(keyStr)) { System.out.println("Found the channelID "); return (ChannelId)(mychannelchooser.allchanMap.get(keyStr)); } else { System.out.println("The channelID is not Found"); return null; }
return mychannelchooser.getChannelId(keyStr);
public ChannelId getChannelId() { String keyStr = new String(); keyStr = getNet() + "." + getStation() + "." + getSite() + "." + getChannel(); System.out.println("The key is "+keyStr); if( mychannelchooser.allchanMap.containsKey(keyStr)) { System.out.println("Found the channelID "); return (ChannelId)(mych...
debug = false;
public EvaluatorVisitor() { errorList = null; stack = new Stack(); }
log.debug("removing gateway attribute from session");
protected void doFilterInternal(final HttpServletRequest request, final HttpServletResponse response, final FilterChain filterChain) throws IOException, ServletException { final HttpSession session = request.getSession(isUseSession()); final String ticket ...
protected AbstractCasFilter(final String serverName, final String serviceUrl, final boolean useSession) { CommonUtils.assertTrue(CommonUtils.isNotBlank(serverName) || CommonUtils.isNotBlank(serviceUrl), "either serverName or serviceUrl must be set"); this.serverName = serverName; this.serviceUrl = serviceUrl; this.use...
protected AbstractCasFilter(final String serverName, final String serviceUrl) { this(serverName, serviceUrl, true);
protected AbstractCasFilter(final String serverName, final String serviceUrl, final boolean useSession) { CommonUtils.assertTrue(CommonUtils.isNotBlank(serverName) || CommonUtils.isNotBlank(serviceUrl), "either serverName or serviceUrl must be set"); this.serverName = ser...
maltTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); TableColumn col = mtcm.getColumn(0); col.setPreferredWidth(10); col = mtcm.getColumn(1); col.setPreferredWidth(10); col = mtcm.getColumn(2); col.setPreferredWidth(200); maltTable.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
private void addColumnWidthListeners() { TableColumnModel mtcm = maltTable.getColumnModel(); TableColumnModel htcm = hopsTable.getColumnModel(); //: listener that watches the width of a column PropertyChangeListener mpcl = new PropertyChangeListener() { private int columnCount = maltTable.getColumnCount(); pri...
tblMaltTotalsModel.setDataVector(new String[][]{{"Totals:",
tblMaltTotalsModel.setDataVector(new String[][]{{"", "", "Totals:",
public void displayRecipe() { if (myRecipe == null) return; txtName.setText(myRecipe.getName()); brewerNameText.setText(myRecipe.getBrewer()); txtPreBoil.setValue(new Double(myRecipe.getPreBoilVol(myRecipe.getVolUnits()))); lblSizeUnits.setText(myRecipe.getVolUnits()); postBoilText.setValue(new Double(myRecipe...
Costs, "100"}}, new String[]{"",
Costs, "100"}}, new String[]{"", "", "",
public void displayRecipe() { if (myRecipe == null) return; txtName.setText(myRecipe.getName()); brewerNameText.setText(myRecipe.getBrewer()); txtPreBoil.setValue(new Double(myRecipe.getPreBoilVol(myRecipe.getVolUnits()))); lblSizeUnits.setText(myRecipe.getVolUnits()); postBoilText.setValue(new Double(myRecipe...
TableColumn maltColumn = maltTable.getColumnModel().getColumn(0);
TableColumn maltColumn = maltTable.getColumnModel().getColumn(2);
private void initGUI() { try { // restore the saved size and location: this.setSize(preferences.getIProperty("winWidth"), preferences.getIProperty("winHeight")); this.setLocation(preferences.getIProperty("winX"), preferences.getIProperty("winY")); imgURL = getClass().getClassLoader().getResource("ca...
maltColumn = maltTable.getColumnModel().getColumn(1);
maltColumn = maltTable.getColumnModel().getColumn(3);
private void initGUI() { try { // restore the saved size and location: this.setSize(preferences.getIProperty("winWidth"), preferences.getIProperty("winHeight")); this.setLocation(preferences.getIProperty("winX"), preferences.getIProperty("winY")); imgURL = getClass().getClassLoader().getResource("ca...
maltColumn = maltTable.getColumnModel().getColumn(2);
maltColumn = maltTable.getColumnModel().getColumn(4);
private void initGUI() { try { // restore the saved size and location: this.setSize(preferences.getIProperty("winWidth"), preferences.getIProperty("winHeight")); this.setLocation(preferences.getIProperty("winX"), preferences.getIProperty("winY")); imgURL = getClass().getClassLoader().getResource("ca...
new String[]{"Malt", "Amount", "Units", "Points", "Lov",
new String[]{"S", "M", "Malt", "Amount", "Units", "Points", "Lov",
private void initGUI() { try { // restore the saved size and location: this.setSize(preferences.getIProperty("winWidth"), preferences.getIProperty("winHeight")); this.setLocation(preferences.getIProperty("winX"), preferences.getIProperty("winY")); imgURL = getClass().getClassLoader().getResource("ca...
while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) {
while (i < list.size() && !found) { if (o.getClass().getName().toString().equals("ca.strangebrew.Yeast")) {
public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun...
} else if (o.getClass().getName().toString().equals("strangebrew.Fermentable")) {
} else if (o.getClass().getName().toString().equals("ca.strangebrew.Fermentable")) {
public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun...
} else if (o.getClass().getName().toString().equals("strangebrew.Hop")) {
} else if (o.getClass().getName().toString().equals("ca.strangebrew.Hop")) {
public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun...
} else if (o.getClass().getName().toString().equals("strangebrew.Style")) {
} else if (o.getClass().getName().toString().equals("ca.strangebrew.Style")) {
public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun...
else selected = list.get(i-1);
else { selected = list.get(i-1); }
public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun...
totalMaltCost += m.getCostPerU() * m.getAmountAs("lb");
totalMaltCost += m.getCostPerU() * m.getAmountAs(m.getUnits());
public void calcMaltTotals() { double maltPoints = 0; double mcu = 0; totalMaltLbs = 0; totalMaltCost = 0; totalMashLbs = 0; // first figure out the total we're dealing with for (int i = 0; i < fermentables.size(); i++) { Fermentable m = ((Fermentable) fermentables.get(i)); totalMaltLbs += (m.getAmountAs("l...
totalHopsCost += h.getCostPerU() * h.getAmountAs("oz");
totalHopsCost += h.getCostPerU() * h.getAmountAs(h.getUnits());
public void calcHopsTotals() { double ibuTotal = 0; totalHopsCost = 0; totalHopsOz = 0; for (int i = 0; i < hops.size(); i++) { // calculate the average OG of the boil // first, the OG at the time of addition: double adjPreSize, aveOg = 0; Hop h = ((Hop) hops.get(i)); if (h.getAdd().equalsIgnoreCase("boi...
public void setStyle(Style s) { style = s;
public void setStyle(String s) { style.setName(s);
public void setStyle(Style s) { style = s; }
return "";
return colourMethod;
public String getColourMethod() { return ""; }
tunLossTxt.setText(new Double(myRecipe.mash.getTunLoss()).toString());
tunLossTxt.setText(SBStringUtils.format(myRecipe.mash.getTunLoss(), 1));
public void displayMash() { if (myRecipe != null) { recipeNameLabel.setText(myRecipe.getName()); volUnitsComboModel.addOrInsert(myRecipe.mash.getMashVolUnits()); // temp units: if (myRecipe.mash.getMashTempUnits().equals("F")) tempFrb.setSelected(true); else tempCrb.setSelected(true); grainTempULabe...
public StylePanel(StrangeSwing.SBNotifier sb) {
public StylePanel() {
public StylePanel(StrangeSwing.SBNotifier sb) { super(); sbn = sb; initGUI(); }
sbn = sb;
public StylePanel(StrangeSwing.SBNotifier sb) { super(); sbn = sb; initGUI(); }
loadRecipes(currentDir);
public FindDialog(JFrame frame) { super(frame); recipes = new ArrayList(); files = new ArrayList(); inst = (StrangeSwing) frame; currentDir = new java.io.File("."); initGUI(); dirLocationText.setText(currentDir.getAbsolutePath()); // loadRecipes(currentDir); }
return getPlottableSimple(seis, ampRange, tr, size);
return getPlottableSimpl(seis, ampRange, tr, size);
protected static int[][] compressYvalues(LocalSeismogram seismogram, MicroSecondTimeRange tr, UnitRangeImpl ampRange, Dimension size)throws UnsupportedDataEncoding { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; /*double pointsPerPixel = tr.getInterval().divideBy(seis.getSa...
else return super.umin(param1);
return super.umin(param1);
public Object umin(Object param1) throws ParseException { if(param1 instanceof MVector) return umin((MVector) param1); if(param1 instanceof Matrix) return umin((Matrix) param1); else return super.umin(param1); }
public MVector(int size) { data = new Object[size]; dim = Dimensions.valueOf(size); }
private MVector() {}
public MVector(int size) { data = new Object[size]; dim = Dimensions.valueOf(size); }
public Tensor(Tensor t) { values = new Object[t.getDim().numEles()]; this.dims = t.getDim(); }
private Tensor() {}
public Tensor(Tensor t) { values = new Object[t.getDim().numEles()]; this.dims = t.getDim(); }
((PostfixMathCommand)jep.funTab.get(identString)).getNumberOfParameters();
((PostfixMathCommandI)jep.funTab.get(identString)).getNumberOfParameters();
final public void Function() throws ParseException { int reqArguments = 0; String identString = ""; ASTFunNode jjtn001 = new ASTFunNode(JJTFUNNODE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { identString = Identifier(); if (jep....
public FissuresNamingServiceImpl (java.util.Properties props) throws org.omg.CORBA.ORBPackage.InvalidName{
public FissuresNamingServiceImpl (java.util.Properties props) throws InvalidName {
public FissuresNamingServiceImpl (java.util.Properties props) throws org.omg.CORBA.ORBPackage.InvalidName{ this.props = props; String[] args = new String[0]; try { orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props); // register valuetype factories ...
try { orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props); AllVTFactory vt = new AllVTFactory(); vt.register(orb);
public FissuresNamingServiceImpl (java.util.Properties props) throws org.omg.CORBA.ORBPackage.InvalidName{ this.props = props; String[] args = new String[0]; try { orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props); // register valuetype factories ...
org.omg.CORBA.Object rootObj = orb.resolve_initial_references("NameService"); if (rootObj == null) { logger.info("Name service object is null!"); return; } namingContext = NamingContextExtHelper.narrow(rootObj); logger.info("got Name context");
orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props);
public FissuresNamingServiceImpl (java.util.Properties props) throws org.omg.CORBA.ORBPackage.InvalidName{ this.props = props; String[] args = new String[0]; try { orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props); // register valuetype factories ...