bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void run() { BuildListener listener = new StreamBuildListener(log); Result result = Result.FAILURE; File destdir = null; listener.started(); try { destdir = Util.createTempDir(); // unzip ...
public void run() { BuildListener listener = new StreamBuildListener(log); Result result = Result.FAILURE; File destdir = null; listener.started(); try { destdir = Util.createTempDir(); // unzip ...
1,115,935
public CVSChangeLogSet parse(File changelogFile) throws IOException, SAXException { return CVSChangeLogSet.parse(changelogFile); }
public CVSChangeLogSet parse(Build build, File changelogFile) throws IOException, SAXException { return CVSChangeLogSet.parse(changelogFile); }
1,115,936
public Part partFactory(String partNumber, String partName) { // TODO Auto-generated method stub return null; }
public Part partFactory(String partNumber, String partName) { // TODO Auto-generated method stub return null; }
1,115,937
public Part partWithDrawingFactory(String drawingNumber, String drawingName) { // TODO Auto-generated method stub return null; }
public Part partWithDrawingFactory(String drawingNumber, String drawingName) { // TODO Auto-generated method stub return null; }
1,115,938
public void testDetailsView() throws Exception { processView("identity/details.ftl"); }
public void testDetailsView() throws Exception { processView("identity/details.ftl", model, true); }
1,115,939
public void testPrincipalView() throws Exception { processView("identity/principal.ftl"); }
public void testPrincipalView() throws Exception { processView("identity/principal.ftl", model, true); }
1,115,940
public Object ln(Object param) throws ParseException { if (param instanceof Number) { // TODODONE: think about only returning Complex if param is <0 double num = ((Number) param).doubleValue(); if( num > 0) return new Double(Math.log(num)); else { Complex temp = new Complex(num); return temp.log...
public Object ln(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).log(); } else if (param instanceof Number) { // TODODONE: think about only returning Complex if param is <0 double num = ((Number) param).doubleValue(); if( num > 0) return new Double(Math.log(num...
1,115,941
public Object ln(Object param) throws ParseException { if (param instanceof Number) { // TODODONE: think about only returning Complex if param is <0 double num = ((Number) param).doubleValue(); if( num > 0) return new Double(Math.log(num)); else { Complex temp = new Complex(num); return temp.log...
public Object ln(Object param) throws ParseException { if (param instanceof Number) { // TODODONE: think about only returning Complex if param is <0 double num = ((Number) param).doubleValue(); if( num > 0) return new Double(Math.log(num)); else { Complex temp = new Complex(num); return temp.log...
1,115,942
public boolean eq(Object param1, Object param2) throws ParseException { if ((param1 instanceof Complex) && (param2 instanceof Complex)) { return ((Complex)param1).equals((Complex)param2, tolerance); } if ((param1 instanceof Complex) && (param2 instanceof Double)) { return ((Complex)param1).equals(new Complex(...
public boolean eq(Object param1, Object param2) throws ParseException { if ((param1 instanceof Complex) && (param2 instanceof Complex)) { return ((Complex)param1).equals((Complex)param2, tolerance); } if ((param1 instanceof Complex) && (param2 instanceof Number)) { return ((Complex)param1).equals(new Complex(...
1,115,943
public boolean eq(Object param1, Object param2) throws ParseException { if ((param1 instanceof Complex) && (param2 instanceof Complex)) { return ((Complex)param1).equals((Complex)param2, tolerance); } if ((param1 instanceof Complex) && (param2 instanceof Double)) { return ((Complex)param1).equals(new Complex(...
public boolean eq(Object param1, Object param2) throws ParseException { if ((param1 instanceof Complex) && (param2 instanceof Complex)) { return ((Complex)param1).equals((Complex)param2, tolerance); } if ((param1 instanceof Complex) && (param2 instanceof Double)) { return ((Complex)param1).equals(new Complex(...
1,115,944
public boolean ne(Object param1, Object param2) throws ParseException { if ((param1 instanceof Complex) && (param2 instanceof Complex)) { return !((Complex)param1).equals((Complex)param2, tolerance); } if ((param1 instanceof Complex) && (param2 instanceof Double)) { return !((Complex)param1).equals(new Comple...
public boolean ne(Object param1, Object param2) throws ParseException { if ((param1 instanceof Complex) && (param2 instanceof Complex)) { return !((Complex)param1).equals((Complex)param2, tolerance); } if ((param1 instanceof Complex) && (param2 instanceof Number)) { return !((Complex)param1).equals(new Comple...
1,115,945
public boolean ne(Object param1, Object param2) throws ParseException { if ((param1 instanceof Complex) && (param2 instanceof Complex)) { return !((Complex)param1).equals((Complex)param2, tolerance); } if ((param1 instanceof Complex) && (param2 instanceof Double)) { return !((Complex)param1).equals(new Comple...
public boolean ne(Object param1, Object param2) throws ParseException { if ((param1 instanceof Complex) && (param2 instanceof Complex)) { return !((Complex)param1).equals((Complex)param2, tolerance); } if ((param1 instanceof Complex) && (param2 instanceof Double)) { return !((Complex)param1).equals(new Comple...
1,115,946
public void mouseReleased(MouseEvent e) { if (SwingUtilities.isLeftMouseButton(e) ) { AbstractButton b = (AbstractButton) e.getSource(); if ( b.isSelected() ) { int w = closeIcon.getIco...
public void mouseReleased(MouseEvent e) { if (SwingUtilities.isLeftMouseButton(e) ) { AbstractButton b = (AbstractButton) e.getSource(); if ( b.isSelected() ) { int w = closeIcon.getIco...
1,115,947
public void mouseReleased(MouseEvent e) { if (SwingUtilities.isLeftMouseButton(e) ) { AbstractButton b = (AbstractButton) e.getSource(); if ( b.isSelected() ) { int w = closeIcon.getIco...
public void mouseReleased(MouseEvent e) { if (SwingUtilities.isLeftMouseButton(e) ) { AbstractButton b = (AbstractButton) e.getSource(); if ( b.isSelected() ) { int w = closeIcon.getIco...
1,115,948
public SearchButton( Search search ) { super( ); this.search = search; search.addSearchChangeListener(this); updateButtonDisplay(); setUI( new SearchButtonUI() ); setBorder( GUIUtils.ROLLOVER_BUTTON_BORDER ); setRolloverEnabled( true ); setHorizonta...
public SearchButton( Search search, SearchTab searchTab ) { super( ); this.search = search; search.addSearchChangeListener(this); updateButtonDisplay(); setUI( new SearchButtonUI() ); setBorder( GUIUtils.ROLLOVER_BUTTON_BORDER ); setRolloverEnabled( true )...
1,115,949
protected final void run(Runner job) { if(result!=null) return; // already built. state = State.BUILDING; long start = System.currentTimeMillis(); BuildListener listener=null; try { final PrintStream log = new PrintStream(new FileOutputStream(getLogFile()...
protected final void run(Runner job) { if(result!=null) return; // already built. state = State.BUILDING; long start = System.currentTimeMillis(); BuildListener listener=null; try { final PrintStream log = new PrintStream(new FileOutputStream(getLogFile()...
1,115,951
protected final void run(Runner job) { if(result!=null) return; // already built. state = State.BUILDING; long start = System.currentTimeMillis(); BuildListener listener=null; try { final PrintStream log = new PrintStream(new FileOutputStream(getLogFile()...
protected final void run(Runner job) { if(result!=null) return; // already built. state = State.BUILDING; long start = System.currentTimeMillis(); BuildListener listener=null; try { final PrintStream log = new PrintStream(new FileOutputStream(getLogFile()...
1,115,952
protected final void run(Runner job) { if(result!=null) return; // already built. state = State.BUILDING; long start = System.currentTimeMillis(); BuildListener listener=null; try { final PrintStream log = new PrintStream(new FileOutputStream(getLogFile()...
protected final void run(Runner job) { if(result!=null) return; // already built. state = State.BUILDING; long start = System.currentTimeMillis(); BuildListener listener=null; try { final PrintStream log = new PrintStream(new FileOutputStream(getLogFile()...
1,115,953
protected final void run(Runner job) { if(result!=null) return; // already built. state = State.BUILDING; long start = System.currentTimeMillis(); BuildListener listener=null; try { final PrintStream log = new PrintStream(new FileOutputStream(getLogFile()...
protected final void run(Runner job) { if(result!=null) return; // already built. state = State.BUILDING; long start = System.currentTimeMillis(); BuildListener listener=null; try { final PrintStream log = new PrintStream(new FileOutputStream(getLogFile()...
1,115,954
protected final void run(Runner job) { if(result!=null) return; // already built. state = State.BUILDING; long start = System.currentTimeMillis(); BuildListener listener=null; try { final PrintStream log = new PrintStream(new FileOutputStream(getLogFile()...
protected final void run(Runner job) { if(result!=null) return; // already built. state = State.BUILDING; long start = System.currentTimeMillis(); BuildListener listener=null; try { final PrintStream log = new PrintStream(new FileOutputStream(getLogFile()...
1,115,955
CaseResult(Element testCase) { className = testCase.attributeValue("classname"); testName = testCase.attributeValue("name"); errorStackTrace = getError(testCase); }
CaseResult(Element testCase) { className = testCase.attributeValue("classname"); testName = testCase.attributeValue("name"); errorStackTrace = getError(testCase); }
1,115,956
public MultiplyDiffRule(String inName) { //dv = inDv; name = inName; }
public MultiplyDiffRule(String inName) { //dv = inDv; name = inName; }
1,115,957
public DivideDiffRule(String inName) { //dv = inDv; name = inName; }
public DivideDiffRule(String inName) { //dv = inDv; name = inName; }
1,115,958
public PowerDiffRule(String inName) { name = inName; }
public PowerDiffRule(String inName) { name = inName; }
1,115,959
public MacroDiffRules(DJep djep,String inName,String rule) throws ParseException { this(djep,inName,djep.getFunctionTable().get(inName),rule); }
public MacroDiffRules(DJep djep,String inName,Node node) throws ParseException { this(djep,inName,djep.getFunctionTable().get(inName),rule); }
1,115,960
public MacroDiffRules(DJep djep,String inName,String rule) throws ParseException { this(djep,inName,djep.getFunctionTable().get(inName),rule); }
public MacroDiffRules(DJep djep,String inName,String rule) throws ParseException { name = inName; pfmc = djep.getFunctionTable().get(inName); if(pfmc!=null) { int nParam = pfmc.getNumberOfParameters(); if(nParam != 1) throw new ParseException("Number of rules must match number of parameters for "+inName+" which is "+...
1,115,961
public Variable makeVarIfNeeded(String name) { Variable var = (Variable) super.get(name); if(var != null) return var; var = createVariable(name); super.put(name,var); return var; }
public Variable makeVarIfNeeded(String name,Object val) { Variable var = (Variable) super.get(name); if(var != null) return var; var = createVariable(name); super.put(name,var); return var; }
1,115,962
public Variable makeVarIfNeeded(String name) { Variable var = (Variable) super.get(name); if(var != null) return var; var = createVariable(name); super.put(name,var); return var; }
public Variable makeVarIfNeeded(String name) { Variable var = (Variable) super.get(name); if(var != null) return var; var = createVariable(name); super.put(name,var); return var; }
1,115,963
public void persistPersonalData(PersonalData personalData) { userDao.persistPersonalData(personalData); }
public void persistPersonalData(PersonalData personalData) { userDao.persistPersonalData(personalData); }
1,115,964
public void start() throws Exception { BuildStep.PUBLISHERS.add(SQETestResultPublisher.DESCRIPTOR); }
public void start() throws Exception { BuildStep.PUBLISHERS.add(0,SQETestResultPublisher.DESCRIPTOR); }
1,115,965
private XJBSWDownloadList createXJBSWDownloadList() throws JAXBException { ObjectFactory objFactory = new ObjectFactory(); XJBSWDownloadList swDownloadList = objFactory.createXJBSWDownloadList(); synchronized( downloadList ) { Iterator...
private XJBSWDownloadList createXJBSWDownloadList() throws JAXBException { ObjectFactory objFactory = new ObjectFactory(); XJBSWDownloadList swDownloadList = objFactory.createXJBSWDownloadList(); synchronized( downloadList ) { Iterator...
1,115,966
public SWDownloadFile getDownloadFileByURN( URN matchURN ) { SWDownloadFile file; synchronized( downloadList ) { file = (SWDownloadFile)urnToDownloadMap.get( matchURN ); return file; } }
public SWDownloadFile getDownloadFileByURN( URN matchURN ) { SWDownloadFile file; synchronized( downloadList ) { file = urnToDownloadMap.get( matchURN ); return file; } }
1,115,967
public void setRegistrar(AmpConfigRegistrar ampConfig){ if(ampConfig instanceof AmpConfigRegistrar) ampConfig.removeAmpSyncListener(this); this.ampConfig = ampConfig; Iterator e = seismograms.iterator(); while(e.hasNext()) ampConfig.addSeismogram(((LocalSeismogram)e.next())); ampConfig.addAmpSyncListener(t...
public void setRegistrar(AmpConfigRegistrar ampConfig){ if(ampConfig instanceof AmpConfigRegistrar) ampConfig.removeAmpSyncListener(this); this.ampConfig = ampConfig; Iterator e = seismograms.iterator(); while(e.hasNext()) ampConfig.addSeismogram(((LocalSeismogram)e.next())); ampConfig.addAmpSyncListener(t...
1,115,968
public Object getValueAsObject() { Object result; if (topNode != null) { // errorList.clear(); // evaluate the expression try { result = EvaluatorVisitor.getInstance().getValue(topNode,errorList); } catch (Exception e) { if (debug) System.out.println(e); return null; } return result; ...
public Object getValueAsObject() { Object result; if (topNode != null) { // errorList.clear(); // evaluate the expression try { result = EvaluatorVisitor.getInstance().getValue(topNode,errorList); } catch (Exception e) { if (debug) System.out.println(e); return null; } return result; ...
1,115,969
public synchronized void doDoDelete( StaplerRequest req, StaplerResponse rsp ) throws IOException { if(!Hudson.adminCheck(req,rsp)) return; owner.deleteView(this); rsp.sendRedirect(req.getContextPath()+"/"); }
public synchronized void doDoDelete( StaplerRequest req, StaplerResponse rsp ) throws IOException { if(!Hudson.adminCheck(req,rsp)) return; owner.deleteView(this); rsp.sendRedirect2(req.getContextPath()+"/"); }
1,115,970
public AdditionDiffRule(String inName) { //dv = inDv; name = inName; }
public AdditionDiffRule(String inName) { //dv = inDv; name = inName; }
1,115,971
public void calcHopsTotals() { if (!allowRecalcs) return; double ibuTotal = 0; totalHopsCost = 0; totalHopsOz = 0; for (int i = 0; i < hops.size(); i++) { // calculate the average OG of the boil // first, the OG at the time of addition: double adjPreSize, aveOg = 0; Hop h = ((Hop) hops.get(i)); if (h....
public void calcHopsTotals() { if (!allowRecalcs) return; double ibuTotal = 0; totalHopsCost = 0; totalHopsOz = 0; for (int i = 0; i < hops.size(); i++) { // calculate the average OG of the boil // first, the OG at the time of addition: double adjPreSize, aveOg = 0; Hop h = ((Hop) hops.get(i)); if (h....
1,115,972
public void calcHopsTotals() { if (!allowRecalcs) return; double ibuTotal = 0; totalHopsCost = 0; totalHopsOz = 0; for (int i = 0; i < hops.size(); i++) { // calculate the average OG of the boil // first, the OG at the time of addition: double adjPreSize, aveOg = 0; Hop h = ((Hop) hops.get(i)); if (h....
public void calcHopsTotals() { if (!allowRecalcs) return; double ibuTotal = 0; totalHopsCost = 0; totalHopsOz = 0; for (int i = 0; i < hops.size(); i++) { // calculate the average OG of the boil // first, the OG at the time of addition: double adjPreSize, aveOg = 0; Hop h = ((Hop) hops.get(i)); if (h....
1,115,973
public void calcHopsTotals() { if (!allowRecalcs) return; double ibuTotal = 0; totalHopsCost = 0; totalHopsOz = 0; for (int i = 0; i < hops.size(); i++) { // calculate the average OG of the boil // first, the OG at the time of addition: double adjPreSize, aveOg = 0; Hop h = ((Hop) hops.get(i)); if (h....
public void calcHopsTotals() { if (!allowRecalcs) return; double ibuTotal = 0; totalHopsCost = 0; totalHopsOz = 0; for (int i = 0; i < hops.size(); i++) { // calculate the average OG of the boil // first, the OG at the time of addition: double adjPreSize, aveOg = 0; Hop h = ((Hop) hops.get(i)); if (h....
1,115,974
public Node apply(ASTFunNode node, Node[] children) throws ParseException { OperatorSet opSet = xj.getOperatorSet(); TreeUtils tu = xj.getTreeUtils(); Operator lhsOp = tu.getOperator(children[0]); Operator rhsOp = tu.getOperator(children[1]); if(lhsOp == opSet.getAdd() || lhsOp == opSet.getSubtract()) { /* (...
public Node apply(ASTFunNode node, Node[] children) throws ParseException { OperatorSet opSet = xj.getOperatorSet(); TreeUtils tu = xj.getTreeUtils(); Operator lhsOp = tu.getOperator(children[0]); Operator rhsOp = tu.getOperator(children[1]); if(lhsOp == opSet.getAdd() || lhsOp == opSet.getSubtract()) { /* (...
1,115,976
public void invoke( Search search, final RemoteFile remoteFile ) { TimerTask task = new TimerTask() { public void run() { try { DestAddress address = remoteFile.getHostAddress(); PhexSecurityManager securityMg...
public void invoke( Search search, final RemoteFile remoteFile ) { TimerTask task = new TimerTask() { public void run() { try { DestAddress address = remoteFile.getHostAddress(); PhexSecurityManager securityMg...
1,115,978
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,115,979
public Number getRootVal() { return rootVal; }
public Complex getRootVal() { return rootVal; }
1,115,980
public void setRootVal(Number complex) { rootVal = complex; }
public void setRootVal(Complex complex) { rootVal = complex; }
1,115,981
public static Server serverFactory(Operator requiredOperator, String serverName, ServerType serverType, Credential credential) { assertNotNull(requiredOperator); Server server = new Server(); server.setOperator(requiredOperator); server.setServerName(serverName); server.setServerH...
public static Server serverFactory(Operator requiredOperator, String serverName, ServerType serverType, Credential credential) { assertNotNull(requiredOperator); Server server = new Server(); server.setOperator(requiredOperator); server.setServerName(serverName); server.setServerH...
1,115,982
public static Credential credentialFactory(Identity identity, String password) { Credential credential = new Credential(); if (identity==null) { identity = identityFactory("", ""); } credential.setIdentity(identity); credential.setPassword(password); cred...
public static Credential credentialFactory(Identity requiredIdentity, String password) { Credential credential = new Credential(); if (identity==null) { identity = identityFactory("", ""); } credential.setIdentity(identity); credential.setPassword(password); ...
1,115,983
public static Credential credentialFactory(Identity identity, String password) { Credential credential = new Credential(); if (identity==null) { identity = identityFactory("", ""); } credential.setIdentity(identity); credential.setPassword(password); cred...
public static Credential credentialFactory(Identity identity, String password) { Credential credential = new Credential(); if (identity==null) { identity = identityFactory("", ""); } credential.setIdentity(identity); credential.setPassword(password); cred...
1,115,984
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,115,986
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,115,987
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.setUnitsFull(u); myRecipe.calcMaltTotals(); d...
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(); disp...
1,115,988
public void actionPerformed(ActionEvent evt) { String u = (String) cmbHopsUnitsModel.getSelectedItem(); int i = hopsTable.getSelectedRow(); if (myRecipe != null && i != -1) { Hop h = myRecipe.getHop(i); h.setUnitsFull(u); myRecipe.calcHopsTotals(); // tblHops.updateUI(); displayRecipe();...
public void actionPerformed(ActionEvent evt) { String u = (String) cmbHopsUnitsModel.getSelectedItem(); int i = hopsTable.getSelectedRow(); if (myRecipe != null && i != -1) { Hop h = myRecipe.getHop(i); h.convertTo(u); myRecipe.calcHopsTotals(); // tblHops.updateUI(); displayRecipe(); ...
1,115,989
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,115,990
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,115,991
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,115,992
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,115,993
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,115,994
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,115,995
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,115,996
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,115,997
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,115,998
public void actionPerformed(ActionEvent evt) { System.out.println("jButton1.actionPerformed, event=" + evt); //TODO add your code for jButton1.actionPerformed }
public void actionPerformed(ActionEvent evt) { saveFile(evt); //TODO add your code for jButton1.actionPerformed }
1,115,999
public void actionPerformed(ActionEvent evt) { int choice = 1; if (currentFile != null) { File file = currentFile; //This is where a real application would save the file. try { FileWriter out = new FileWriter(file); out.write(myRecipe.toXML()); out...
public void actionPerformed(ActionEvent evt) { int choice = 1; if (currentFile != null) { File file = currentFile; //This is where a real application would save the file. try { FileWriter out = new FileWriter(file); out.write(myRecipe.toXML()); out...
1,116,000
public void actionPerformed(ActionEvent evt) { int choice = 1; if (currentFile != null) { File file = currentFile; //This is where a real application would save the file. try { FileWriter out = new FileWriter(file); out.write(myRecipe.toXML()); out...
public void actionPerformed(ActionEvent evt) { int choice = 1; if (currentFile != null) { File file = currentFile; //This is where a real application would save the file. try { FileWriter out = new FileWriter(file); out.write(myRecipe.toXML()); out...
1,116,001
public void actionPerformed(ActionEvent evt) { // Copy current recipe to clipboard// save file as xml, then transform it to html File tmp = new File("tmp.html"); try { saveAsHTML(tmp, "ca/strangebrew/data/recipeToSimpleHtml.xslt"); HTMLViewer view = new HTMLVi...
public void actionPerformed(ActionEvent evt) { // Copy current recipe to clipboard// save file as xml, then transform it to html File tmp = new File("tmp.html"); try { saveAsHTML(tmp, "ca/strangebrew/data/recipeToSimpleHtml.xslt"); HTMLViewer view = new HTMLVi...
1,116,002
public void actionPerformed(ActionEvent evt) { // exit program processWindowEvent(new WindowEvent(owner,WindowEvent.WINDOW_CLOSING)); System.exit(0); }
public void actionPerformed(ActionEvent evt) { // exit program processWindowEvent(new WindowEvent(owner,WindowEvent.WINDOW_CLOSING)); System.exit(0); }
1,116,003
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,004
public void actionPerformed(ActionEvent evt) { ScaleRecipeDialog scaleRecipe = new ScaleRecipeDialog(owner); scaleRecipe.setModal(true); scaleRecipe.setVisible(true); }
public void actionPerformed(ActionEvent evt) { ScaleRecipeDialog scaleRecipe = new ScaleRecipeDialog(owner); scaleRecipe.setModal(true); scaleRecipe.setVisible(true); }
1,116,005
public void actionPerformed(ActionEvent evt) { MaltPercentDialog maltPercent = new MaltPercentDialog(owner); maltPercent.setModal(true); maltPercent.setVisible(true); }
public void actionPerformed(ActionEvent evt) { MaltPercentDialog maltPercent = new MaltPercentDialog(owner); maltPercent.setModal(true); maltPercent.setVisible(true); }
1,116,006
public int read() throws IOException { bandwidthController.getAvailableByteCount( true ); int val = inStream.read(); bandwidthController.markBytesUsed( 1 ); return val; }
public int read() throws IOException { bandwidthController.getAvailableByteCount( 1, true, true ); int val = inStream.read(); bandwidthController.markBytesUsed( 1 ); return val; }
1,116,007
public int read() throws IOException { bandwidthController.getAvailableByteCount( true ); int val = inStream.read(); bandwidthController.markBytesUsed( 1 ); return val; }
public int read() throws IOException { bandwidthController.getAvailableByteCount( true ); int val = inStream.read(); return val; }
1,116,008
public synchronized void markBytesUsed( int byteCount ) { updateWindow( false ); bytesRemaining -= byteCount; if ( bytesRemaining < 0 ) { updateWindow( true ); } short logLevel = NLogger.LOG_LEVEL_DEBUG; if ( bytesRemaining < 0 ) { ...
public synchronized void markBytesUsed( int byteCount ) throws IOException { updateWindow( false ); bytesRemaining -= byteCount; if ( bytesRemaining < 0 ) { updateWindow( true ); } short logLevel = NLogger.LOG_LEVEL_DEBUG; if ( bytesRemaining <...
1,116,009
public PostfixMathCommand() { numberOfParameters = 0; }
public PostfixMathCommand() { numberOfParameters = 0; curNumberOfParameters = 0; }
1,116,011
public void removeAll(MouseEvent me){ this.stopImageCreation(); seismograms.removeAll(); remove(seismograms); basicDisplays = new LinkedList(); sorter = new SeismogramSorter(); globalTimeRegistrar = new TimeConfigRegistrar(); globalAmpRegistrar = new AmpConfigRegistrar(); repaint(); }
public void removeAll(){ logger.debug("removing all displays"); this.stopImageCreation(); seismograms.removeAll(); remove(seismograms); basicDisplays = new LinkedList(); sorter = new SeismogramSorter(); globalTimeRegistrar = new TimeConfigRegistrar(); globalAmpRegistrar = new AmpConfigRegistrar(); repaint(); }
1,116,013
private ChangeLogSet calcChangeSet() { File changelogFile = new File(getRootDir(), "changelog.xml"); if(!changelogFile.exists()) return ChangeLogSet.EMPTY; try { return scm.parse(this,changelogFile); } catch (IOException e) { e.printStackTrace(); }...
private ChangeLogSet<? extends Entry> calcChangeSet() { File changelogFile = new File(getRootDir(), "changelog.xml"); if(!changelogFile.exists()) return ChangeLogSet.EMPTY; try { return scm.parse(this,changelogFile); } catch (IOException e) { e.printStack...
1,116,016
public ChangeLogSet<?> getChangeSet() { if(scm==null) scm = new CVSChangeLogParser(); if(changeSet==null) // cached value changeSet = calcChangeSet(); return changeSet; }
public ChangeLogSet<? extends Entry> getChangeSet() { if(scm==null) scm = new CVSChangeLogParser(); if(changeSet==null) // cached value changeSet = calcChangeSet(); return changeSet; }
1,116,017
public synchronized Map<String,String> getRevisionMap() throws IOException { if(revisionMap==null) revisionMap = SubversionSCM.parseRevisionFile(build); return revisionMap; }
public synchronized Map<String,Integer> getRevisionMap() throws IOException { if(revisionMap==null) revisionMap = SubversionSCM.parseRevisionFile(build); return revisionMap; }
1,116,018
public Recipe() { Options opts = new Options(); name = "My Recipe"; created = new GregorianCalendar(); efficiency = opts.getDProperty("optEfficiency"); //preBoilVol.setUnits(opts.getProperty("optSizeU")); // preBoilVol.setAmount(opts.getDProperty("optPreBoilVol")); // postBoilVol.setUnits(opts.getProperty("optS...
public Recipe() { opts = new Options(); mash = new Mash(this); name = "My Recipe"; created = new GregorianCalendar(); efficiency = opts.getDProperty("optEfficiency"); //preBoilVol.setUnits(opts.getProperty("optSizeU")); // preBoilVol.setAmount(opts.getDProperty("optPreBoilVol")); // postBoilVol.setUnits(opts.ge...
1,116,019
private double calcColour(double lov) { double colour = 0; if (colourMethod.equals("EBC")) { // From Greg Noonan's article at // http://brewingtechniques.com/bmg/noonan.html colour = 1.4922 * Math.pow(lov, 0.6859); // SRM // EBC is apr. SRM * 2.65 - 1.2 colour = (colour * 2.65) - 1.2; } else { // calcul...
private double calcColour(double lov, String method) { double colour = 0; if (colourMethod.equals("EBC")) { // From Greg Noonan's article at // http://brewingtechniques.com/bmg/noonan.html colour = 1.4922 * Math.pow(lov, 0.6859); // SRM // EBC is apr. SRM * 2.65 - 1.2 colour = (colour * 2.65) - 1.2; } els...
1,116,020
private double calcColour(double lov) { double colour = 0; if (colourMethod.equals("EBC")) { // From Greg Noonan's article at // http://brewingtechniques.com/bmg/noonan.html colour = 1.4922 * Math.pow(lov, 0.6859); // SRM // EBC is apr. SRM * 2.65 - 1.2 colour = (colour * 2.65) - 1.2; } else { // calcul...
private double calcColour(double lov) { double colour = 0; if (method.equals("EBC")) { // From Greg Noonan's article at // http://brewingtechniques.com/bmg/noonan.html colour = 1.4922 * Math.pow(lov, 0.6859); // SRM // EBC is apr. SRM * 2.65 - 1.2 colour = (colour * 2.65) - 1.2; } else { // calculates S...
1,116,021
public void calcMaltTotals() { if (!allowRecalcs) return; double maltPoints = 0; double mcu = 0; totalMaltLbs = 0; totalMaltCost = 0; totalMashLbs = 0; // first figure out the total we're dealing with for (int i = 0; i < fermentables.size(); i++) { Fermentable m = ((Fermentable) fermentables.get(i)); tot...
public void calcMaltTotals() { if (!allowRecalcs) return; double maltPoints = 0; double mcu = 0; totalMaltLbs = 0; totalMaltCost = 0; totalMashLbs = 0; // first figure out the total we're dealing with for (int i = 0; i < fermentables.size(); i++) { Fermentable m = ((Fermentable) fermentables.get(i)); tot...
1,116,022
public void searchAdded( Search search, int position ) { SearchButton btn = new SearchButton( search ); btn.addActionListener( buttonHandler ); synchronized ( accessLock ) { searchButtonMap.put(search, btn); searchButtonGroup.add(btn); addButto...
public void searchAdded( Search search, int position ) { SearchButton btn = new SearchButton( search, searchTab ); btn.addActionListener( buttonHandler ); synchronized ( accessLock ) { searchButtonMap.put(search, btn); searchButtonGroup.add(btn); ...
1,116,023
public void processEquation(Node node) throws Exception { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); if(ver...
public void processEquation(Node node) throws Exception { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); if(ver...
1,116,024
public void processEquation(Node node) throws Exception { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); if(ver...
public void processEquation(Node node) throws Exception { DJep j = (DJep) this.j; if(verbose) { print("Parsed:\t\t"); println(j.toString(node)); } Node processed = j.preprocess(node); if(verbose) { print("Processed:\t"); println(j.toString(processed)); } Node simp = j.simplify(processed); if(ver...
1,116,025
public void initComponent( DGuiSettings guiSettings ) { CellConstraints cc = new CellConstraints(); FormLayout layout = new FormLayout( "2dlu, fill:d:grow, 2dlu", // columns "2dlu, fill:d:grow, 4dlu, d, 2dlu"); //rows PanelBuilder contentBuilder = new PanelBuilder( layo...
public void initComponent( DGuiSettings guiSettings ) { CellConstraints cc = new CellConstraints(); FormLayout layout = new FormLayout( "2dlu, fill:d:grow, 2dlu", // columns "2dlu, fill:d:grow, 4dlu, d, 2dlu"); //rows PanelBuilder contentBuilder = new PanelBuilder( layo...
1,116,026
public void refresh() { catcherStatLabel.setText( String.valueOf( hostMgr.getCaughtHostsContainer().getCaughtHostsCount() ) ); gWebCacheStatLabel.setText( String.valueOf( gWebCacheCont.getGWebCacheCount() ) ); networkModel.fireTableDataChanged(); }
public void refresh() { catcherStatLabel.setText( String.valueOf( hostMgr.getCaughtHostsContainer().getCaughtHostsCount() ) ); networkModel.fireTableDataChanged(); }
1,116,027
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,028
private boolean isUpdatable(FilePath workspace,BuildListener listener) { StringTokenizer tokens = new StringTokenizer(modules); while(tokens.hasMoreTokens()) { String url = tokens.nextToken(); String moduleName = getLastPathComponent(url); File module = workspace.child...
private boolean isUpdatable(FilePath workspace,BuildListener listener) { StringTokenizer tokens = new StringTokenizer(modules); while(tokens.hasMoreTokens()) { String url = tokens.nextToken(); String moduleName = getLastPathComponent(url); File module = workspace.child...
1,116,029
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { OperatorSet op = djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); TreeUtils tu = djep.getTreeUtils(); FunctionTable funTab = djep.getFunctionTable(); int nchild = node.jjtGetNumCh...
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { OperatorSet op = djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); TreeUtils tu = djep.getTreeUtils(); FunctionTable funTab = djep.getFunctionTable(); int nchild = node.jjtGetNumCh...
1,116,031
public RangeSet getDownstreamRelationship(Project that) { RangeSet rs = new RangeSet(); FingerprintAction f = getAction(FingerprintAction.class); if(f==null) return rs; // look for fingerprints that point to this build as the source, and merge them all for (Fingerprint e : f.g...
public RangeSet getDownstreamRelationship(Project that) { RangeSet rs = new RangeSet(); FingerprintAction f = getAction(FingerprintAction.class); if(f==null) return rs; // look for fingerprints that point to this build as the source, and merge them all for (Fingerprint e : f.g...
1,116,032
public int getUpstreamRelationship(Project that) { FingerprintAction f = getAction(FingerprintAction.class); if(f==null) return -1; // look for fingerprints that point to the given project as the source, and merge them all for (Fingerprint e : f.getFingerprints().values()) { ...
public int getUpstreamRelationship(Project that) { FingerprintAction f = getAction(FingerprintAction.class); if(f==null) return -1; // look for fingerprints that point to the given project as the source, and merge them all for (Fingerprint e : f.getFingerprints().values()) { ...
1,116,034
public Session createSession() { Properties props = new Properties(System.getProperties()); props.putAll(getProperties()); return Session.getInstance(props); }
public Session createSession() { Properties props = new Properties(System.getProperties()); for (Map.Entry o : ((Map<?,?>)getProperties()).entrySet()) { if(o.getValue()!=null) props.put(o.getKey(),o.getValue()); } return Session.getInstance(props); }
1,116,035
public MatrixNodeI preprocess(Node node,MatrixJep mdjep) throws ParseException { this.mjep=mdjep; this.nf=(MatrixNodeFactory) mdjep.getNodeFactory(); this.vt=(DSymbolTable) mdjep.getSymbolTable(); this.opSet=(MatrixOperatorSet) mdjep.getOperatorSet(); return (MatrixNodeI) node.jjtAccept(this,null); }
public MatrixNodeI preprocess(Node node,MatrixJep mdjep) throws ParseException { this.mjep=mdjep; this.nf=(MatrixNodeFactory) mdjep.getNodeFactory(); this.vt=(DSymbolTable) mdjep.getSymbolTable(); return (MatrixNodeI) node.jjtAccept(this,null); }
1,116,036
public MatrixNodeI[] visitChildrenAsArray(Node node,Object data) throws ParseException { int nchild = node.jjtGetNumChildren(); MatrixNodeI children[] = new MatrixNodeI[nchild]; for(int i=0;i<nchild;++i) {// System.out.println("vcaa "+i+" "+node.jjtGetChild(i)); MatrixNodeI no = (MatrixNodeI) node.jjtGetChi...
public MatrixNodeI[] visitChildrenAsArray(Node node,Object data) throws ParseException { int nchild = node.jjtGetNumChildren(); MatrixNodeI children[] = new MatrixNodeI[nchild]; for(int i=0;i<nchild;++i) {// System.out.println("vcaa "+i+" "+node.jjtGetChild(i)); MatrixNodeI no = (MatrixNodeI) node.jjtGetChi...
1,116,037
public Object visitOp(ASTFunNode node, Object data) throws ParseException { PostfixMathCommandI pfmc=node.getPFMC(); MatrixNodeI children[] = visitChildrenAsArray(node,data); if(pfmc instanceof BinaryOperatorI) { if(node.jjtGetNumChildren()!=2) throw new ParseException("Operator "+node.getOperator().getName()+" ...
public Object visitOp(ASTFunNode node, Object data) throws ParseException { PostfixMathCommandI pfmc=node.getPFMC(); MatrixNodeI children[] = visitChildrenAsArray(node,data); if(pfmc instanceof BinaryOperatorI) { if(node.jjtGetNumChildren()!=2) throw new ParseException("Operator "+node.getOperator().getName()+" ...
1,116,038
public void actionPerformed(ActionEvent e) { try { searchTab.refreshTabActions(); Search search = ((SearchButton)e.getSource()).getSearch(); if ( search == null ) { return; } ...
public void actionPerformed(ActionEvent e) { try { searchTab.refreshTabActions(); Search search = searchButton.getSearch(); if ( search == null ) { return; } SearchResultsDat...
1,116,039
public void searchAdded( Search search, int position ) { SearchButton btn = new SearchButton( search ); btn.addActionListener( buttonHandler ); searchButtonMap.put(search, btn); searchButtonGroup.add(btn); addButton( btn ); if ( displayedDataModel != null && search == di...
public void searchAdded( Search search, int position ) { SearchButton btn = new SearchButton( search ); btn.addActionListener( buttonHandler ); searchButtonMap.put(search, btn); searchButtonGroup.add(btn); addButton( btn ); if ( displayedDataModel != null && search == di...
1,116,042
public void searchRemoved( Search search, int position ) { SearchButton btn = (SearchButton) searchButtonMap.remove(search); searchButtonGroup.remove( btn ); removeButton( btn ); }
public void searchRemoved( Search search, int position ) { SearchButton btn = (SearchButton) searchButtonMap.remove(search); searchButtonGroup.remove( btn ); removeButton( btn ); }
1,116,043
public Number arg(Object param) throws ParseException { if (param instanceof Number) { return (ONE); } else if (param instanceof Complex) { return new Double(((Complex)param).arg()); } throw new ParseException("Invalid parameter type"); }
public Number arg(Object param) throws ParseException { if (param instanceof Complex) { return new Double(((Complex)param).arg()); } else if (param instanceof Number) { return (ONE); } else if (param instanceof Complex) { return new Double(((Complex)param).arg()); } throw new ParseException("Invalid parameter ...
1,116,044
public Number arg(Object param) throws ParseException { if (param instanceof Number) { return (ONE); } else if (param instanceof Complex) { return new Double(((Complex)param).arg()); } throw new ParseException("Invalid parameter type"); }
public Number arg(Object param) throws ParseException { if (param instanceof Number) { return (ONE); } else if (param instanceof Complex) { return new Double(((Complex)param).arg()); } throw new ParseException("Invalid parameter type"); }
1,116,045
public boolean canBeMergedWith(CVSChangeLog that) { if(!this.date.equals(that.date)) return false; if(!this.time.equals(that.time)) // TODO: perhaps check this loosely? return false; if(!this.author.equals(that.author)) return fals...
public boolean canBeMergedWith(CVSChangeLog that) { if(!this.date.equals(that.date)) return false; if(!this.time.equals(that.time)) // TODO: perhaps check this loosely? return false; if(this.author==null || that.author==null || !this.author.equal...
1,116,046