bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private String checkFileType(File f){ String suff = f.getPath().substring(f.getPath().length()-3, f.getPath().length()); Debug.print(suff); if (suff.equalsIgnoreCase(".rec")) return "promash"; // let's open it up and have a peek // we'll only read 10 lines try { FileReader in = new FileReader(f); Buf...
private String checkFileType(File f){ String suff = f.getPath().substring(f.getPath().length()-3, f.getPath().length()); Debug.print(suff); if (suff.equalsIgnoreCase(".rec")) return "promash"; // let's open it up and have a peek // we'll only read 10 lines try { FileReader in = new FileReader(f); Buf...
1,116,394
public Recipe openFile(File f){ String type = checkFileType(f); Debug.print("File type: " + type); if (type.equalsIgnoreCase("")){ Debug.print("Unrecognized file"); JOptionPane.showMessageDialog( null, "The file you've tried to open isn't a recognized format. \n" + "You can open: \n" + "Str...
public Recipe openFile(File f){ String type = checkFileType(f); Debug.print("File type: " + type); if (type.equalsIgnoreCase("")){ Debug.print("Unrecognized file"); JOptionPane.showMessageDialog( null, "The file you've tried to open isn't a recognized format. \n" + "You can open: \n" + "Str...
1,116,395
public Recipe openFile(File f){ String type = checkFileType(f); Debug.print("File type: " + type); if (type.equalsIgnoreCase("")){ Debug.print("Unrecognized file"); JOptionPane.showMessageDialog( null, "The file you've tried to open isn't a recognized format. \n" + "You can open: \n" + "Str...
public Recipe openFile(File f){ String type = checkFileType(f); Debug.print("File type: " + type); if (type.equalsIgnoreCase("")){ Debug.print("Unrecognized file"); JOptionPane.showMessageDialog( null, "The file you've tried to open isn't a recognized format. \n" + "You can open: \n" + "Str...
1,116,396
public Recipe openFile(File f){ String type = checkFileType(f); Debug.print("File type: " + type); if (type.equalsIgnoreCase("")){ Debug.print("Unrecognized file"); JOptionPane.showMessageDialog( null, "The file you've tried to open isn't a recognized format. \n" + "You can open: \n" + "Str...
public Recipe openFile(File f){ String type = checkFileType(f); Debug.print("File type: " + type); if (type.equalsIgnoreCase("")){ Debug.print("Unrecognized file"); JOptionPane.showMessageDialog( null, "The file you've tried to open isn't a recognized format. \n" + "You can open: \n" + "Str...
1,116,397
public synchronized void doConfigSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException { if(!Hudson.adminCheck(req,rsp)) return; useSecurity = req.getParameter("use_security")!=null; numExecutors = Integer.parseInt(req.getParameter("numExecutors")); quietPeriod ...
public synchronized void doConfigSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException { if(!Hudson.adminCheck(req,rsp)) return; useSecurity = req.getParameter("use_security")!=null; numExecutors = Integer.parseInt(req.getParameter("numExecutors")); quietPeriod ...
1,116,398
public synchronized void doConfigSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException { if(!Hudson.adminCheck(req,rsp)) return; useSecurity = req.getParameter("use_security")!=null; numExecutors = Integer.parseInt(req.getParameter("numExecutors")); quietPeriod ...
public synchronized void doConfigSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException { if(!Hudson.adminCheck(req,rsp)) return; useSecurity = req.getParameter("use_security")!=null; numExecutors = Integer.parseInt(req.getParameter("numExecutors")); quietPeriod ...
1,116,399
Shape(String url, Point point) { this.url = url; this.point = point; }
Shape(String url, Point point, Dimension size) { this.url = url; this.point = point; }
1,116,400
public String createCriteriaAsString(IdentityFilter filter) { StringBuilder criteria = new StringBuilder(); if (!filter.getPrincipalSearch().isEmpty()) { criteria.append("lower(identity.principal) like '%") .append(filter.getPrincipalSearch().toLowerCase()) .append("%'...
public String createCriteriaAsString(IdentityFilter filter) { StringBuilder criteria = new StringBuilder(); if (!filter.getPrincipalSearch().equals("")) { criteria.append("lower(identity.principal) like '%") .append(filter.getPrincipalSearch().toLowerCase()) .append("%...
1,116,402
public String createCriteriaAsString(IdentityFilter filter) { StringBuilder criteria = new StringBuilder(); if (!filter.getPrincipalSearch().isEmpty()) { criteria.append("lower(identity.principal) like '%") .append(filter.getPrincipalSearch().toLowerCase()) .append("%'...
public String createCriteriaAsString(IdentityFilter filter) { StringBuilder criteria = new StringBuilder(); if (!filter.getPrincipalSearch().isEmpty()) { criteria.append("lower(identity.principal) like '%") .append(filter.getPrincipalSearch().toLowerCase()) .append("%'...
1,116,403
public String createCriteriaAsString(IdentityFilter filter) { StringBuilder criteria = new StringBuilder(); if (!filter.getPrincipalSearch().isEmpty()) { criteria.append("lower(identity.principal) like '%") .append(filter.getPrincipalSearch().toLowerCase()) .append("%'...
public String createCriteriaAsString(IdentityFilter filter) { StringBuilder criteria = new StringBuilder(); if (!filter.getPrincipalSearch().isEmpty()) { criteria.append("lower(identity.principal) like '%") .append(filter.getPrincipalSearch().toLowerCase()) .append("%'...
1,116,404
public String createCriteriaAsString(IdentityFilter filter) { StringBuilder criteria = new StringBuilder(); if (!filter.getPrincipalSearch().isEmpty()) { criteria.append("lower(identity.principal) like '%") .append(filter.getPrincipalSearch().toLowerCase()) .append("%'...
public String createCriteriaAsString(IdentityFilter filter) { StringBuilder criteria = new StringBuilder(); if (!filter.getPrincipalSearch().isEmpty()) { criteria.append("lower(identity.principal) like '%") .append(filter.getPrincipalSearch().toLowerCase()) .append("%'...
1,116,405
public boolean configure(HttpServletRequest req) { boolean r = true; int i; String[] names = req.getParameterValues("maven_name"); String[] homes = req.getParameterValues("maven_home"); int len; if(names!=null && homes!=null) len =...
public boolean configure(HttpServletRequest req) { boolean r = true; int i; String[] names = req.getParameterValues("maven_name"); String[] homes = req.getParameterValues("maven_home"); int len; if(names!=null && homes!=null) len =...
1,116,406
public EditType getEditType() { // see issue #73. Can't do much better right now if(revision.equals("1.1")) return EditType.ADD; if(dead) return EditType.DELETE; return EditType.EDIT; }
public EditType getEditType() { // see issue #73. Can't do much better right now if(revision.equals("1.1")) return EditType.ADD; if(dead) return EditType.DELETE; return EditType.EDIT; }
1,116,407
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); if (o == okBtn) { scaleRecipe(); setVisible(false); dispose(); } else if (o == cancelButton){ setVisible(false); dispose(); } }
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); if (o == okBtn) { scaleRecipe(); setVisible(false); dispose(); } else if (o == cancelButton) { setVisible(false); dispose(); } else if (o == cancelButton){ setVisible(false); dispose(); } }
1,116,408
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); if (o == okBtn) { scaleRecipe(); setVisible(false); dispose(); } else if (o == cancelButton){ setVisible(false); dispose(); } }
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); if (o == okBtn) { scaleRecipe(); setVisible(false); dispose(); } else if (o == cancelButton){ setVisible(false); dispose(); } }
1,116,409
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
private void initGUI() { try { jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layout.columnWidths = new int[] {7, ...
1,116,410
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
1,116,411
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
1,116,412
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
1,116,413
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
1,116,414
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
1,116,415
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
private void initGUI() { try { this.setTitle("Resize Recipe"); jPanel1 = new JPanel(); GridBagLayout jPanel1Layout = new GridBagLayout(); jPanel1Layout.rowWeights = new double[] {0.1, 0.1}; jPanel1Layout.rowHeights = new int[] {7, 7}; jPanel1Layout.columnWeights = new double[] {0.1, 0.1, 0.1}; jPanel1Layou...
1,116,416
public void run(Stack inStack) throws ParseException { checkStack(inStack);// check the stack Object param2 = inStack.pop(); Object param1 = inStack.pop(); if ((param1 instanceof Number) && (param2 instanceof Number)) { double x = ((Number)param1).doubleValue(); double y = ((Number)param2).doubleValue()...
public void run(Stack inStack) throws ParseException { checkStack(inStack);// check the stack Object param2 = inStack.pop(); Object param1 = inStack.pop(); if ((param1 instanceof Complex) && (param2 instanceof Complex)) { int r; switch (id) { case NE: r = ((Complex)param1).equals((Complex)param2,tolerance) ...
1,116,418
public void run(Stack inStack) throws ParseException { checkStack(inStack);// check the stack Object param2 = inStack.pop(); Object param1 = inStack.pop(); if ((param1 instanceof Number) && (param2 instanceof Number)) { double x = ((Number)param1).doubleValue(); double y = ((Number)param2).doubleValue()...
public void run(Stack inStack) throws ParseException { checkStack(inStack);// check the stack Object param2 = inStack.pop(); Object param1 = inStack.pop(); if ((param1 instanceof Number) && (param2 instanceof Number)) { double x = ((Number)param1).doubleValue(); double y = ((Number)param2).doubleValue()...
1,116,419
public Dimensions calcDim(Dimensions ldim,Dimensions rdim) { if(ldim.equals(rdim)) return ldim; else return null; }
public Dimensions calcDim(Dimensions ldim,Dimensions rdim) { if(ldim.equals(rdim)) return ldim; return null; }
1,116,420
public SubversionChangeLogSet parse(File changelogFile) throws IOException, SAXException { // http://svn.collab.net/repos/svn/trunk/subversion/svn/schema/ Digester digester = new Digester(); ArrayList<LogEntry> r = new ArrayList<LogEntry>(); digester.push(r); digester.addObjectCre...
public SubversionChangeLogSet parse(Build build, File changelogFile) throws IOException, SAXException { // http://svn.collab.net/repos/svn/trunk/subversion/svn/schema/ Digester digester = new Digester(); ArrayList<LogEntry> r = new ArrayList<LogEntry>(); digester.push(r); digester...
1,116,421
public SubversionChangeLogSet parse(File changelogFile) throws IOException, SAXException { // http://svn.collab.net/repos/svn/trunk/subversion/svn/schema/ Digester digester = new Digester(); ArrayList<LogEntry> r = new ArrayList<LogEntry>(); digester.push(r); digester.addObjectCre...
public SubversionChangeLogSet parse(File changelogFile) throws IOException, SAXException { // http://svn.collab.net/repos/svn/trunk/subversion/svn/schema/ Digester digester = new Digester(); ArrayList<LogEntry> r = new ArrayList<LogEntry>(); digester.push(r); digester.addObjectCre...
1,116,422
public void testGrantedAuthorities() { int i = 4, e = 3, d = 4, s = 3; List<UserRole> userRoleList = AuthorizationTestSupport.createUserRoleList(i, e, d, s); User user = userRoleList.get((int) Math.random()*userRoleList.size()).getUser(); Credential credential = AuthenticationDaoImplTest...
public void testGrantedAuthorities() { int i = 4, e = 3, d = 4, s = 3; List<UserRole> userRoleList = AuthorizationTestSupport.createUserRoleList(i, e, d, s); User user = (User) userRoleList.get((int) Math.random()*userRoleList.size()).getUserGroup(); Credential credential = Authenticatio...
1,116,423
public boolean isPositive() { try { return ((Double) value).compareTo(pc.zero) > 0; } catch(Exception e) { return false; } }
public boolean isPositive() { try { return ((Double) value).compareTo((Double) pc.zero) > 0; } catch(Exception e) { return false; } }
1,116,425
public void testDoublePut() throws NotFound, SQLException { assertEquals(table.put(TimeUtils.future.getFissuresTime()), table.put(TimeUtils.future.getFissuresTime())); }
public void testDoublePut() throws SQLException { assertEquals(table.put(TimeUtils.future.getFissuresTime()), table.put(TimeUtils.future.getFissuresTime())); }
1,116,426
public void testUserRoleFactory() { Service service = new Service(); User user = new User(); UserRole userRole = AuthorizationCreator.userRoleFactory(user, service, "EXT"); assertSame(service, userRole.getService()); assertSame(user, userRole.getUser()); assertEqual...
public void testUserRoleFactory() { Service service = new Service(); User user = new User(); UserRole userRole = AuthorizationCreator.userRoleFactory(user, service, "EXT"); assertSame(service, userRole.getService()); assertSame(user, userRole.getUserGroup()); assert...
1,116,427
public MashStep(String t, double st, double et, String tu, String m, int min, int rmin) { type = t; startTemp = st; endTemp = et; tempU = tu; method = m; minutes = min; rampMin = rmin; }
public MashStep(String t, double st, double et, String m, int min, int rmin) { type = t; startTemp = st; endTemp = et; tempU = tu; method = m; minutes = min; rampMin = rmin; }
1,116,428
public MashStep(String t, double st, double et, String tu, String m, int min, int rmin) { type = t; startTemp = st; endTemp = et; tempU = tu; method = m; minutes = min; rampMin = rmin; }
public MashStep(String t, double st, double et, String tu, String m, int min, int rmin) { type = t; startTemp = st; endTemp = et; tempU = tu; method = m; minutes = min; rampMin = rmin; }
1,116,429
public Mash(){ Options opts = new Options("mash"); mashRatio = opts.getDProperty("optMashRatio"); mashRatioU = opts.getProperty("optMashRatioU");; tempUnits = opts.getProperty("optMashTempU"); volUnits = opts.getProperty("optMashVolU"); grainTemp = opts.getDProperty("optGrainTemp"); boilTempF = opts.getDP...
public Mash(){ Options opts = new Options("mash"); mashRatio = opts.getDProperty("optMashRatio"); mashRatioU = opts.getProperty("optMashRatioU");; tempUnits = opts.getProperty("optMashTempU"); volUnits = opts.getProperty("optMashVolU"); grainTempF = opts.getDProperty("optGrainTemp"); boilTempF = opts.getD...
1,116,430
public void addStep(String type, double st, double et, String tu, String m, int min, int rmin) { MashStep step = new MashStep(type, st, et, tu, m, min, rmin); steps.add(step); calcMashSchedule(); }
public void addStep(String type, double st, double et, String m, int min, int rmin) { MashStep step = new MashStep(type, st, et, tu, m, min, rmin); steps.add(step); calcMashSchedule(); }
1,116,431
public void addStep(String type, double st, double et, String tu, String m, int min, int rmin) { MashStep step = new MashStep(type, st, et, tu, m, min, rmin); steps.add(step); calcMashSchedule(); }
public void addStep(String type, double st, double et, String tu, String m, int min, int rmin) { MashStep step = new MashStep(type, st, et, m, min, rmin); steps.add(step); calcMashSchedule(); }
1,116,432
private double cToF(double tempC) { // routine to convert Celcius to Farenheit return ((tempC * 9) / 5) + 32; }
public static double cToF(double tempC) { // routine to convert Celcius to Farenheit return ((tempC * 9) / 5) + 32; }
1,116,433
public void calcMashSchedule() { // Method to run through the mash table and calculate values double strikeTemp = 0; double targetTemp = 0; double endTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTemp; double displTemp = 0; double tunLoss = tunL...
public void calcMashSchedule() { // Method to run through the mash table and calculate values double strikeTemp = 0; double targetTemp = 0; double endTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; double tunLoss = tun...
1,116,434
private double fToC(double tempF) { // routine to convert basic F temps to C return (5 * (tempF - 32)) / 9; }
public static double fToC(double tempF) { // routine to convert basic F temps to C return (5 * (tempF - 32)) / 9; }
1,116,435
public double getGrainTemp() { return grainTemp; }
public double getGrainTemp() { if (tempUnits.equals("F")) return grainTempF; else return fToC(grainTempF); }
1,116,436
public void setGrainTemp(double t){ grainTemp = t; calcMashSchedule(); }
public void setGrainTemp(double t){ if (tempUnits.equals("F")) grainTempF = t; else grainTempF = cToF(t); calcMashSchedule(); }
1,116,437
private void initGUI() { try { this.setTitle("Malt Percent"); TableModel maltTableModel = new MaltPercentTableModel(); jPanel5 = new JPanel(); BoxLayout jPanel5Layout = new BoxLayout(jPanel5, javax.swing.BoxLayout.Y_AXIS); jPanel5.setLayout(jPanel5Layout); getContentPane().add(jPanel5, BorderLayout.CENTER);...
private void initGUI() { try { this.setTitle("Malt Percent"); TableModel maltTableModel = new MaltPercentTableModel(); jPanel5 = new JPanel(); BoxLayout jPanel5Layout = new BoxLayout(jPanel5, javax.swing.BoxLayout.Y_AXIS); jPanel5.setLayout(jPanel5Layout); getContentPane().add(jPanel5, BorderLayout.CENTER);...
1,116,439
private void initGUI() { try { this.setTitle("Malt Percent"); TableModel maltTableModel = new MaltPercentTableModel(); jPanel5 = new JPanel(); BoxLayout jPanel5Layout = new BoxLayout(jPanel5, javax.swing.BoxLayout.Y_AXIS); jPanel5.setLayout(jPanel5Layout); getContentPane().add(jPanel5, BorderLayout.CENTER);...
private void initGUI() { try { this.setTitle("Malt Percent"); TableModel maltTableModel = new MaltPercentTableModel(); jPanel5 = new JPanel(); BoxLayout jPanel5Layout = new BoxLayout(jPanel5, javax.swing.BoxLayout.Y_AXIS); jPanel5.setLayout(jPanel5Layout); getContentPane().add(jPanel5, BorderLayout.CENTER);...
1,116,440
public boolean checkout(Build build, Launcher launcher, FilePath dir, BuildListener listener, File changelogFile) throws IOException { List<String> changedFiles = null; // files that were affected by update. null this is a check out if(canUseUpdate && isUpdatable(dir.getLocal())) { changedF...
public boolean checkout(Build build, Launcher launcher, FilePath dir, BuildListener listener, File changelogFile) throws IOException { List<String> changedFiles = null; // files that were affected by update. null this is a check out if(canUseUpdate && isUpdatable(dir.getLocal())) { changedF...
1,116,441
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { OperatorSet opset = djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); Operator op = opset.getMultiply(); if(mulOp!=null) op = mulOp; int nchild = node.jjtGetNumChildren(); i...
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { OperatorSet opset = djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); Operator op = opset.getMultiply(); if(mulOp!=null) op = mulOp; int nchild = node.jjtGetNumChildren(); i...
1,116,442
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { OperatorSet opset = djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); Operator op = opset.getMultiply(); if(mulOp!=null) op = mulOp; int nchild = node.jjtGetNumChildren(); i...
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { OperatorSet opset = djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); Operator op = opset.getMultiply(); if(mulOp!=null) op = mulOp; int nchild = node.jjtGetNumChildren(); i...
1,116,443
protected void setUp() { j = new MatrixJep(); j.addStandardConstants(); j.addStandardFunctions(); j.addComplex(); //j.setTraverse(true); j.setAllowAssignment(true); j.setAllowUndeclared(true); j.setImplicitMul(true); j.dv.addStandardDiffRules(); }
protected void setUp() { j = new MatrixJep(); j.addStandardConstants(); j.addStandardFunctions(); j.addComplex(); //j.setTraverse(true); j.setAllowAssignment(true); j.setAllowUndeclared(true); j.setImplicitMul(true); j.addStandardDiffRules(); }
1,116,444
public void simplifyTest(String expr,String expected) throws ParseException { Node node = j.parse(expr); MatrixNodeI matEqn = j.dec.preprocess(node,j); Node simp = j.simplify(matEqn); String res = j.pv.toString(simp); Node node2 = j.parse(expected); MatrixNodeI matEqn2 = j.dec.preprocess(node2,j); Node simp2 ...
public void simplifyTest(String expr,String expected) throws ParseException { Node node = j.parse(expr); MatrixNodeI matEqn = j.dec.preprocess(node,j); Node simp = j.simplify(matEqn); String res = j.toString(simp); Node node2 = j.parse(expected); MatrixNodeI matEqn2 = j.dec.preprocess(node2,j); Node simp2 = j...
1,116,445
public void simplifyTest(String expr,String expected) throws ParseException { Node node = j.parse(expr); MatrixNodeI matEqn = j.dec.preprocess(node,j); Node simp = j.simplify(matEqn); String res = j.pv.toString(simp); Node node2 = j.parse(expected); MatrixNodeI matEqn2 = j.dec.preprocess(node2,j); Node simp2 ...
public void simplifyTest(String expr,String expected) throws ParseException { Node node = j.parse(expr); MatrixNodeI matEqn = j.dec.preprocess(node,j); Node simp = j.simplify(matEqn); String res = j.pv.toString(simp); Node node2 = j.parse(expected); MatrixNodeI matEqn2 = j.dec.preprocess(node2,j); Node simp2 ...
1,116,446
public void simplifyTestString(String expr,String expected) throws ParseException { Node node = j.parse(expr); MatrixNodeI matEqn = j.dec.preprocess(node,j); String res = j.pv.toString(matEqn); if(!expected.equals(res)) System.out.println("Error: Value of \""+expr+"\" is \""+res+"\" should be \""+expected+"\...
public void simplifyTestString(String expr,String expected) throws ParseException { Node node = j.parse(expr); MatrixNodeI matEqn = j.dec.preprocess(node,j); String res = j.toString(matEqn); if(!expected.equals(res)) System.out.println("Error: Value of \""+expr+"\" is \""+res+"\" should be \""+expected+"\"")...
1,116,447
@Test public void getObject() throws SQLException { stat.executeUpdate("create temp table testobj (" + "c1 integer, c2 float, c3, c4 varchar, c5 bit, c6, c7);"); PreparedStatement prep = conn.prepareStatement( "insert into testobj values (?,?,?,?,?,?,?);"); prep.setInt ...
@Test public void getObject() throws SQLException { stat.executeUpdate("create table testobj (" + "c1 integer, c2 float, c3, c4 varchar, c5 bit, c6, c7);"); PreparedStatement prep = conn.prepareStatement( "insert into testobj values (?,?,?,?,?,?,?);"); prep.setInt (1, I...
1,116,448
@Test public void insert1000() throws SQLException { stat.executeUpdate("create temp table in1000 (a);"); PreparedStatement prep = conn.prepareStatement( "insert into in1000 values (?);"); conn.setAutoCommit(false); for (int i=0; i < 1000; i++) { prep.setInt(1, ...
@Test public void insert1000() throws SQLException { stat.executeUpdate("create table in1000 (a);"); PreparedStatement prep = conn.prepareStatement( "insert into in1000 values (?);"); conn.setAutoCommit(false); for (int i=0; i < 1000; i++) { prep.setInt(1, i); ...
1,116,449
public void setStyleData(){ Style s = (Style) cmbStyle2Model.getSelectedItem(); // descriptionTextArea.setText(s.getDescription()); // cmbStyle2.setToolTipText(multiLineToolTip(50,s.getDescription())); stlLowOG.setText(SBStringUtils.format(s.ogLow, 3)); stlRcpOG.setText(SBStringUtils.format(myRecipe.getEstOg(), 3...
public void setStyleData(){ Style s = (Style) cmbStyle2Model.getSelectedItem(); // descriptionTextArea.setText(s.getDescription()); // cmbStyle2.setToolTipText(multiLineToolTip(50,s.getDescription())); stlLowOG.setText(SBStringUtils.format(s.ogLow, 3)); stlRcpOG.setText(SBStringUtils.format(myRecipe.getEstOg(), 3...
1,116,450
public boolean perform(Build build, Launcher launcher, BuildListener listener) { FileSet fs = new FileSet(); Project p = new Project(); fs.setProject(p); fs.setDir(build.getProject().getWorkspace().getLocal()); fs.setIncludes(testResults); TestResultAction action = new Test...
public boolean perform(Build build, Launcher launcher, BuildListener listener) { FileSet fs = new FileSet(); Project p = new Project(); fs.setProject(p); fs.setDir(build.getProject().getWorkspace().getLocal()); fs.setIncludes(testResults); if(ds.getIncludedFiles().length==0...
1,116,451
public boolean perform(Build build, Launcher launcher, BuildListener listener) { FileSet fs = new FileSet(); Project p = new Project(); fs.setProject(p); fs.setDir(build.getProject().getWorkspace().getLocal()); fs.setIncludes(testResults); TestResultAction action = new Test...
public boolean perform(Build build, Launcher launcher, BuildListener listener) { FileSet fs = new FileSet(); Project p = new Project(); fs.setProject(p); fs.setDir(build.getProject().getWorkspace().getLocal()); fs.setIncludes(testResults); TestResultAction action = new Test...
1,116,452
public String getIconName() { return isFolder?"folder.png":"text.png"; }
public String getIconName() { return isFolder?"folder.gif":"text.gif"; }
1,116,453
public final Result getResult() { if(state!=State.COMPLETED) return null; return result; }
public final Result getResult() { if(state!=State.COMPLETED) return null; return result; }
1,116,454
public boolean isReal(Node node) { return (node instanceof ASTConstant) && ( ((ASTConstant) node).getValue() instanceof Number ); }
public boolean isReal(Node node) { return (node instanceof ASTConstant) && ( ((ASTConstant) node).getValue() instanceof Double ); }
1,116,455
public void fireDownloadFileChanged( SWDownloadFile file ) { int position = downloadList.indexOf( file ); if ( position >= 0 ) { fireDownloadFileChanged( position ); } }
private void fireDownloadFileChanged( final int position ) { int position = downloadList.indexOf( file ); if ( position >= 0 ) { fireDownloadFileChanged( position ); } }
1,116,457
public void fireDownloadFileChanged( SWDownloadFile file ) { int position = downloadList.indexOf( file ); if ( position >= 0 ) { fireDownloadFileChanged( position ); } }
public void fireDownloadFileChanged( SWDownloadFile file ) { int position = downloadList.indexOf( file ); if ( position >= 0 ) { fireDownloadFileChanged( position ); } }
1,116,458
public void fireDownloadFileChanged( SWDownloadFile file ) { int position = downloadList.indexOf( file ); if ( position >= 0 ) { fireDownloadFileChanged( position ); } }
public void fireDownloadFileChanged( SWDownloadFile file ) { int position = downloadList.indexOf( file ); if ( position >= 0 ) { fireDownloadFileChanged( position ); } }
1,116,459
public void run(Stack inStack) throws ParseException { /* Check if stack is null */ if (null == inStack) { throw new ParseException("Stack argument null"); } Object param = null; double r = 0; while(!inStack.isEmpty()) { // get the parameter from the stack ...
public void run(Stack inStack) throws ParseException { /* Check if stack is null */ if (null == inStack) { throw new ParseException("Stack argument null"); } Object param = null; double r = 0; while(!inStack.isEmpty()) { // get the parameter from the stack ...
1,116,460
public void run(Stack inStack) throws ParseException { /* Check if stack is null */ if (null == inStack) { throw new ParseException("Stack argument null"); } Object param = null; double r = 0; while(!inStack.isEmpty()) { // get the parameter from the stack ...
public void run(Stack inStack) throws ParseException { /* Check if stack is null */ if (null == inStack) { throw new ParseException("Stack argument null"); } Object param = null; double r = 0; while(!inStack.isEmpty()) { // get the parameter from the stack ...
1,116,461
public void run(Stack inStack) throws ParseException { /* Check if stack is null */ if (null == inStack) { throw new ParseException("Stack argument null"); } Object param = null; double r = 0; while(!inStack.isEmpty()) { // get the parameter from the stack ...
public void run(Stack inStack) throws ParseException { /* Check if stack is null */ if (null == inStack) { throw new ParseException("Stack argument null"); } Object param = null; double r = 0; while(!inStack.isEmpty()) { // get the parameter from the stack ...
1,116,462
public void run(Stack inStack) throws ParseException { /* Check if stack is null */ if (null == inStack) { throw new ParseException("Stack argument null"); } Object param = null; double r = 0; while(!inStack.isEmpty()) { // get the parameter from the stack ...
public void run(Stack inStack) throws ParseException { /* Check if stack is null */ if (null == inStack) { throw new ParseException("Stack argument null"); } Object param = null; double r = 0; while(!inStack.isEmpty()) { // get the parameter from the stack ...
1,116,463
public void run(Stack inStack) throws ParseException { /* Check if stack is null */ if (null == inStack) { throw new ParseException("Stack argument null"); } Object param = null; double r = 0; while(!inStack.isEmpty()) { // get the parameter from the stack ...
public void run(Stack inStack) throws ParseException { /* Check if stack is null */ if (null == inStack) { throw new ParseException("Stack argument null"); } Object param = null; double r = 0; while(!inStack.isEmpty()) { // get the parameter from the stack ...
1,116,464
public void run(Stack inStack) throws ParseException { /* Check if stack is null */ if (null == inStack) { throw new ParseException("Stack argument null"); } Object param = null; double r = 0; while(!inStack.isEmpty()) { // get the parameter from the stack ...
public void run(Stack inStack) throws ParseException { /* Check if stack is null */ if (null == inStack) { throw new ParseException("Stack argument null"); } Object param = null; double r = 0; while(!inStack.isEmpty()) { // get the parameter from the stack ...
1,116,465
private Dimensions() {};
private Dimensions() {}
1,116,467
private Complex parseNextLine(BufferedReader reader) { Complex value; String line, errorStr; // cycle till a valid line is found do { try { line = reader.readLine(); lineCount++; } catch (Exception e) { return null; } if (line==null) return null; } while (line.length()==0 || line.trim().charAt(...
private Complex parseNextLine(BufferedReader reader) { Complex value; String line, errorStr; // cycle till a valid line is found do { try { line = reader.readLine(); lineCount++; } catch (Exception e) { return null; } if (line==null) return null; } while (line.length()==0 || line.trim().charAt(...
1,116,468
private Complex parseNextLine(BufferedReader reader) { Complex value; String line, errorStr; // cycle till a valid line is found do { try { line = reader.readLine(); lineCount++; } catch (Exception e) { return null; } if (line==null) return null; } while (line.length()==0 || line.trim().charAt(...
private Complex parseNextLine(BufferedReader reader) { Complex value; String line, errorStr; // cycle till a valid line is found do { try { line = reader.readLine(); lineCount++; } catch (Exception e) { return null; } if (line==null) return null; } while (line.length()==0 || line.trim().charAt(...
1,116,469
private Complex parseNextLine(BufferedReader reader) { Complex value; String line, errorStr; // cycle till a valid line is found do { try { line = reader.readLine(); lineCount++; } catch (Exception e) { return null; } if (line==null) return null; } while (line.length()==0 || line.trim().charAt(...
private Complex parseNextLine(BufferedReader reader) { Complex value; String line, errorStr; // cycle till a valid line is found do { try { line = reader.readLine(); lineCount++; } catch (Exception e) { return null; } if (line==null) return null; } while (line.length()==0 || line.trim().charAt(...
1,116,470
private Complex parseNextLine(BufferedReader reader) { Complex value; String line, errorStr; // cycle till a valid line is found do { try { line = reader.readLine(); lineCount++; } catch (Exception e) { return null; } if (line==null) return null; } while (line.length()==0 || line.trim().charAt(...
private Complex parseNextLine(BufferedReader reader) { Complex value; String line, errorStr; // cycle till a valid line is found do { try { line = reader.readLine(); lineCount++; } catch (Exception e) { return null; } if (line==null) return null; } while (line.length()==0 || line.trim().charAt(...
1,116,471
private Complex parseNextLine(BufferedReader reader) { Complex value; String line, errorStr; // cycle till a valid line is found do { try { line = reader.readLine(); lineCount++; } catch (Exception e) { return null; } if (line==null) return null; } while (line.length()==0 || line.trim().charAt(...
private Complex parseNextLine(BufferedReader reader) { Complex value; String line, errorStr; // cycle till a valid line is found do { try { line = reader.readLine(); lineCount++; } catch (Exception e) { return null; } if (line==null) return null; } while (line.length()==0 || line.trim().charAt(...
1,116,472
private Complex parseNextLine(BufferedReader reader) { Complex value; String line, errorStr; // cycle till a valid line is found do { try { line = reader.readLine(); lineCount++; } catch (Exception e) { return null; } if (line==null) return null; } while (line.length()==0 || line.trim().charAt(...
private Complex parseNextLine(BufferedReader reader) { Complex value; String line, errorStr; // cycle till a valid line is found do { try { line = reader.readLine(); lineCount++; } catch (Exception e) { return null; } if (line==null) return null; } while (line.length()==0 || line.trim().charAt(...
1,116,473
public void run(String fileName) { BufferedReader reader; Complex c1, c2; boolean hasError = false; // Load the input file try { reader = new BufferedReader(new FileReader(fileName)); } catch (Exception e) { println("File \""+fileName+"\" not found"); return; } // reset the line count lineCount = 0; ...
public void run(String fileName) { BufferedReader reader; Object v1, v2; boolean hasError = false; // Load the input file try { reader = new BufferedReader(new FileReader(fileName)); } catch (Exception e) { println("File \""+fileName+"\" not found"); return; } // reset the line count lineCount = 0; ...
1,116,474
public void run(String fileName) { BufferedReader reader; Complex c1, c2; boolean hasError = false; // Load the input file try { reader = new BufferedReader(new FileReader(fileName)); } catch (Exception e) { println("File \""+fileName+"\" not found"); return; } // reset the line count lineCount = 0; ...
public void run(String fileName) { BufferedReader reader; Complex c1, c2; boolean hasError = false; // Load the input file try { reader = new BufferedReader(new FileReader(fileName)); } catch (Exception e) { println("File \""+fileName+"\" not found"); return; } // reset the line count lineCount = 0; ...
1,116,475
public void run(String fileName) { BufferedReader reader; Complex c1, c2; boolean hasError = false; // Load the input file try { reader = new BufferedReader(new FileReader(fileName)); } catch (Exception e) { println("File \""+fileName+"\" not found"); return; } // reset the line count lineCount = 0; ...
public void run(String fileName) { BufferedReader reader; Complex c1, c2; boolean hasError = false; // Load the input file try { reader = new BufferedReader(new FileReader(fileName)); } catch (Exception e) { println("File \""+fileName+"\" not found"); return; } // reset the line count lineCount = 0; ...
1,116,476
public void run(String fileName) { BufferedReader reader; Complex c1, c2; boolean hasError = false; // Load the input file try { reader = new BufferedReader(new FileReader(fileName)); } catch (Exception e) { println("File \""+fileName+"\" not found"); return; } // reset the line count lineCount = 0; ...
public void run(String fileName) { BufferedReader reader; Complex c1, c2; boolean hasError = false; // Load the input file try { reader = new BufferedReader(new FileReader(fileName)); } catch (Exception e) { println("File \""+fileName+"\" not found"); return; } // reset the line count lineCount = 0; ...
1,116,477
public void run(String fileName) { BufferedReader reader; Complex c1, c2; boolean hasError = false; // Load the input file try { reader = new BufferedReader(new FileReader(fileName)); } catch (Exception e) { println("File \""+fileName+"\" not found"); return; } // reset the line count lineCount = 0; ...
public void run(String fileName) { BufferedReader reader; Complex c1, c2; boolean hasError = false; // Load the input file try { reader = new BufferedReader(new FileReader(fileName)); } catch (Exception e) { println("File \""+fileName+"\" not found"); return; } // reset the line count lineCount = 0; ...
1,116,478
public String getDisplayName() { return node.getNodeName(); }
public String getDisplayName() { return getNode().getNodeName(); }
1,116,481
public List<Project> getTiedJobs() { List<Project> r = new ArrayList<Project>(); for( Job j : Hudson.getInstance().getJobs() ) { if (j instanceof Project) { Project p = (Project) j; if(p.getAssignedNode()==node) r.add(p); } ...
public List<Project> getTiedJobs() { List<Project> r = new ArrayList<Project>(); for( Job j : Hudson.getInstance().getJobs() ) { if (j instanceof Project) { Project p = (Project) j; if(p.getAssignedNode()==getNode()) r.add(p); } ...
1,116,482
private Date parseDate(final String date) { try { return c_inputDate.parse(date); } catch (ParseException e) { StringWriter w = new StringWriter(); w.write("Failed to parse "); w.write(date); w.write('\n'); e.printStackTrace(new PrintWr...
private Date parseDate(final String date) { try { return c_inputDate.parse(date); } catch (ParseException e) { StringWriter w = new StringWriter(); w.write("Failed to parse "); w.write(date); w.write('\n'); e.printStackTrace(new PrintWr...
1,116,484
ShapeType(String typeID, String name, boolean isSelected) { this.typeID = typeID; this.name = name; this.isSelected = isSelected; }
ShapeType(String typeID, String name, String color, boolean isSelected) { this.typeID = typeID; this.name = name; this.isSelected = isSelected; }
1,116,486
private void writeDownloadData() { long totalBufferedSize = 0; boolean performCompleteWrite = false; if ( isShutingDown || lastCompleteWrite + DateUtils.MILLIS_PER_MINUTE < System.currentTimeMillis() ) { NLogger.debug(DownloadDataWriter.class, "Time for complete...
private void writeDownloadData() { long totalBufferedSize = 0; boolean performCompleteWrite = false; if ( isShutingDown || lastCompleteWrite + DateUtils.MILLIS_PER_MINUTE < System.currentTimeMillis() ) { NLogger.debug(DownloadDataWriter.class, "Time for complete...
1,116,489
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); String s = ""; // String t = ""; if (!o.getClass().getName().endsWith("JTextField")) return; s = ((JTextField) o).getText(); // t = s.replace(',','.'); // accept also european decimal komma if (o == txtName) myRecipe.setName(s); els...
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); String s = ""; // String t = ""; if (!o.getClass().getName().endsWith("TextField")) return; s = ((JTextField) o).getText(); // t = s.replace(',','.'); // accept also european decimal komma if (o == txtName) myRecipe.setName(s); else...
1,116,491
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); String s = ""; // String t = ""; if (!o.getClass().getName().endsWith("JTextField")) return; s = ((JTextField) o).getText(); // t = s.replace(',','.'); // accept also european decimal komma if (o == txtName) myRecipe.setName(s); els...
public void actionPerformed(ActionEvent e) { Object o = e.getSource(); String s = ""; // String t = ""; if (!o.getClass().getName().endsWith("JTextField")) return; s = ((JTextField) o).getText(); // t = s.replace(',','.'); // accept also european decimal komma if (o == txtName) myRecipe.setName(s); els...
1,116,492
private void addListeners(){ txtName.addActionListener(this); txtName.addFocusListener(this); brewerNameText.addFocusListener(this); brewerNameText.addActionListener(this); txtDate.addFocusListener(this); txtDate.addActionListener(this); txtPreBoil.addFocusListener(this); txtPreBoil.addActionListener(this); b...
private void addListeners(){ txtName.addActionListener(this); txtName.addFocusListener(this); brewerNameText.addFocusListener(this); brewerNameText.addActionListener(this); txtDate.addFocusListener(this); txtDate.addActionListener(this); txtPreBoil.addFocusListener(this); txtPreBoil.addActionListener(this); b...
1,116,493
private void addListeners(){ txtName.addActionListener(this); txtName.addFocusListener(this); brewerNameText.addFocusListener(this); brewerNameText.addActionListener(this); txtDate.addFocusListener(this); txtDate.addActionListener(this); txtPreBoil.addFocusListener(this); txtPreBoil.addActionListener(this); b...
private void addListeners(){ txtName.addActionListener(this); txtName.addFocusListener(this); brewerNameText.addFocusListener(this); brewerNameText.addActionListener(this); txtDate.addFocusListener(this); txtDate.addActionListener(this); txtPreBoil.addFocusListener(this); txtPreBoil.addActionListener(this); b...
1,116,494
private void addListeners(){ txtName.addActionListener(this); txtName.addFocusListener(this); brewerNameText.addFocusListener(this); brewerNameText.addActionListener(this); txtDate.addFocusListener(this); txtDate.addActionListener(this); txtPreBoil.addFocusListener(this); txtPreBoil.addActionListener(this); b...
private void addListeners(){ txtName.addActionListener(this); txtName.addFocusListener(this); brewerNameText.addFocusListener(this); brewerNameText.addActionListener(this); txtDate.addFocusListener(this); txtDate.addActionListener(this); txtPreBoil.addFocusListener(this); txtPreBoil.addActionListener(this); b...
1,116,495
private void addListeners(){ txtName.addActionListener(this); txtName.addFocusListener(this); brewerNameText.addFocusListener(this); brewerNameText.addActionListener(this); txtDate.addFocusListener(this); txtDate.addActionListener(this); txtPreBoil.addFocusListener(this); txtPreBoil.addActionListener(this); b...
private void addListeners(){ txtName.addActionListener(this); txtName.addFocusListener(this); brewerNameText.addFocusListener(this); brewerNameText.addActionListener(this); txtDate.addFocusListener(this); txtDate.addActionListener(this); txtPreBoil.addFocusListener(this); txtPreBoil.addActionListener(this); b...
1,116,496
public void actionPerformed(ActionEvent evt) { recipeSettingsActionPerformed(evt); }
public void actionPerformed(ActionEvent evt) { Fermentable f = (Fermentable) cmbMaltModel .getSelectedItem(); int i = maltTable.getSelectedRow(); if (myRecipe != null && i != -1 ) { Fermentable f2 = myRecipe.getFermentable(i); if (f2 != null){ f2.setLov(f.getLov()); f2.setPppg(f.getPppg()); f2.setDescription(f.ge...
1,116,497
public void actionPerformed(ActionEvent evt) { recipeSettingsActionPerformed(evt); }
public void actionPerformed(ActionEvent evt) { String u = (String) cmbMaltUnitsModel.getSelectedItem(); int i = maltTable.getSelectedRow(); if (myRecipe != null && i != -1) { Fermentable f2 = myRecipe.getFermentable(i); if (f2 != null){ f2.convertTo(u); myRecipe.calcMaltTotals(); displayRecipe(); } } }
1,116,498
public void actionPerformed(ActionEvent evt) { Fermentable f = (Fermentable) cmbMaltModel .getSelectedItem(); int i = maltTable.getSelectedRow(); if (myRecipe != null && i != -1 ) { Fermentable f2 = myRecipe.getFermentable(i); if (f2 != null){ f2.setLov(f.getLov()); f2.setPppg(f.getPppg...
public void actionPerformed(ActionEvent evt) { Fermentable f = (Fermentable) cmbMaltModel .getSelectedItem(); int i = maltTable.getSelectedRow(); if (myRecipe != null && i != -1 ) { Fermentable f2 = myRecipe.getFermentable(i); if (f2 != null){ f2.setLov(f.getLov()); f2.setPppg(f.getPppg...
1,116,499
public void actionPerformed(ActionEvent evt) { String u = (String) cmbMaltUnitsModel.getSelectedItem(); int i = maltTable.getSelectedRow(); if (myRecipe != null && i != -1) { Fermentable f2 = myRecipe.getFermentable(i); if (f2 != null){ // this converts the cost and amount: f2.convert...
public void actionPerformed(ActionEvent evt) { String u = (String) cmbMaltUnitsModel.getSelectedItem(); int i = maltTable.getSelectedRow(); if (myRecipe != null && i != -1) { Fermentable f2 = myRecipe.getFermentable(i); if (f2 != null){ // this converts the cost and amount: f2.convert...
1,116,500
public void actionPerformed(ActionEvent evt) { String u = (String) cmbMaltUnitsModel.getSelectedItem(); int i = maltTable.getSelectedRow(); if (myRecipe != null && i != -1) { Fermentable f2 = myRecipe.getFermentable(i); if (f2 != null){ // this converts the cost and amount: f2.convert...
public void actionPerformed(ActionEvent evt) { String u = (String) cmbMaltUnitsModel.getSelectedItem(); int i = maltTable.getSelectedRow(); if (myRecipe != null && i != -1) { Fermentable f2 = myRecipe.getFermentable(i); if (f2 != null){ // this converts the cost and amount: f2.convert...
1,116,501
public void actionPerformed(ActionEvent evt) { myRecipe.setPostBoil(Double.parseDouble(postBoilText.getText() .toString())); displayRecipe(); }
public void actionPerformed(ActionEvent evt) { myRecipe.setPostBoil(Double.parseDouble(postBoilText.getText() .toString())); displayRecipe(); }
1,116,502
public void actionPerformed(ActionEvent evt) { myRecipe.setPostBoil(Double.parseDouble(postBoilText.getText() .toString())); displayRecipe(); }
public void actionPerformed(ActionEvent evt) { myRecipe.setPostBoil(Double.parseDouble(postBoilText.getText() .toString())); displayRecipe(); } }
1,116,503
public void actionPerformed(ActionEvent evt) { Yeast y = (Yeast) cmbYeastModel.getSelectedItem(); if (myRecipe != null && y != myRecipe.getYeastObj()) { myRecipe.setYeast(y); } String st = SBStringUtils.multiLineToolTip(40, y .getDescription()); cmbYeast.setToolTipText(st); }
public void actionPerformed(ActionEvent evt) { Yeast y = (Yeast) cmbYeastModel.getSelectedItem(); if (myRecipe != null && y != myRecipe.getYeastObj()) { myRecipe.setYeast(y); } String st = SBStringUtils.multiLineToolTip(40, y .getDescription()); cmbYeast.setToolTipText(st); }
1,116,504
public void actionPerformed(ActionEvent evt) { String q = (String) cmbSizeUnits.getSelectedItem(); if (myRecipe != null && q != myRecipe.getVolUnits()) { // also sets postboil units: myRecipe.setVolUnits(q); displayRecipe(); } }
public void actionPerformed(ActionEvent evt) { String q = (String) cmbSizeUnits.getSelectedItem(); if (myRecipe != null && q != myRecipe.getVolUnits()) { // also sets postboil units: myRecipe.setVolUnits(q); displayRecipe(); } }
1,116,505
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...
public void displayRecipe() { if (myRecipe == null) return; txtName.setText(myRecipe.getName()); brewerNameText.setText(myRecipe.getBrewer()); preBoilText.setValue(new Double(myRecipe.getPreBoilVol(myRecipe.getVolUnits()))); lblSizeUnits.setText(myRecipe.getVolUnits()); postBoilText.setValue(new Double(myRecip...
1,116,506