bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void actionPerformed(ActionEvent evt) { // exit program System.exit(0); }
public void actionPerformed(ActionEvent evt) { // exit program System.exit(0); }
1,116,848
public void actionPerformed(ActionEvent evt) { PreferencesDialog d = new PreferencesDialog(owner, preferences); d.setVisible(true); }
public void actionPerformed(ActionEvent evt) { PreferencesDialog d = new PreferencesDialog(owner, preferences); d.setVisible(true); }
1,116,849
public void actionPerformed(ActionEvent evt) { mashMgr = new MashManager(myRecipe); mashMgr.setVisible(true); }
public void actionPerformed(ActionEvent evt) { mashMgr = new MashManager(myRecipe); mashMgr.setVisible(true); }
1,116,850
public void actionPerformed(ActionEvent evt) { aboutDlg = new AboutDialog(owner); aboutDlg.setVisible(true); }
public void actionPerformed(ActionEvent evt) { aboutDlg = new AboutDialog(owner); aboutDlg.setVisible(true); }
1,116,851
public FissuresToWAV(SeismogramIterator iterator, int speedUp) { this.iterator = iterator; chunkSize = 36 + 2*iterator.getNumPoints(); numChannels = 1; bitsPerSample = 16; blockAlign = numChannels * (bitsPerSample/8); subchunk2Size = iterator.getNumPoints() * blockAlign; setSpeedUp(speedUp); }
public FissuresToWAV(SeismogramIterator iterator, int speedUp) { this.iterator = iterator; chunkSize = 36 + 2*iterator.getNumPoints(); numChannels = 1; bitsPerSample = 16; blockAlign = numChannels * (bitsPerSample/8); subchunk2Size = iterator.getNumPoints() * blockAlign; setSpeedUp(speedUp); }
1,116,853
public FissuresToWAV(SeismogramIterator iterator, int speedUp) { this.iterator = iterator; chunkSize = 36 + 2*iterator.getNumPoints(); numChannels = 1; bitsPerSample = 16; blockAlign = numChannels * (bitsPerSample/8); subchunk2Size = iterator.getNumPoints() * blockAlign; setSpeedUp(speedUp); }
public FissuresToWAV(SeismogramIterator iterator, int speedUp) { this.iterator = iterator; chunkSize = 36 + 2*iterator.getNumPoints(); numChannels = 1; bitsPerSample = 16; blockAlign = numChannels * (bitsPerSample/8); subchunk2Size = iterator.getNumPoints() * blockAlign; setSpeedUp(speedUp); }
1,116,854
public void setSpeedUp(int newSpeed){ speedUp = newSpeed; sampleRate = calculateSampleRate(iterator.getSampling(), newSpeed); byteRate = sampleRate * blockAlign; }
public void setSpeedUp(int newSpeed){ speedUp = newSpeed; sampleRate = calculateSampleRate(iterator.getSampling(), newSpeed); byteRate = sampleRate * blockAlign; }
1,116,856
public void characters(char buf[], int offset, int len) throws SAXException { String s = new String(buf, offset, len); // we're inside a style: if (!s.trim().equals("")) { if (currentElement.equalsIgnoreCase("notes")) descrBuf += s; if (currentList.equalsIgnoreCase("hops")){ if (currentElement.equalsI...
public void characters(char buf[], int offset, int len) throws SAXException { String s = new String(buf, offset, len); // we're inside a style: if (!s.trim().equals("")) { if (currentElement.equalsIgnoreCase("notes")) descrBuf += s; if (currentList.equalsIgnoreCase("hops")){ if (currentElement.equalsI...
1,116,859
public void endElement(String namespaceURI, String sName, // simple name String qName // qualified name ) throws SAXException { if (qName.equalsIgnoreCase("recipe")){ newRecipe = false; numRecipes ++; recipes.add(myRecipe); } if (qName.equalsIgnoreCase("hops") || qName.equalsIgnoreCase("fermentables")...
public void endElement(String namespaceURI, String sName, // simple name String qName // qualified name ) throws SAXException { if (qName.equalsIgnoreCase("recipe")){ newRecipe = false; numRecipes ++; recipes.add(myRecipe); } if (qName.equalsIgnoreCase("hops") || qName.equalsIgnoreCase("fermentables")...
1,116,860
public void init() { myBrewerLabel = new SWTTextOutput(); myBrewerLabel.init(myContainer); myBrewer = new SWTTextInput(myController); myBrewer.init(myContainer); myEfficiencyLabel = new SWTTextOutput(); myEfficiencyLabel.init(myContainer); myEfficiency = new SWTNumberInput(myController); myEfficiency.init(myCo...
public void init() { myBrewerLabel = new SWTTextOutput(); myBrewerLabel.init(myContainer); myBrewer = new SWTTextInput(myController); myBrewer.init(myContainer); myEfficiencyLabel = new SWTTextOutput(); myEfficiencyLabel.init(myContainer); myEfficiency = new SWTNumberInput(myController); myEfficiency.init(myCo...
1,116,861
public Object visitDiff(ASTFunNode node, Object data) throws ParseException { MatrixNodeI children[] = visitChildrenAsArray(node,data); if(children.length != 2) throw new ParseException("Diff opperator should have two children, it has "+children.length); // TODO need to handle diff(x,[x,y]) if(!(children[1] ins...
public Object visitDiff(ASTFunNode node, Object data) throws ParseException { MatrixNodeI children[] = visitChildrenAsArray(node,data); if(children.length != 2) throw new ParseException("Diff opperator should have two children, it has "+children.length); // TODO need to handle diff(x,[x,y]) if(!(children[1] ins...
1,116,863
public Object visitOp(ASTFunNode node, Object data) throws ParseException { PostfixMathCommandI pfmc=node.getPFMC();// if(pfmc instanceof SpecialPreProcessI)// {// SpecialPreProcessI spp = (SpecialPreProcessI) node.getPFMC();// return spp.preprocess(node,this,mjep);// } MatrixNodeI children[] = visitChildrenA...
public Object visitOp(ASTFunNode node, Object data) throws ParseException { PostfixMathCommandI pfmc=node.getPFMC();// if(pfmc instanceof SpecialPreProcessI)// {// SpecialPreProcessI spp = (SpecialPreProcessI) node.getPFMC();// return spp.preprocess(node,this,mjep);// } MatrixNodeI children[] = visitChildrenA...
1,116,864
public Object visitOp(ASTFunNode node, Object data) throws ParseException { PostfixMathCommandI pfmc=node.getPFMC();// if(pfmc instanceof SpecialPreProcessI)// {// SpecialPreProcessI spp = (SpecialPreProcessI) node.getPFMC();// return spp.preprocess(node,this,mjep);// } MatrixNodeI children[] = visitChildrenA...
public Object visitOp(ASTFunNode node, Object data) throws ParseException { PostfixMathCommandI pfmc=node.getPFMC();// if(pfmc instanceof SpecialPreProcessI)// {// SpecialPreProcessI spp = (SpecialPreProcessI) node.getPFMC();// return spp.preprocess(node,this,mjep);// } MatrixNodeI children[] = visitChildrenA...
1,116,865
public Object visitOp(ASTFunNode node, Object data) throws ParseException { PostfixMathCommandI pfmc=node.getPFMC();// if(pfmc instanceof SpecialPreProcessI)// {// SpecialPreProcessI spp = (SpecialPreProcessI) node.getPFMC();// return spp.preprocess(node,this,mjep);// } MatrixNodeI children[] = visitChildrenA...
public Object visitOp(ASTFunNode node, Object data) throws ParseException { PostfixMathCommandI pfmc=node.getPFMC();// if(pfmc instanceof SpecialPreProcessI)// {// SpecialPreProcessI spp = (SpecialPreProcessI) node.getPFMC();// return spp.preprocess(node,this,mjep);// } MatrixNodeI children[] = visitChildrenA...
1,116,866
public Object visitOp(ASTFunNode node, Object data) throws ParseException { PostfixMathCommandI pfmc=node.getPFMC();// if(pfmc instanceof SpecialPreProcessI)// {// SpecialPreProcessI spp = (SpecialPreProcessI) node.getPFMC();// return spp.preprocess(node,this,mjep);// } MatrixNodeI children[] = visitChildrenA...
public Object visitOp(ASTFunNode node, Object data) throws ParseException { PostfixMathCommandI pfmc=node.getPFMC();// if(pfmc instanceof SpecialPreProcessI)// {// SpecialPreProcessI spp = (SpecialPreProcessI) node.getPFMC();// return spp.preprocess(node,this,mjep);// } MatrixNodeI children[] = visitChildrenA...
1,116,867
public boolean perform(Build build, Launcher launcher, BuildListener listener) { Project proj = build.getProject(); String cmd; String execName; if(File.separatorChar=='\\') execName = "ant.bat"; else execName = "ant"; AntInstallation ai = getAnt(); ...
public boolean perform(Build build, Launcher launcher, BuildListener listener) { Project proj = build.getProject(); String cmd; String execName; if(onWindows) execName = "ant.bat"; else execName = "ant"; AntInstallation ai = getAnt(); if(ai==nul...
1,116,870
public Object atan(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.atan(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).atan(); } throw new ParseException("Invalid parameter type"); }
public Object atan(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).atan(); } else if (param instanceof Number) { return new Double(Math.atan(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).atan(); } throw new Pars...
1,116,873
public Object atan(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.atan(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).atan(); } throw new ParseException("Invalid parameter type"); }
public Object atan(Object param) throws ParseException { if (param instanceof Number) { return new Double(Math.atan(((Number)param).doubleValue())); } else if (param instanceof Complex) { return ((Complex)param).atan(); } throw new ParseException("Invalid parameter type"); }
1,116,874
public synchronized Map<BuildStepDescriptor,BuildStep> getBuilders() { Map<BuildStepDescriptor,BuildStep> m = new HashMap<BuildStepDescriptor,BuildStep>(); for( int i=builders.size()-1; i>=0; i-- ) { BuildStep b = builders.get(i); m.put(b.getDescriptor(),b); } retur...
public synchronized Map<BuildStepDescriptor,BuildStep> getBuilders() { Map<BuildStepDescriptor,BuildStep> m = new LinkedHashMap<BuildStepDescriptor,BuildStep>(); for( int i=builders.size()-1; i>=0; i-- ) { BuildStep b = builders.get(i); m.put(b.getDescriptor(),b); } ...
1,116,875
public synchronized Map<BuildStepDescriptor,BuildStep> getPublishers() { Map<BuildStepDescriptor,BuildStep> m = new HashMap<BuildStepDescriptor,BuildStep>(); for( int i=publishers.size()-1; i>=0; i-- ) { BuildStep b = publishers.get(i); m.put(b.getDescriptor(),b); } ...
public synchronized Map<BuildStepDescriptor,BuildStep> getPublishers() { Map<BuildStepDescriptor,BuildStep> m = new LinkedHashMap<BuildStepDescriptor,BuildStep>(); for( int i=publishers.size()-1; i>=0; i-- ) { BuildStep b = publishers.get(i); m.put(b.getDescriptor(),b); } ...
1,116,876
private void ensureMinCaughHosts() { int minCount = (int)Math.ceil( NetworkPrefs.MaxHostInHostCache.get().doubleValue()/100.0 ); if ( caughtHosts.getSize() < minCount ) { // Query udpHostCache for new hosts UdpHostCacheManager.getInstance().invokeQueryCachesRequest...
private void ensureMinCaughHosts() { int minCount = (int)Math.ceil( NetworkPrefs.MaxHostInHostCache.get().doubleValue()/100.0 ); if ( caughtHosts.getSize() < minCount ) { // Query udpHostCache for new hosts UdpHostCacheManager.getInstance().invokeQueryCachesRequest...
1,116,877
public void testQuartonians() throws Exception { j = new GroupJep(new Quartonians()); j.addStandardConstants(); System.out.println(j.getGroup().toString()); valueToStringTest("i*j","-k"); }
public void testQuartonians() throws Exception { j = new GroupJep(new Quaternions()); j.addStandardConstants(); System.out.println(j.getGroup().toString()); valueToStringTest("i*j","-k"); }
1,116,878
private void drag(int dragAmount, int dragFrom, SeismogramShapeIterator iterator){ double pointsPerPixel = iterator.getPointsPerPixel(); int[] seisPoints = currentIterator.getSeisPoints(); seisPoints[0] =(int)-(iterator.getTotalShift() * pointsPerPixel) + iterator.getBaseSeisPoint(); seisPoints[1] = se...
private void drag(int dragAmount, int dragFrom, SeismogramShapeIterator iterator){ double pointsPerPixel = iterator.getPointsPerPixel(); int[] seisPoints = currentIterator.getSeisPoints(); seisPoints[0] =(int)-(iterator.getTotalShift() * pointsPerPixel) + iterator.getBaseSeisPoint(); seisPoints[1] = se...
1,116,879
public void dragPlot(SeismogramShapeIterator iterator){ iterator.copyBasicInfo(currentIterator); double shiftPercentage = getShiftPercentage(currentIterator.getTime(), iterator.getTime()); double pixelShift = currentIterator.getSize().width * shiftPercentage; //checks if the pixel shift is within ...
public void dragPlot(SeismogramShapeIterator iterator){ iterator.copyBasicInfo(currentIterator); double shiftPercentage = getShiftPercentage(currentIterator.getTime(), iterator.getTime()); double pixels = currentIterator.getSize().width * shiftPercentage + currentIterator.getLeftoverPixels(); //ch...
1,116,880
public void dragPlot(SeismogramShapeIterator iterator){ iterator.copyBasicInfo(currentIterator); double shiftPercentage = getShiftPercentage(currentIterator.getTime(), iterator.getTime()); double pixelShift = currentIterator.getSize().width * shiftPercentage; //checks if the pixel shift is within ...
public void dragPlot(SeismogramShapeIterator iterator){ iterator.copyBasicInfo(currentIterator); double shiftPercentage = getShiftPercentage(currentIterator.getTime(), iterator.getTime()); double pixelShift = currentIterator.getSize().width * shiftPercentage; //checks if the pixel shift is within ...
1,116,881
public void dragPlot(SeismogramShapeIterator iterator){ iterator.copyBasicInfo(currentIterator); double shiftPercentage = getShiftPercentage(currentIterator.getTime(), iterator.getTime()); double pixelShift = currentIterator.getSize().width * shiftPercentage; //checks if the pixel shift is within ...
public void dragPlot(SeismogramShapeIterator iterator){ iterator.copyBasicInfo(currentIterator); double shiftPercentage = getShiftPercentage(currentIterator.getTime(), iterator.getTime()); double pixelShift = currentIterator.getSize().width * shiftPercentage; //checks if the pixel shift is within ...
1,116,882
public static void splash(Image image) { if (instance == null && image != null) { Frame f = new Frame(); // Create the splash image instance = new SplashWindow(f, image); // Show the window. instance.show(); ...
public static void splash(Image image) { if (instance == null && image != null) { Frame f = new Frame(); // Create the splash image instance = new SplashWindow(f, image); // Show the window. instance.setVisible(true); ...
1,116,884
public Object atanh(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).atanh(); } else if (param instanceof Number) { Complex temp = new Complex(((Number)param).doubleValue(),0.0); return temp.atanh(); } throw new ParseException("Invalid parameter type"); }
public Object atanh(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).atanh(); } else if (param instanceof Number) { Complex temp = new Complex(((Number)param).doubleValue(),0.0); return temp.atanh(); } throw new ParseException("Invalid parameter type"); }
1,116,885
private void setOptions() { // cost tab: txtOtherCost.setText(opts.getProperty("optMiscCost")); txtBottleSize.setText(opts.getProperty("optBottleSize")); cmbBottleSizeModel.addOrInsert(opts.getProperty("optBottleU")); // brewer tab: txtBrewerName.setText(opts.getProperty("optBrewer")); txtPhone.setText(opts.get...
private void setOptions() { // cost tab: txtOtherCost.setText(opts.getProperty("optMiscCost")); txtBottleSize.setText(opts.getProperty("optBottleSize")); cmbBottleSizeModel.addOrInsert(opts.getProperty("optBottleU")); // brewer tab: txtBrewerName.setText(opts.getProperty("optBrewer")); txtPhone.setText(opts.get...
1,116,887
private void setOptions() { // cost tab: txtOtherCost.setText(opts.getProperty("optMiscCost")); txtBottleSize.setText(opts.getProperty("optBottleSize")); cmbBottleSizeModel.addOrInsert(opts.getProperty("optBottleU")); // brewer tab: txtBrewerName.setText(opts.getProperty("optBrewer")); txtPhone.setText(opts.get...
private void setOptions() { // cost tab: txtOtherCost.setText(opts.getProperty("optMiscCost")); txtBottleSize.setText(opts.getProperty("optBottleSize")); cmbBottleSizeModel.addOrInsert(opts.getProperty("optBottleU")); // brewer tab: txtBrewerName.setText(opts.getProperty("optBrewer")); txtPhone.setText(opts.get...
1,116,888
public String getErrorsMessage() { if(error==null) return null; else return error.getMessage(); }
public String getErrorsMessage() { if(error==null) return null; return error.getMessage(); }
1,116,889
public void draw(Graphics g, Dimension size) { if(visible){ Graphics2D g2D = (Graphics2D) g; if(horiz.getIterator(tr).numPointsLeft() <= 0 || vert.getIterator(tr).numPointsLeft() <= 0){ return; } g2D.setC...
public void draw(Graphics g, Dimension size) { if(visible){ Graphics2D g2D = (Graphics2D) g; if(horiz.getIterator(tr).numPointsLeft() <= 0 || vert.getIterator(tr).numPointsLeft() <= 0){ return; } g2D.setC...
1,116,890
public void draw(Graphics g, Dimension size) { if(visible){ Graphics2D g2D = (Graphics2D) g; if(horiz.getIterator(tr).numPointsLeft() <= 0 || vert.getIterator(tr).numPointsLeft() <= 0){ return; } g2D.setC...
public void draw(Graphics g, Dimension size) { if(visible){ Graphics2D g2D = (Graphics2D) g; if(horiz.getIterator(tr).numPointsLeft() <= 0 || vert.getIterator(tr).numPointsLeft() <= 0){ return; } g2D.setC...
1,116,891
public void draw(Graphics g, Dimension size) { if(visible){ Graphics2D g2D = (Graphics2D) g; if(horiz.getIterator(tr).numPointsLeft() <= 0 || vert.getIterator(tr).numPointsLeft() <= 0){ return; } g2D.setC...
public void draw(Graphics g, Dimension size) { if(visible){ Graphics2D g2D = (Graphics2D) g; if(horiz.getIterator(tr).numPointsLeft() <= 0 || vert.getIterator(tr).numPointsLeft() <= 0){ return; } g2D.setC...
1,116,892
public void draw(Graphics g, Dimension size) { if(visible){ Graphics2D g2D = (Graphics2D) g; if(horiz.getIterator(tr).numPointsLeft() <= 0 || vert.getIterator(tr).numPointsLeft() <= 0){ return; } g2D.setC...
public void draw(Graphics g, Dimension size) { if(visible){ Graphics2D g2D = (Graphics2D) g; if(horiz.getIterator(tr).numPointsLeft() <= 0 || vert.getIterator(tr).numPointsLeft() <= 0){ return; } g2D.setC...
1,116,893
private int getVal(SeismogramIterator it, double minAmp, double maxAmp, int size){ double itVal = ((QuantityImpl)it.next()).getValue(); if(Double.isNaN(itVal)){//Gap in trace itVal = Integer.MAX_VALUE; }else{ itVal= Math.ro...
private int getVal(SeismogramIterator it, double minAmp, double maxAmp, int size){ double itVal = ((QuantityImpl)it.next()).getValue(); if(Double.isNaN(itVal)){//Gap in trace itVal = Integer.MAX_VALUE; }else{ itVal= Math.ro...
1,116,894
private int getVal(SeismogramIterator it, double minAmp, double maxAmp, int size){ double itVal = ((QuantityImpl)it.next()).getValue(); if(Double.isNaN(itVal)){//Gap in trace itVal = Integer.MAX_VALUE; }else{ itVal= Math.ro...
private int getVal(SeismogramIterator it, double minAmp, double maxAmp, int size){ double itVal = ((QuantityImpl)it.next()).getValue(); if(Double.isNaN(itVal)){//Gap in trace itVal = Integer.MAX_VALUE; }else{ itVal= Math.ro...
1,116,895
private void setUpConfigs(){ DataSetSeismogram[] seis = { horiz.getDataSetSeismogram(), vert.getDataSetSeismogram()}; AmpConfig ac = (AmpConfig)keysToAmpConfigs.get(key); if(ac == null){ ac = new RMeanAmpConfig(); keysToAmpConfigs...
private void setUpConfigs(){ DataSetSeismogram[] seis = { horiz.getDataSetSeismogram(), vert.getDataSetSeismogram()}; AmpConfig ac = (AmpConfig)keysToAmpConfigs.get(key); if(ac == null){ ac = new RMeanAmpConfig(); keysToAmpConfigs...
1,116,896
public MacroFunction(String inName,int nargs,String expression,XJep jep) throws IllegalArgumentException,ParseException { super(); name = inName; XSymbolTable jepSymTab = (XSymbolTable) jep.getSymbolTable(); mySymTab = (XSymbolTable) jepSymTab.newInstance(); mySymTab.copyConstants(jepSymTab); XJep localJep = je...
public MacroFunction(String inName,int nargs,String expression,XJep jep) throws IllegalArgumentException,ParseException { super(); name = inName; XSymbolTable jepSymTab = (XSymbolTable) jep.getSymbolTable(); mySymTab = (XSymbolTable) jepSymTab.newInstance(); mySymTab.copyConstants(jepSymTab); XJep localJep = je...
1,116,899
public void run(Stack stack) throws ParseException { if(numberOfParameters == 0) {} else if(numberOfParameters == 1) vars[0].setValue(stack.pop()); else if(numberOfParameters == 2) { vars[1].setValue(stack.pop()); vars[0].setValue(stack.pop()); } else { for(int i=numberOfParameters-1;i>0;) vars[i].s...
public void run(Stack stack) throws ParseException { if(numberOfParameters == 0) {} else if(numberOfParameters == 1) vars[0].setValue(stack.pop()); else if(numberOfParameters == 2) { vars[1].setValue(stack.pop()); vars[0].setValue(stack.pop()); } else { for(int i=numberOfParameters-1;i>0;) vars[i].s...
1,116,900
public PrintWriter error(String msg) { out.println(msg); return new PrintWriter(out); }
public PrintWriter error(String msg) { out.println(msg); return new PrintWriter(new OutputStreamWriter(out),true); }
1,116,901
public void printOps() { println("Known operators"); Operator ops[] = j.getOperatorSet().getOperators(); int maxPrec = -1; for(int i=0;i<ops.length;++i) if(((XOperator) ops[i]).getPrecedence()>maxPrec) maxPrec=((XOperator) ops[i]).getPrecedence(); for(int j=-1;j<=maxPrec;++j) for(int i=0;i<ops.length;++i) ...
public void printOps() { println("Known operators"); Operator ops[] = j.getOperatorSet().getOperators(); int maxPrec = -1; for(int i=0;i<ops.length;++i) if(((XOperator) ops[i]).getPrecedence()>maxPrec) maxPrec=((XOperator) ops[i]).getPrecedence(); for(int jj=-1;jj<=maxPrec;++jj) for(int i=0;i<ops.length;++i) ...
1,116,904
public void printOps() { println("Known operators"); Operator ops[] = j.getOperatorSet().getOperators(); int maxPrec = -1; for(int i=0;i<ops.length;++i) if(((XOperator) ops[i]).getPrecedence()>maxPrec) maxPrec=((XOperator) ops[i]).getPrecedence(); for(int j=-1;j<=maxPrec;++j) for(int i=0;i<ops.length;++i) ...
public void printOps() { println("Known operators"); Operator ops[] = j.getOperatorSet().getOperators(); int maxPrec = -1; for(int i=0;i<ops.length;++i) if(((XOperator) ops[i]).getPrecedence()>maxPrec) maxPrec=((XOperator) ops[i]).getPrecedence(); for(int j=-1;j<=maxPrec;++j) for(int i=0;i<ops.length;++i) ...
1,116,905
public BasicSeismogramDisplay(LocalSeismogram seis, String name, VerticalSeismogramDisplay parent){ timeRegistrar = new TimeConfigRegistrar(); ampRegistrar = new AmpConfigRegistrar(); initializeDisplay(seis, name, parent); }
public BasicSeismogramDisplay(LocalSeismogram seis, String name, VerticalSeismogramDisplay parent){ timeRegistrar = new TimeConfigRegistrar(); ampRegistrar = new AmpConfigRegistrar(); initializeDisplay(seis, name, parent); }
1,116,906
public void removeAll(MouseEvent me){ logger.debug("remove all called"); parent.removeAll(me); }
public void removeAll(MouseEvent me){ logger.debug("remove all called"); parent.removeAll(); }
1,116,907
public void remove(){ display.remove(); }
public void remove(){ if(display != null) display.remove(); }
1,116,908
public Number re(Object param) throws ParseException { if (param instanceof Number) { return ((Number)param); } else if (param instanceof Complex) { return new Double(((Complex)param).re()); } throw new ParseException("Invalid parameter type"); }
public Number re(Object param) throws ParseException { if (param instanceof Complex) return new Double(((Complex)param).re()); else if (param instanceof Number) return ((Number)param); } else if (param instanceof Complex) { return new Double(((Complex)param).re()); } throw new ParseException("Invalid parameter...
1,116,909
public Number re(Object param) throws ParseException { if (param instanceof Number) { return ((Number)param); } else if (param instanceof Complex) { return new Double(((Complex)param).re()); } throw new ParseException("Invalid parameter type"); }
public Number re(Object param) throws ParseException { if (param instanceof Number) { return ((Number)param); } else if (param instanceof Complex) { return new Double(((Complex)param).re()); } throw new ParseException("Invalid parameter type"); }
1,116,910
public void validate(Object obj, Errors errors) { if (obj==null) { errors.reject("user.error.nullpointer", "Null user received"); } else { User user = (User) obj; validatePrincipal(user.getCredential(), errors); } }
public void validate(Object obj, Errors errors) { if (obj==null) { errors.reject("user.error.nullpointer", "Null user received"); } else { User user = (User) obj; } }
1,116,911
private String getCommand() throws IOException { String s; if (br == null) return null; if ( (s = br.readLine()) == null) return null; if( s.equals("rules")) { j.dv.printDiffRules(); System.out.println("dJEPdx - Enter q to quit, rules to print the differentation rules,\ndiff(x^2,x) to differentiate,\nev...
private String getCommand() throws IOException { String s; if (br == null) return null; if ( (s = br.readLine()) == null) return null; if( s.equals("rules")) { j.getDifferentationVisitor().printDiffRules(); System.out.println("dJEPdx - Enter q to quit, rules to print the differentation rules,\ndiff(x^2,...
1,116,912
public void initialise() { j = new DJep(); j.addStandardConstants(); j.addStandardFunctions(); j.addComplex(); j.setAllowUndeclared(true); j.setAllowAssignment(true); j.setImplicitMul(true); j.dv.addStandardDiffRules(); //j.setTraverse(true); }
public void initialise() { j = new DJep(); j.addStandardConstants(); j.addStandardFunctions(); j.addComplex(); j.setAllowUndeclared(true); j.setAllowAssignment(true); j.setImplicitMul(true); j.addStandardDiffRules(); //j.setTraverse(true); }
1,116,913
public void processEquation(Node node) { try { System.out.print("fun:\t\t"); j.println(node); Node processed = j.commandv.process(node,j); System.out.print("Processed:\t"); j.println(processed); Node simp = j.simplify(processed); System.out.print("Simplified:\t"); j.println(simp); System.o...
public void processEquation(Node node) { try { System.out.print("fun:\t\t"); j.println(node); Node processed = j.preprocess(node); System.out.print("Processed:\t"); j.println(processed); Node simp = j.simplify(processed); System.out.print("Simplified:\t"); j.println(simp); System.out.print...
1,116,914
public void processEquation(Node node) { try { System.out.print("fun:\t\t"); j.println(node); Node processed = j.commandv.process(node,j); System.out.print("Processed:\t"); j.println(processed); Node simp = j.simplify(processed); System.out.print("Simplified:\t"); j.println(simp); System.o...
public void processEquation(Node node) { try { System.out.print("fun:\t\t"); j.println(node); Node processed = j.commandv.process(node,j); System.out.print("Processed:\t"); j.println(processed); Node simp = j.simplify(processed); System.out.print("Simplified:\t"); j.println(simp); System.o...
1,116,915
public void processEquation(Node node) { try { System.out.print("fun:\t\t"); j.println(node); Node processed = j.commandv.process(node,j); System.out.print("Processed:\t"); j.println(processed); Node simp = j.simplify(processed); System.out.print("Simplified:\t"); j.println(simp); System.o...
public void processEquation(Node node) { try { System.out.print("fun:\t\t"); j.println(node); Node processed = j.commandv.process(node,j); System.out.print("Processed:\t"); j.println(processed); Node simp = j.simplify(processed); System.out.print("Simplified:\t"); j.println(simp); System.o...
1,116,916
public void processEquation(Node node) { try { System.out.print("fun:\t\t"); j.println(node); Node processed = j.commandv.process(node,j); System.out.print("Processed:\t"); j.println(processed); Node simp = j.simplify(processed); System.out.print("Simplified:\t"); j.println(simp); System.o...
public void processEquation(Node node) { try { System.out.print("fun:\t\t"); j.println(node); Node processed = j.commandv.process(node,j); System.out.print("Processed:\t"); j.println(processed); Node simp = j.simplify(processed); System.out.print("Simplified:\t"); j.println(simp); System.o...
1,116,917
public Object div(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) return div((Number)param1, (Number)param2); else if (param2 instanceof Complex) return div((Number)param1, (Complex)param2); else if (param2 instanceof Vector) return ...
public Object div(Object param1, Object param2) throws ParseException { if (param1 instanceof Complex) { if (param2 instanceof Number) return div((Number)param1, (Number)param2); else if (param2 instanceof Complex) return div((Number)param1, (Complex)param2); else if (param2 instanceof Vector) return...
1,116,919
public Object div(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) return div((Number)param1, (Number)param2); else if (param2 instanceof Complex) return div((Number)param1, (Complex)param2); else if (param2 instanceof Vector) return ...
public Object div(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Complex) return div((Complex)param1, (Complex)param2); else if (param2 instanceof Number) return div((Complex)param1, (Number)param2); else if (param2 instanceof Vector) return div((Comple...
1,116,920
public Object div(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) return div((Number)param1, (Number)param2); else if (param2 instanceof Complex) return div((Number)param1, (Complex)param2); else if (param2 instanceof Vector) return ...
public Object div(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) return div((Number)param1, (Number)param2); else if (param2 instanceof Complex) return div((Number)param1, (Complex)param2); else if (param2 instanceof Vector) return ...
1,116,921
public Object div(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) return div((Number)param1, (Number)param2); else if (param2 instanceof Complex) return div((Number)param1, (Complex)param2); else if (param2 instanceof Vector) return ...
public Object div(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) return div((Number)param1, (Number)param2); else if (param2 instanceof Complex) return div((Number)param1, (Complex)param2); else if (param2 instanceof Vector) return ...
1,116,922
public Object div(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) return div((Number)param1, (Number)param2); else if (param2 instanceof Complex) return div((Number)param1, (Complex)param2); else if (param2 instanceof Vector) return ...
public Object div(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Complex) return div((Vector)param1, (Complex)param2); else if (param2 instanceof Number) return div((Number)param1, (Number)param2); else if (param2 instanceof Complex) return div(...
1,116,923
public Object div(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) return div((Number)param1, (Number)param2); else if (param2 instanceof Complex) return div((Number)param1, (Complex)param2); else if (param2 instanceof Vector) return ...
public Object div(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) return div((Number)param1, (Number)param2); else if (param2 instanceof Complex) return div((Number)param1, (Complex)param2); else if (param2 instanceof Vector) return ...
1,116,924
public void setValueAt(Object value, int row, int col) { Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : m.setName(value.toString()); /* if (NewSwingApp.DEBUG){ System.out.println("value is:" + value); }*/ case 1 : m.setAmount(Double.parseDouble(value.toString(...
public void setValueAt(Object value, int row, int col) { Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : m.setName(value.toString()); /* if (NewSwingApp.DEBUG){ System.out.println("value is:" + value); }*/ case 1 : m.setAmount(Double.parseDouble(value.toString(...
1,116,925
private List<Entity> createEntities() { List<Entity> entities = new ArrayList<Entity>(); for (int i = 1; i<=10; i++) { Entity e = entityCreator.entityFactory(home, "ENTITY"+i); entities.add(e); } return entities; }
private List<Entity> createEntities() { List<Entity> entities = new ArrayList<Entity>(); for (int i = 1; i<=3; i++) { Entity e = entityCreator.entityFactory(home, "ENTITY"+i); entities.add(e); } return entities; }
1,116,926
private List<User> populateUsersAndLogs(List<Entity> entities) { List<Identity> identities = new ArrayList<Identity>(); for (int i = 1; i<=3; i++) { Identity c = userCreator.identityFactory("CRED"+i, "ALIAS"+i); identities.add(c); } List<User> users = new ArrayList<...
private List<User> populateUsersAndLogs(List<Entity> entities) { List<Identity> identities = new ArrayList<Identity>(); for (int i = 1; i<=3; i++) { Identity c = userCreator.identityFactory("CRED"+i, "ALIAS"+i); identities.add(c); } List<User> users = new ArrayList<...
1,116,927
private List<User> populateUsersAndLogs(List<Entity> entities) { List<Identity> identities = new ArrayList<Identity>(); for (int i = 1; i<=3; i++) { Identity c = userCreator.identityFactory("CRED"+i, "ALIAS"+i); identities.add(c); } List<User> users = new ArrayList<...
private List<User> populateUsersAndLogs(List<Entity> entities) { List<Identity> identities = new ArrayList<Identity>(); for (int i = 1; i<=3; i++) { Identity c = userCreator.identityFactory("CRED"+i, "ALIAS"+i); identities.add(c); } List<User> users = new ArrayList<...
1,116,928
private List<User> populateUsersAndLogs(List<Entity> entities) { List<Identity> identities = new ArrayList<Identity>(); for (int i = 1; i<=3; i++) { Identity c = userCreator.identityFactory("CRED"+i, "ALIAS"+i); identities.add(c); } List<User> users = new ArrayList<...
private List<User> populateUsersAndLogs(List<Entity> entities) { List<Identity> identities = new ArrayList<Identity>(); for (int i = 1; i<=3; i++) { Identity c = userCreator.identityFactory("CRED"+i, "ALIAS"+i); identities.add(c); } List<User> users = new ArrayList<...
1,116,929
private List<User> populateUsersAndLogs(List<Entity> entities) { List<Identity> identities = new ArrayList<Identity>(); for (int i = 1; i<=3; i++) { Identity c = userCreator.identityFactory("CRED"+i, "ALIAS"+i); identities.add(c); } List<User> users = new ArrayList<...
private List<User> populateUsersAndLogs(List<Entity> entities) { List<Identity> identities = new ArrayList<Identity>(); for (int i = 1; i<=3; i++) { Identity c = userCreator.identityFactory("CRED"+i, "ALIAS"+i); identities.add(c); } List<User> users = new ArrayList<...
1,116,930
public static SvnInfo parse(String subject, Map env, FilePath workspace, TaskListener listener) throws IOException { String cmd = DESCRIPTOR.getSvnExe()+" info --xml "+subject; listener.getLogger().println("$ "+cmd); ByteArrayOutputStream baos = new ByteArrayOutputStream(); ...
public static SvnInfo parse(String subject, Map env, FilePath workspace, TaskListener listener) throws IOException { String cmd = DESCRIPTOR.getSvnExe()+" info --xml "+subject; listener.getLogger().println("$ "+cmd); ByteArrayOutputStream baos = new ByteArrayOutputStream(); ...
1,116,931
public void testPersistDefaultEntitySuccess() { simpleCoreMgr.persistDefaultEntity(defaultEntity); hibernateTemplate.flush(); List<Home> homeList = hibernateTemplate.find("from Home"); assertEquals(1, homeList.size()); Home h = homeList.get(0); assertEquals ...
public void testPersistDefaultEntitySuccess() { simpleCoreMgr.persistDefaultEntity(defaultEntity); hibernateTemplate.flush(); List<Home> homeList = (ArrayList<Home>) hibernateTemplate.find("from Home"); assertEquals(1, homeList.size()); Home h = homeList.get(0); ...
1,116,932
public void testPersistDefaultEntitySuccess() { simpleCoreMgr.persistDefaultEntity(defaultEntity); hibernateTemplate.flush(); List<Home> homeList = hibernateTemplate.find("from Home"); assertEquals(1, homeList.size()); Home h = homeList.get(0); assertEquals ...
public void testPersistDefaultEntitySuccess() { simpleCoreMgr.persistDefaultEntity(defaultEntity); hibernateTemplate.flush(); List<Home> homeList = hibernateTemplate.find("from Home"); assertEquals(1, homeList.size()); Home h = homeList.get(0); assertEquals ...
1,116,933
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...
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...
1,116,934
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...
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...
1,116,935
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals("preferredWidth")) { TableColumnModel tcm = hopsTable.getColumnModel(); TableColumnModel tcmt = tblHopsTotals.getColumnModel(); int columnCount = tcm.getColumnCount(); // for each column, get its width for (...
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals("preferredWidth")) { TableColumnModel tcm = hopsTable.getColumnModel(); TableColumnModel tcmt = tblHopsTotals.getColumnModel(); int colCount = tcm.getColumnCount(); // for each column, get its width for (int...
1,116,936
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals("preferredWidth")) { TableColumnModel tcm = hopsTable.getColumnModel(); TableColumnModel tcmt = tblHopsTotals.getColumnModel(); int columnCount = tcm.getColumnCount(); // for each column, get its width for (...
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals("preferredWidth")) { TableColumnModel tcm = hopsTable.getColumnModel(); TableColumnModel tcmt = tblHopsTotals.getColumnModel(); int columnCount = tcm.getColumnCount(); // for each column, get its width for (...
1,116,937
public String toXml() { StringBuffer sb = new StringBuffer(); sb.append(" <MASH>\n"); sb.append(SBStringUtils.xmlElement("VOLUME", getMashTotalVol(), 4)); for (int i = 0; i < steps.size(); i++) { MashStep st = (MashStep) steps.get(i); sb.append(" <ITEM>\n"); sb.append(" <TYPE>" + st.type + "</TYPE...
public String toXml() { StringBuffer sb = new StringBuffer(); sb.append(" <MASH>\n"); sb.append(SBStringUtils.xmlElement("MASH_VOLUME", getMashTotalVol(), 4)); sb.append(SBStringUtils.xmlElement("MASH_RATIO", "" + mashRatio, 4)); sb.append(SBStringUtils.xmlElement("MASH_TIME", "" + totalTime, 4)); sb.append(SBSt...
1,116,939
protected String[] getConfigLocations() { return new String[] { "deploy/dataSource.xml", "deploy/sessionFactory.xml", "deploy/support.xml", "deploy/transaction.xml", "deploy/partner.xml"}; }
protected String[] getConfigLocations() { return new String[] { "deploy/dataSource.xml", "deploy/sessionFactory.xml", "deploy/support.xml", "deploy/transaction.xml", "deploy/core.xml"}; }
1,116,940
public Object dot(Object param1, Object param2) throws ParseException { if(param1 instanceof MVector && param2 instanceof MVector) return dot((MVector) param1,(MVector) param2); return super.mul(param1,param2); }
public Object dot(Object param1, Object param2) throws ParseException { if(param1 instanceof MVector && param2 instanceof MVector) return dot((MVector) param1,(MVector) param2); else return super.mul(param1,param2); }
1,116,941
public void parseExpression(String expression_in) { Reader reader = new StringReader(expression_in); try { // try parsing errorList.clear(); topNode = parser.parseStream(reader, this); } catch (Throwable e) { // an exception was thrown, so there is no parse tree topNode = null; // check the type of...
public void parseExpression(String expression_in) { Reader reader = new StringReader(expression_in); try { // try parsing errorList.removeAllElements(); topNode = parser.parseStream(reader, this); } catch (Throwable e) { // an exception was thrown, so there is no parse tree topNode = null; // check...
1,116,942
public void parseExpression(String expression_in) { Reader reader = new StringReader(expression_in); try { // try parsing errorList.clear(); topNode = parser.parseStream(reader, this); } catch (Throwable e) { // an exception was thrown, so there is no parse tree topNode = null; // check the type of...
public void parseExpression(String expression_in) { Reader reader = new StringReader(expression_in); try { // try parsing errorList.clear(); topNode = parser.parseStream(reader, this); } catch (Throwable e) { // an exception was thrown, so there is no parse tree topNode = null; // check the type of...
1,116,943
public void parseExpression(String expression_in) { Reader reader = new StringReader(expression_in); try { // try parsing errorList.clear(); topNode = parser.parseStream(reader, this); } catch (Throwable e) { // an exception was thrown, so there is no parse tree topNode = null; // check the type of...
public void parseExpression(String expression_in) { Reader reader = new StringReader(expression_in); try { // try parsing errorList.clear(); topNode = parser.parseStream(reader, this); } catch (Throwable e) { // an exception was thrown, so there is no parse tree topNode = null; // check the type of...
1,116,944
public int getValue() { return value; }
public char getValue() { return value; }
1,116,945
public void testFindIdentities() { // write list int e = 2; int d = 3; List<UserGroup> userList = AuthorizationTestSupport.createAndPersistUserGroupList(hibernateTemplate, e, d); assertEquals(e*d, userList.size()); UserGroup parent = AuthorizationTestSupport.createUserGroup...
public void testFindIdentities() { // write list int e = 2; int d = 3; List<UserGroup> userList = AuthorizationTestSupport.createAndPersistUserGroupList(hibernateTemplate, e, d); assertEquals(e*d, userList.size()); UserGroup parent = AuthorizationTestSupport.createUserGroup...
1,116,946
public MatrixNodeI preprocess( ASTFunNode node, MatrixPreprocessor visitor, MatrixJep jep, MatrixNodeFactory nf) throws ParseException { MatrixNodeI children[] = visitor.visitChildrenAsArray(node,null); if(node.jjtGetNumChildren()!=2) throw new ParseException("Operator "+node.getOperator().getName()+" must have...
public MatrixNodeI preprocess( ASTFunNode node, MatrixPreprocessor visitor, MatrixJep jep, MatrixNodeFactory nf) throws ParseException { MatrixNodeI children[] = visitor.visitChildrenAsArray(node,null); if(node.jjtGetNumChildren()!=2) throw new ParseException("Operator "+node.getOperator().getName()+" must have...
1,116,948
public Number im(Object param) throws ParseException { if (param instanceof Number) { return new Double(0); } else if (param instanceof Complex) { return new Double(((Complex)param).im()); } throw new ParseException("Invalid parameter type"); }
public Number im(Object param) throws ParseException { if (param instanceof Complex) return new Double(((Complex)param).im()); else if (param instanceof Number) return new Double(0); } else if (param instanceof Complex) { return new Double(((Complex)param).im()); } throw new ParseException("Invalid parameter...
1,116,949
public Number im(Object param) throws ParseException { if (param instanceof Number) { return new Double(0); } else if (param instanceof Complex) { return new Double(((Complex)param).im()); } throw new ParseException("Invalid parameter type"); }
public Number im(Object param) throws ParseException { if (param instanceof Number) { return new Double(0); } else if (param instanceof Complex) { return new Double(((Complex)param).im()); } throw new ParseException("Invalid parameter type"); }
1,116,950
public PluginManager(ServletContext context) { this.context = context; rootDir = new File(Hudson.getInstance().getRootDir(),"plugins"); if(!rootDir.exists()) rootDir.mkdirs(); File[] archives = rootDir.listFiles(new FilenameFilter() { public boolean accept(F...
public PluginManager(ServletContext context) { this.context = context; rootDir = new File(Hudson.getInstance().getRootDir(),"plugins"); if(!rootDir.exists()) rootDir.mkdirs(); File[] archives = rootDir.listFiles(new FilenameFilter() { public boolean accept(F...
1,116,951
public boolean accept(File dir, String name) { return name.endsWith(".hudson-plugin"); }
public boolean accept(File dir, String name) { return name.endsWith(".hudson-plugin"); }
1,116,952
public void updateAmp(AmpEvent event){ if(event instanceof LazyAmpEvent){ ((LazyAmpEvent)event).addCalculateListener(this); }else{ setUnitRange(event.getAmp()); } }
public void updateAmp(AmpEvent event){ if(event instanceof LazyAmpEvent){ ((LazyAmpEvent)event).addCalculateListener(this); }else{ setUnitRange(event.getAmp()); } }
1,116,953
public void write(int b) throws IOException { // this call will always return at least 1 directly or after blocking. bandwidthController.getAvailableByteCount( true ); outStream.write(b); bandwidthController.markBytesUsed( 1 ); }
public void write(int b) throws IOException { // this call will always return at least 1 directly or after blocking. bandwidthController.getAvailableByteCount( 1, true, true ); outStream.write(b); bandwidthController.markBytesUsed( 1 ); }
1,116,954
public void write(int b) throws IOException { // this call will always return at least 1 directly or after blocking. bandwidthController.getAvailableByteCount( true ); outStream.write(b); bandwidthController.markBytesUsed( 1 ); }
public void write(int b) throws IOException { // this call will always return at least 1 directly or after blocking. bandwidthController.getAvailableByteCount( true ); outStream.write(b); }
1,116,955
public synchronized void doDoDelete( StaplerRequest req, StaplerResponse rsp ) throws IOException { Util.deleteRecursive(root); getParent().jobs.remove(name); rsp.sendRedirect(req.getContextPath()); }
public synchronized void doDoDelete( StaplerRequest req, StaplerResponse rsp ) throws IOException { Util.deleteRecursive(root); getParent().deleteJob(this); rsp.sendRedirect(req.getContextPath()); }
1,116,956
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...
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...
1,116,957
public void processResponse( QueryResponseMsg msg ) { long speed = msg.getRemoteHostSpeed(); GUID rcID = msg.getRemoteClientID(); DestAddress address = msg.getDestAddress(); QueryHitHost qhHost = new QueryHitHost( rcID, address, speed ); qhHost.setQHDFlags( msg.getPushNeededFla...
public void processResponse( QueryResponseMsg msg ) { long speed = msg.getRemoteHostSpeed(); GUID rcID = msg.getRemoteClientID(); DestAddress address = msg.getDestAddress(); QueryHitHost qhHost = new QueryHitHost( rcID, address, speed ); qhHost.setQHDFlags( msg.getPushNeededFla...
1,116,958
public void processResponse( QueryResponseMsg msg ) { long speed = msg.getRemoteHostSpeed(); GUID rcID = msg.getRemoteClientID(); DestAddress address = msg.getDestAddress(); QueryHitHost qhHost = new QueryHitHost( rcID, address, speed ); qhHost.setQHDFlags( msg.getPushNeededFla...
public void processResponse( QueryResponseMsg msg ) { long speed = msg.getRemoteHostSpeed(); GUID rcID = msg.getRemoteClientID(); DestAddress address = msg.getDestAddress(); QueryHitHost qhHost = new QueryHitHost( rcID, address, speed ); qhHost.setQHDFlags( msg.getPushNeededFla...
1,116,959
public void processResponse( QueryResponseMsg msg ) { long speed = msg.getRemoteHostSpeed(); GUID rcID = msg.getRemoteClientID(); DestAddress address = msg.getDestAddress(); QueryHitHost qhHost = new QueryHitHost( rcID, address, speed ); qhHost.setQHDFlags( msg.getPushNeededFla...
public void processResponse( QueryResponseMsg msg ) { long speed = msg.getRemoteHostSpeed(); GUID rcID = msg.getRemoteClientID(); DestAddress address = msg.getDestAddress(); QueryHitHost qhHost = new QueryHitHost( rcID, address, speed ); qhHost.setQHDFlags( msg.getPushNeededFla...
1,116,960
public void processResponse( QueryResponseMsg msg ) { long speed = msg.getRemoteHostSpeed(); GUID rcID = msg.getRemoteClientID(); DestAddress address = msg.getDestAddress(); QueryHitHost qhHost = new QueryHitHost( rcID, address, speed ); qhHost.setQHDFlags( msg.getPushNeededFla...
public void processResponse( QueryResponseMsg msg ) { long speed = msg.getRemoteHostSpeed(); GUID rcID = msg.getRemoteClientID(); DestAddress address = msg.getDestAddress(); QueryHitHost qhHost = new QueryHitHost( rcID, address, speed ); qhHost.setQHDFlags( msg.getPushNeededFla...
1,116,961
public void actionPerformed( ActionEvent e ) { SWDownloadCandidate[] candidates = getSelectedDownloadCandidates(); for ( int i = 0; i < candidates.length; i++ ) { candidates[i].manualConnectionRetry(); } }
public void actionPerformed( ActionEvent e ) { SWDownloadCandidate[] candidates = getSelectedDownloadCandidates(); for ( int i = 0; i < candidates.length; i++ ) { if ( candidates[i] != null ) { candidates[i].manualConnectionRetry(); } } }
1,116,962
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs,MatrixValueI rhs) throws ParseException { Number num = (Number) rhs.getEle(0); res.setEle(0,lhs.getEle(num.intValue()+1)); return res; }
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI param1,MatrixValueI param2) throws ParseException { Number num = (Number) rhs.getEle(0); res.setEle(0,lhs.getEle(num.intValue()+1)); return res; }
1,116,963
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs,MatrixValueI rhs) throws ParseException { Number num = (Number) rhs.getEle(0); res.setEle(0,lhs.getEle(num.intValue()+1)); return res; }
public MatrixValueI calcValue(MatrixValueI res, MatrixValueI lhs,MatrixValueI rhs) throws ParseException { Number num = (Number) rhs.getEle(0); res.setEle(0,lhs.getEle(num.intValue()+1)); return res; }
1,116,964
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0: // steep return data.getMaltSteep(row); case 1: // mash return data.getMaltMashed(row); case 2 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed...
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0: // steep return new Boolean(data.getMaltSteep(row)); case 1: // mash return data.getMaltMashed(row); case 2 : // indicate this is a sugar: String s = ""; if (!data....
1,116,965