rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3R_16() { if (jj_scan_token(MOD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3R_17() { if (jj_3R_22()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3R_18() { if (jj_3R_23()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3R_19() { if (jj_3R_20()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3R_20() { if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3R_21() { if (jj_3R_25()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | } } } | final private boolean jj_3R_22() { Token xsp; xsp = jj_scanpos; if (jj_3R_26()) { jj_scanpos = xsp; if (jj_3_7()) { jj_scanpos = xsp; if (jj_3R_27()) { jj_scanpos = xsp; if (jj_3R_28()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_... |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3R_23() { if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_3R_29()) { | if (jj_scan_token(12)) { | final private boolean jj_3R_24() { Token xsp; xsp = jj_scanpos; if (jj_3R_29()) { jj_scanpos = xsp; if (jj_3R_30()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_3R_30()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_scan_token(15)) return true; } | final private boolean jj_3R_24() { Token xsp; xsp = jj_scanpos; if (jj_3R_29()) { jj_scanpos = xsp; if (jj_3R_30()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_3R_31()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_3R_29()) return true; | final private boolean jj_3R_25() { if (jj_3R_31()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_3R_32()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_3R_30()) return true; | final private boolean jj_3R_26() { if (jj_3R_32()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3R_27() { if (jj_scan_token(LRND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_3R_33()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_3R_31()) return true; | final private boolean jj_3R_28() { if (jj_3R_33()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_scan_token(INDENTIFIER1)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_3R_32()) return true; | final private boolean jj_3R_29() { if (jj_scan_token(INDENTIFIER1)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_scan_token(INDENTIFIER2)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | Token xsp; xsp = jj_scanpos; if (jj_3R_33()) { jj_scanpos = xsp; if (jj_3R_34()) return true; } | final private boolean jj_3R_30() { if (jj_scan_token(INDENTIFIER2)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_3R_34()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_scan_token(LSQ)) return true; | final private boolean jj_3R_31() { if (jj_3R_34()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
Token xsp; xsp = jj_scanpos; if (jj_3R_35()) { jj_scanpos = xsp; if (jj_3R_36()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_3R_35()) return true; | final private boolean jj_3R_32() { Token xsp; xsp = jj_scanpos; if (jj_3R_35()) { jj_scanpos = xsp; if (jj_3R_36()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_scan_token(LSQ)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_scan_token(STRING_LITERAL)) return true; | final private boolean jj_3R_33() { if (jj_scan_token(LSQ)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_3R_37()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_3R_36()) return true; | final private boolean jj_3R_34() { if (jj_3R_37()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_scan_token(STRING_LITERAL)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_3R_37()) return true; | final private boolean jj_3R_35() { if (jj_scan_token(STRING_LITERAL)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_3R_38()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | Token xsp; xsp = jj_scanpos; if (jj_scan_token(7)) { jj_scanpos = xsp; if (jj_scan_token(9)) return true; } | final private boolean jj_3R_36() { if (jj_3R_38()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_3R_39()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | Token xsp; xsp = jj_scanpos; if (jj_3R_38()) { jj_scanpos = xsp; if (jj_3R_39()) { jj_scanpos = xsp; if (jj_3R_40()) { jj_scanpos = xsp; if (jj_3_6()) return true; } } } | final private boolean jj_3R_37() { if (jj_3R_39()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
Token xsp; xsp = jj_scanpos; if (jj_3R_40()) { jj_scanpos = xsp; if (jj_3R_41()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_scan_token(PLUS)) return true; | final private boolean jj_3R_38() { Token xsp; xsp = jj_scanpos; if (jj_3R_40()) { jj_scanpos = xsp; if (jj_3R_41()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
Token xsp; xsp = jj_scanpos; if (jj_3R_42()) { jj_scanpos = xsp; if (jj_3R_43()) { jj_scanpos = xsp; if (jj_3R_44()) { jj_scanpos = xsp; if (jj_3_6()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanp... | if (jj_scan_token(MINUS)) return true; | final private boolean jj_3R_39() { Token xsp; xsp = jj_scanpos; if (jj_3R_42()) { jj_scanpos = xsp; if (jj_3R_43()) { jj_scanpos = xsp; if (jj_3R_44()) { jj_scanpos = xsp; if (jj_3_6()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_... |
if (jj_scan_token(INTEGER_LITERAL)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_scan_token(NOT)) return true; | final private boolean jj_3R_40() { if (jj_scan_token(INTEGER_LITERAL)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | } | final private boolean jj_3R_9() { Token xsp; xsp = jj_scanpos; if (jj_3_2()) { jj_scanpos = xsp; if (jj_3_3()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3_1() { if (jj_3R_9()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3_2() { if (jj_3R_10()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3_3() { if (jj_3R_11()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } ... | } } } } } | final private boolean jj_3_4() { Token xsp; xsp = jj_scanpos; if (jj_3_5()) { jj_scanpos = xsp; if (jj_3R_12()) { jj_scanpos = xsp; if (jj_3R_13()) { jj_scanpos = xsp; if (jj_3R_14()) { jj_scanpos = xsp; if (jj_3R_15()) { jj_scanpos = xsp; if (jj_3R_16()) return true; if (jj_... |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3_5() { if (jj_3R_17()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3_6() { if (jj_3R_17()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | } | final private boolean jj_3_7() { Token xsp; xsp = jj_scanpos; lookingAhead = true; jj_semLA = (getToken(1).kind == INDENTIFIER1 || getToken(1).kind == INDENTIFIER2) && jep.funTab.containsKey(getToken(1).image); lookingAhead = false; if (!jj_semLA || jj_3R_18()) { ... |
if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3_8() { if (jj_3R_9()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
Home home = homeCreator.homeFactory(alias); Entity entity = entityCreator.entityFactory(home, alias); DefaultEntity defaultEntity = entityCreator.defaultEntityFactory(entity); | Home home = partnerCreator.homeFactory(alias); Entity entity = partnerCreator.entityFactory(home, alias); DefaultEntity defaultEntity = partnerCreator.defaultEntityFactory(entity); | public DefaultEntity createDefaultEntity(String alias) { Home home = homeCreator.homeFactory(alias); Entity entity = entityCreator.entityFactory(home, alias); DefaultEntity defaultEntity = entityCreator.defaultEntityFactory(entity); return defaultEntity; } |
UpdatePrefs.RunningPhexVersion.set( Res.getStr( "Program.Version" ) ); | public void updatePreferences() { // first find out if this is the first time Phex is running... if ( StringUtils.isEmpty( UpdatePrefs.RunningBuildNumber.get() ) ) { // this seems to be the first time phex is running... // in this case we are not updating... we... | |
new Double(l).doubleValue(), "f", "infusion", new Double(l2).intValue(), 0); | new Double(l).doubleValue(), "infusion", new Double(l2).intValue(), 0); | public Recipe readRecipe(File input) { myRecipe = new Recipe(); // File f = new File(path); FileInputStream in = null; try { in = new FileInputStream(input); } catch (FileNotFoundException e) { e.printStackTrace(); } String s = ""; long l, l2; float fl; int x; try { // read in the name - 82 bytes... |
TreeMap<String,ExternalRun> runs = new TreeMap<String,ExternalRun>(reverseComparator); | try { TreeMap<String,ExternalRun> runs = new TreeMap<String,ExternalRun>(reverseComparator); | private void reload() { TreeMap<String,ExternalRun> runs = new TreeMap<String,ExternalRun>(reverseComparator); File[] subdirs = getBuildDir().listFiles(new FileFilter() { public boolean accept(File subdir) { return subdir.isDirectory(); } }); Arrays.s... |
for( File dir : subdirs ) { try { ExternalRun b = new ExternalRun(this,dir,lastBuild); lastBuild = b; runs.put( b.getId(), b ); } catch (IOException e) { e.printStackTrace(); | for( File dir : subdirs ) { | private void reload() { TreeMap<String,ExternalRun> runs = new TreeMap<String,ExternalRun>(reverseComparator); File[] subdirs = getBuildDir().listFiles(new FileFilter() { public boolean accept(File subdir) { return subdir.isDirectory(); } }); Arrays.s... |
Util.deleteRecursive(dir); } catch (IOException e1) { e1.printStackTrace(); | ExternalRun b = new ExternalRun(this,dir,lastBuild); lastBuild = b; runs.put( b.getId(), b ); } catch (IOException e) { e.printStackTrace(); try { Util.deleteRecursive(dir); } catch (IOException e1) { e1.printStackTrace(); } | private void reload() { TreeMap<String,ExternalRun> runs = new TreeMap<String,ExternalRun>(reverseComparator); File[] subdirs = getBuildDir().listFiles(new FileFilter() { public boolean accept(File subdir) { return subdir.isDirectory(); } }); Arrays.s... |
} | private void reload() { TreeMap<String,ExternalRun> runs = new TreeMap<String,ExternalRun>(reverseComparator); File[] subdirs = getBuildDir().listFiles(new FileFilter() { public boolean accept(File subdir) { return subdir.isDirectory(); } }); Arrays.s... | |
synchronized(this) { | private void reload() { TreeMap<String,ExternalRun> runs = new TreeMap<String,ExternalRun>(reverseComparator); File[] subdirs = getBuildDir().listFiles(new FileFilter() { public boolean accept(File subdir) { return subdir.isDirectory(); } }); Arrays.s... | |
} finally { | private void reload() { TreeMap<String,ExternalRun> runs = new TreeMap<String,ExternalRun>(reverseComparator); File[] subdirs = getBuildDir().listFiles(new FileFilter() { public boolean accept(File subdir) { return subdir.isDirectory(); } }); Arrays.s... | |
DefaultEntity defaultEntity = createDefaultEntity(alias); persistDefaultEntity(defaultEntity); if (logger.isDebugEnabled()) { logger.debug("Persisted "+defaultEntity); | Entity entity = findDefaultEntity(); if (entity==null) { DefaultEntity defaultEntity = createDefaultEntity(alias); persistDefaultEntity(defaultEntity); if (logger.isDebugEnabled()) { logger.debug("Persisted "+defaultEntity); } Division defaultDivision = createDefaultDivision(defaultEntity); persistDivision(defaultDivis... | public Division installWithDefaults(String alias) { try { DefaultEntity defaultEntity = createDefaultEntity(alias); persistDefaultEntity(defaultEntity); if (logger.isDebugEnabled()) { logger.debug("Persisted "+defaultEntity); } Division de... |
Division defaultDivision = createDefaultDivision(defaultEntity); persistDivision(defaultDivision); if (logger.isDebugEnabled()) { logger.debug("Persisted "+defaultDivision); } return defaultDivision; | public Division installWithDefaults(String alias) { try { DefaultEntity defaultEntity = createDefaultEntity(alias); persistDefaultEntity(defaultEntity); if (logger.isDebugEnabled()) { logger.debug("Persisted "+defaultEntity); } Division de... | |
else return false; | return false; | public boolean test(ASTFunNode node, Node[] children) { if(node.getOperator()==opSet.getMultiply()) { // x * x -> true if(tu.isVariable(children[0]) && tu.isVariable(children[1])) { if(tu.getName(children[0]).equals(tu.getName(children[1]))) return true; else return false; } // x^n * x if(tu.ge... |
return queryAssembler( query, values).list(); | if (values instanceof Object[]) { return queryAssembler(query, values).list(); } return this.getHibernateTemplate().find(query, values); | public Collection find(String query, Object values) { if (logger.isDebugEnabled()) { logger.debug("\n Finding object with query "+query); } return queryAssembler( query, values).list(); } |
req.setCharacterEncoding("UTF-8"); | public synchronized void doConfigSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException { if(!Hudson.adminCheck(req,rsp)) return; jobNames.clear(); for (Job job : owner.getJobs()) { if(req.getParameter(job.getName())!=null) jobNames.add(job.get... | |
kettleTxt.setPreferredSize(new java.awt.Dimension(38, 20)); | kettleTxt.setPreferredSize(new java.awt.Dimension(30, 20)); | private void initGUI() { try { waterUsePanel = new JPanel(); GridBagLayout waterUsePanelLayout = new GridBagLayout(); waterUsePanelLayout.rowWeights = new double[] {0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1}; waterUsePanelLayout.rowHeights = new int[] {7, 7, 7, 7, 7, 7, 7, 7, 7}; waterUsePanelLayout.co... |
trubLossTxt.setPreferredSize(new java.awt.Dimension(36, 20)); | trubLossTxt.setPreferredSize(new java.awt.Dimension(30, 20)); | private void initGUI() { try { waterUsePanel = new JPanel(); GridBagLayout waterUsePanelLayout = new GridBagLayout(); waterUsePanelLayout.rowWeights = new double[] {0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1}; waterUsePanelLayout.rowHeights = new int[] {7, 7, 7, 7, 7, 7, 7, 7, 7}; waterUsePanelLayout.co... |
miscLossTxt.setPreferredSize(new java.awt.Dimension(37, 20)); | miscLossTxt.setPreferredSize(new java.awt.Dimension(30, 20)); | private void initGUI() { try { waterUsePanel = new JPanel(); GridBagLayout waterUsePanelLayout = new GridBagLayout(); waterUsePanelLayout.rowWeights = new double[] {0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1}; waterUsePanelLayout.rowHeights = new int[] {7, 7, 7, 7, 7, 7, 7, 7, 7}; waterUsePanelLayout.co... |
waterUsePanel.add(absorbedLbl, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); absorbedLbl.setText("jLabel13"); absorbedLbl.setPreferredSize(new java.awt.Dimension(36, 14)); | waterUsePanel.add(absorbedLbl, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); absorbedLbl.setText("0"); absorbedLbl.setPreferredSize(new java.awt.Dimension(30, 14)); absorbedLbl.setSize(30, 20); | private void initGUI() { try { waterUsePanel = new JPanel(); GridBagLayout waterUsePanelLayout = new GridBagLayout(); waterUsePanelLayout.rowWeights = new double[] {0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1}; waterUsePanelLayout.rowHeights = new int[] {7, 7, 7, 7, 7, 7, 7, 7, 7}; waterUsePanelLayout.co... |
waterUsePanel.add(usedMashLbl, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); usedMashLbl.setText("absorbedUnitsLbl"); usedMashLbl.setPreferredSize(new java.awt.Dimension(46, 14)); | waterUsePanel.add(usedMashLbl, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); usedMashLbl.setText("0"); usedMashLbl.setPreferredSize(new java.awt.Dimension(30, 14)); usedMashLbl.setSize(30, 14); | private void initGUI() { try { waterUsePanel = new JPanel(); GridBagLayout waterUsePanelLayout = new GridBagLayout(); waterUsePanelLayout.rowWeights = new double[] {0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1}; waterUsePanelLayout.rowHeights = new int[] {7, 7, 7, 7, 7, 7, 7, 7, 7}; waterUsePanelLayout.co... |
collectTxt.setPreferredSize(new java.awt.Dimension(65, 20)); | collectTxt.setPreferredSize(new java.awt.Dimension(30, 20)); collectTxt.setSize(30, 20); | private void initGUI() { try { waterUsePanel = new JPanel(); GridBagLayout waterUsePanelLayout = new GridBagLayout(); waterUsePanelLayout.rowWeights = new double[] {0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1}; waterUsePanelLayout.rowHeights = new int[] {7, 7, 7, 7, 7, 7, 7, 7, 7}; waterUsePanelLayout.co... |
postBoilTxt.setPreferredSize(new java.awt.Dimension(67, 20)); | postBoilTxt.setPreferredSize(new java.awt.Dimension(30, 20)); postBoilTxt.setSize(30, 20); | private void initGUI() { try { waterUsePanel = new JPanel(); GridBagLayout waterUsePanelLayout = new GridBagLayout(); waterUsePanelLayout.rowWeights = new double[] {0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1}; waterUsePanelLayout.rowHeights = new int[] {7, 7, 7, 7, 7, 7, 7, 7, 7}; waterUsePanelLayout.co... |
finalVolTxt.setPreferredSize(new java.awt.Dimension(69, 20)); | finalVolTxt.setPreferredSize(new java.awt.Dimension(30, 20)); finalVolTxt.setSize(30, 20); | private void initGUI() { try { waterUsePanel = new JPanel(); GridBagLayout waterUsePanelLayout = new GridBagLayout(); waterUsePanelLayout.rowWeights = new double[] {0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1}; waterUsePanelLayout.rowHeights = new int[] {7, 7, 7, 7, 7, 7, 7, 7, 7}; waterUsePanelLayout.co... |
OP_CROSS.setPFMC(new ExteriorProduct()); | OP_CROSS= new XOperator("^^","^",new ExteriorProduct(),XOperator.BINARY+XOperator.RIGHT,((XOperator) OP_CROSS).getPrecedence()); | public MatrixOperatorSet() { super(); OP_ADD.setPFMC(new MAdd()); OP_SUBTRACT.setPFMC(new MSubtract()); // TODO fix commutatitivity for matrix mult. How? OP_MULTIPLY.setPFMC(new MMultiply()); OP_POWER.setPFMC(new MPower()); OP_UMINUS.setPFMC(new MUMinus()); OP_DOT.setPFMC(new MDot()); OP_CROSS.setPFMC(new Ext... |
r.mash.addStep(type, startTemp, endTemp, "F", method, minutes, rampMin); | r.mash.addStep(type, startTemp, endTemp, method, minutes, rampMin); | public void endElement(String namespaceURI, String sName, // simple name String qName // qualified name ) throws SAXException { if (importType == "STRANGEBREW") { if (qName.equalsIgnoreCase("ITEM") && currentList.equalsIgnoreCase("FERMENTABLES")) { m.setDescription(descrBuf); descrBuf = ""; r.addMalt... |
Object incObj = inputs[3]; | public MatrixValueI calcValue(MatrixValueI res, MatrixValueI inputs[]) throws ParseException { Object out; if(inputs.length == 2) { Object lastObj = inputs[1]; Object firstObj = inputs[0]; double last = ((Number) lastObj).doubleValue(); double first = ((Number) firstObj).doubleValue(); double diff = l... | |
public Dimensions calcDim(Dimensions l,Dimensions r) | public Dimensions calcDim(Dimensions l,Dimensions r) throws ParseException | public Dimensions calcDim(Dimensions l,Dimensions r) { int lrank = l.rank(); int rrank = r.rank(); switch(lrank) { case 0: // Scaler res return r; case 1: // Vector * ? switch(rrank) { case 0: // Vector * Scaler -> Vector return l; case 1: // Vector * Vector -> Matrix return Dimensions.valueOf... |
else return null; | break; | public Dimensions calcDim(Dimensions l,Dimensions r) { int lrank = l.rank(); int rrank = r.rank(); switch(lrank) { case 0: // Scaler res return r; case 1: // Vector * ? switch(rrank) { case 0: // Vector * Scaler -> Vector return l; case 1: // Vector * Vector -> Matrix return Dimensions.valueOf... |
throw new ParseException("Sorry I don't know how to multiply a vector by a tensor"); | public Dimensions calcDim(Dimensions l,Dimensions r) { int lrank = l.rank(); int rrank = r.rank(); switch(lrank) { case 0: // Scaler res return r; case 1: // Vector * ? switch(rrank) { case 0: // Vector * Scaler -> Vector return l; case 1: // Vector * Vector -> Matrix return Dimensions.valueOf... | |
return null; | throw new ParseException("Dimensions for multiply do not match: "+l+" "+r); | public Dimensions calcDim(Dimensions l,Dimensions r) { int lrank = l.rank(); int rrank = r.rank(); switch(lrank) { case 0: // Scaler res return r; case 1: // Vector * ? switch(rrank) { case 0: // Vector * Scaler -> Vector return l; case 1: // Vector * Vector -> Matrix return Dimensions.valueOf... |
if(revision.startsWith(e.getKey())) | if(revision.startsWith(e.getKey()) && revision.substring(e.getKey().length()).indexOf('.')==-1) | private String findBranch(String revision) { if(revision==null) return null; // defensive check for (Entry<String,String> e : branches.entrySet()) { if(revision.startsWith(e.getKey())) return e.getValue(); } return null; } |
rsp.sendRedirect(req.getContextPath()+'/'+result.getUrl()+"configure"); | rsp.sendRedirect2(req.getContextPath()+'/'+result.getUrl()+"configure"); | public synchronized Job doCreateJob( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { if(!Hudson.adminCheck(req,rsp)) return null; String name = req.getParameter("name").trim(); String className = req.getParameter("type"); String mode = req.getP... |
rsp.sendRedirect("./"+v.getUrl()+"configure"); | rsp.sendRedirect2("./"+v.getUrl()+"configure"); | public synchronized void doCreateView( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { if(!Hudson.adminCheck(req,rsp)) return; String name = req.getParameter("name"); try { checkGoodName(name); } catch (ParseException e) { ... |
rsp.sendRedirect(req.getContextPath()+"/fingerprint/"+ | rsp.sendRedirect2(req.getContextPath()+"/fingerprint/"+ | public synchronized void doDoFingerprintCheck( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { try { // Create a factory for disk-based file items FileItemFactory factory = new DiskFileItemFactory(); // Create a new file upload handler ... |
rsp.sendRedirect(req.getContextPath()+"/"); | rsp.sendRedirect2(req.getContextPath()+"/"); | public synchronized void doLoginEntry( StaplerRequest req, StaplerResponse rsp ) throws IOException { rsp.sendRedirect(req.getContextPath()+"/"); } |
rsp.sendRedirect(req.getContextPath()+"/"); | rsp.sendRedirect2(req.getContextPath()+"/"); | public synchronized void doLogout( StaplerRequest req, StaplerResponse rsp ) throws IOException { HttpSession session = req.getSession(false); if(session!=null) session.invalidate(); rsp.sendRedirect(req.getContextPath()+"/"); } |
rsp.sendRedirect(req.getContextPath()+"/"); | rsp.sendRedirect2(req.getContextPath()+"/"); | public synchronized void doReload( StaplerRequest req, StaplerResponse rsp ) throws IOException { if(!Hudson.adminCheck(req,rsp)) return; load(); rsp.sendRedirect(req.getContextPath()+"/"); } |
result = 37*result+xi; | result = 37*result+yi; | public int hashCode() { int result = 17; long xl = Double.doubleToLongBits(this.re); long yl = Double.doubleToLongBits(this.im); int xi = (int)(xl^(xl>>32)); int yi = (int)(yl^(yl>>32)); result = 37*result+xi; result = 37*result+xi; return result; } |
lblColourValue.setText(SBStringUtils.format(myRecipe.getSrm(), 1)); | lblColourValue.setText(SBStringUtils.format(myRecipe.getColour(), 1)); | public void displayRecipe() { if (myRecipe == null) return; txtName.setText(myRecipe.getName()); brewerNameText.setText(myRecipe.getBrewer()); preBoilText.setValue(new Double(myRecipe.getPreBoilVol(myRecipe.getVolUnits()))); lblSizeUnits.setText(myRecipe.getVolUnits()); postBoilText.setValue(new Double(myRecip... |
"" + SBStringUtils.format(myRecipe.getSrm(), 1), | "" + SBStringUtils.format(myRecipe.getColour(), 1), | public void displayRecipe() { if (myRecipe == null) return; txtName.setText(myRecipe.getName()); brewerNameText.setText(myRecipe.getBrewer()); preBoilText.setValue(new Double(myRecipe.getPreBoilVol(myRecipe.getVolUnits()))); lblSizeUnits.setText(myRecipe.getVolUnits()); postBoilText.setValue(new Double(myRecip... |
if (myRecipe.getColourMethod().equals("EBC")) { colour = (colour + 1.2) / 2.65; } | public void displayRecipe() { if (myRecipe == null) return; txtName.setText(myRecipe.getName()); brewerNameText.setText(myRecipe.getBrewer()); preBoilText.setValue(new Double(myRecipe.getPreBoilVol(myRecipe.getVolUnits()))); lblSizeUnits.setText(myRecipe.getVolUnits()); postBoilText.setValue(new Double(myRecip... | |
public static void main(String[] args) { | public static void main(final String[] args) { | public static void main(String[] args) { BasicConfigurator.configure(); OpenMap om; if(args.length > 2) { om = new OpenMap("edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse", "edu/sc/seis/mapData", args[2]); } else { om = new OpenM... |
OpenMap om; | final OpenMap om; | public static void main(String[] args) { BasicConfigurator.configure(); OpenMap om; if(args.length > 2) { om = new OpenMap("edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse", "edu/sc/seis/mapData", args[2]); } else { om = new OpenM... |
JFrame frame = new JFrame("OpenMap Test"); frame.addWindowListener(new Closer()); | JButton reloadColorTable = new JButton("Reload Table"); final JFrame frame = new JFrame("OpenMap Test"); reloadColorTable.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ETOPOLayer etopo = om.getETOPOLayer(); if(etopo instanceof ColorMapEtopoLayer) { try { ((ColorMapEtopoLayer)etop... | public static void main(String[] args) { BasicConfigurator.configure(); OpenMap om; if(args.length > 2) { om = new OpenMap("edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse", "edu/sc/seis/mapData", args[2]); } else { om = new OpenM... |
frame.getContentPane().add(reloadColorTable, BorderLayout.SOUTH); | public static void main(String[] args) { BasicConfigurator.configure(); OpenMap om; if(args.length > 2) { om = new OpenMap("edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse", "edu/sc/seis/mapData", args[2]); } else { om = new OpenM... | |
int len = Math.min(names.length,homes.length); | int len; if(names!=null && homes!=null) len = Math.min(names.length,homes.length); else len = 0; | public boolean configure(HttpServletRequest req) { boolean r = true; int i; String[] names = req.getParameterValues("ant_name"); String[] homes = req.getParameterValues("ant_home"); int len = Math.min(names.length,homes.length); AntInstallation[]... |
if (param1 instanceof Number) | if (param1 instanceof Complex) | public Object sub(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) { return sub((Number)param1, (Number)param2); } else if (param2 instanceof Complex) { return sub((Number)param1, (Complex)param2); } } else if (param1 instanceof C... |
if (param2 instanceof Number) | if (param2 instanceof Complex) { return sub((Complex)param1, (Complex)param2); } else if( param2 instanceof Number) { return sub((Complex)param1, (Number)param2); } } else if (param1 instanceof Number) { if (param2 instanceof Complex) { return sub((Number)param1, (Complex)param2); } else if (param2 instanceof Number) | public Object sub(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) { return sub((Number)param1, (Number)param2); } else if (param2 instanceof Complex) { return sub((Number)param1, (Complex)param2); } } else if (param1 instanceof C... |
else if (param2 instanceof Complex) { return sub((Number)param1, (Complex)param2); } } else if (param1 instanceof Complex) { if (param2 instanceof Number) { return sub((Complex)param1, (Number)param2); } else if (param2 instanceof Complex) { return sub((Complex)param1, (Complex)param2); } } | } | public Object sub(Object param1, Object param2) throws ParseException { if (param1 instanceof Number) { if (param2 instanceof Number) { return sub((Number)param1, (Number)param2); } else if (param2 instanceof Complex) { return sub((Number)param1, (Complex)param2); } } else if (param1 instanceof C... |
if (null == stack) { throw new ParseException("Stack argument null"); | checkStack(stack); if (curNumberOfParameters < 1) throw new ParseException("No arguments for Sum"); Object sum = stack.pop(); Object param; int i = 1; while (i < curNumberOfParameters) { param = stack.pop(); sum = addFun.add(param, sum); i++; | public void run(Stack stack) throws ParseException { // Check if stack is null if (null == stack) { throw new ParseException("Stack argument null"); } Object param = stack.pop(); Number result; if (param instanceof Number) result = (Number) param; else throw new ParseException("... |
Object param = stack.pop(); Number result; if (param instanceof Number) result = (Number) param; else throw new ParseException("Invalid parameter type"); for(int i=1;i < curNumberOfParameters;++i) { param = stack.pop(); if (param instanceof Number) { result = addFun.add((Number) param,result); } else { throw new ... | stack.push(sum); | public void run(Stack stack) throws ParseException { // Check if stack is null if (null == stack) { throw new ParseException("Stack argument null"); } Object param = stack.pop(); Number result; if (param instanceof Number) result = (Number) param; else throw new ParseException("... |
ampRegistrar.getAmpRange(aSeis, timeRegistrar.getTimeRange()); | public UnitRangeImpl getAmpRange(DataSetSeismogram aSeis){ LocalSeismogramImpl seis = aSeis.getSeismogram(); MicroSecondTimeRange pastTime = (MicroSecondTimeRange)seismoTimes.get(aSeis); if(timeRegistrar == null){ return getAmpRange(aSeis, (MicroSecondTimeRange)seismoTimes.get(aSeis)); }else{ if (!tim... | |
expandTestString("(5*x+3*y)^2","30*x*y+25*x^2+9*y^2"); | public void testPolySimp() throws ParseException,Exception { Node n1 = j.parse("(1.0+2.0*x+x^2.0)*(1.0+2.0*x+x^2.0)"); pc.createPoly(n1); expandTestString("(a+b)*(c+d)","a*c+a*d+b*c+b*d"); expandTestString("a*c+a*d+b*c+b*d","a*c+a*d+b*c+b*d"); expandTestString("(a+b)*(a+b)","2*a*b+a^2+b^2"); expandTestString("... | |
simplifyTest("(2*x+x)^3","27*x^3"); | public void testSimp() throws ParseException { simplifyTest("2+3","5"); simplifyTest("2*3","6"); simplifyTest("2^3","8"); simplifyTest("3/2","1.5"); simplifyTest("2*3+4","10"); simplifyTest("2*(3+4)","14"); simplifyTest("0+x","x"); simplifyTest("x+0","x"); simplifyTest("0-x","0-x"); simplifyTest("x-0","x"); ... | |
QueryResponseRecord rec; | public void processResponse( QueryResponseMsg msg ) { //we like to receive results even if the query was stopped already. // check if it is a response for this query? if (!msg.getHeader().getMsgID().equals( queryMsg.getHeader().getMsgID())) { return; } ... | |
int recordCount = msg.getRecordCount(); ArrayList newHitList = new ArrayList( recordCount ); for (int i = 0; i < recordCount; i++) | QueryResponseRecord[] records = msg.getMsgRecords(); ArrayList<RemoteFile> newHitList = new ArrayList<RemoteFile>( records.length ); for (int i = 0; i < records.length; i++) | public void processResponse( QueryResponseMsg msg ) { //we like to receive results even if the query was stopped already. // check if it is a response for this query? if (!msg.getHeader().getMsgID().equals( queryMsg.getHeader().getMsgID())) { return; } ... |
rec = msg.getMsgRecord(i); | public void processResponse( QueryResponseMsg msg ) { //we like to receive results even if the query was stopped already. // check if it is a response for this query? if (!msg.getHeader().getMsgID().equals( queryMsg.getHeader().getMsgID())) { return; } ... | |
long fileSize = rec.getFileSize(); String filename = rec.getFilename(); URN urn = rec.getURN(); int fileIndex = rec.getFileIndex(); String metaData = rec.getMetaData(); | long fileSize = records[i].getFileSize(); String filename = records[i].getFilename(); URN urn = records[i].getURN(); int fileIndex = records[i].getFileIndex(); String metaData = records[i].getMetaData(); | public void processResponse( QueryResponseMsg msg ) { //we like to receive results even if the query was stopped already. // check if it is a response for this query? if (!msg.getHeader().getMsgID().equals( queryMsg.getHeader().getMsgID())) { return; } ... |
String pathInfo = rec.getPathInfo(); | String pathInfo = records[i].getPathInfo(); | public void processResponse( QueryResponseMsg msg ) { //we like to receive results even if the query was stopped already. // check if it is a response for this query? if (!msg.getHeader().getMsgID().equals( queryMsg.getHeader().getMsgID())) { return; } ... |
DestAddress[] alternateLocations = rec.getAlternateLocations(); | DestAddress[] alternateLocations = records[i].getAlternateLocations(); | public void processResponse( QueryResponseMsg msg ) { //we like to receive results even if the query was stopped already. // check if it is a response for this query? if (!msg.getHeader().getMsgID().equals( queryMsg.getHeader().getMsgID())) { return; } ... |
MagnetData magnetData = MagnetData.parseFromURI( uri ); URN urn = MagnetData.lookupSHA1URN( magnetData ); SwarmingManager swarmingMgr = SwarmingManager.getInstance(); if ( !swarmingMgr.isURNDownloaded( urn ) ) | String protocol = uri.getScheme(); if ( "magnet".equals( protocol ) ) | public void createDownload( String uriStr ) throws URIException { if ( uriStr.length() == 0 ) { return; } URI uri = new URI( uriStr, true ); // dont add already downloading urns. MagnetData magnetData = MagnetData.parseFromURI( uri ); URN urn = MagnetDa... |
swarmingMgr.addFileToDownload( uri ); | MagnetData magnetData = MagnetData.parseFromURI( uri ); URN urn = MagnetData.lookupSHA1URN(magnetData); if ( swarmingMgr.isURNDownloaded( urn ) ) { return; } if ( shareService.isURNShared( urn ) ) { return; } | public void createDownload( String uriStr ) throws URIException { if ( uriStr.length() == 0 ) { return; } URI uri = new URI( uriStr, true ); // dont add already downloading urns. MagnetData magnetData = MagnetData.parseFromURI( uri ); URN urn = MagnetDa... |
SwarmingManager.getInstance().addFileToDownload( uri ); | public void createDownload( String uriStr ) throws URIException { if ( uriStr.length() == 0 ) { return; } URI uri = new URI( uriStr, true ); // dont add already downloading urns. MagnetData magnetData = MagnetData.parseFromURI( uri ); URN urn = MagnetDa... | |
return new Double(SBStringUtils.format(data.getHopAmountAs(row, data.getHopUnits(row)), 1)); | return SBStringUtils.format(data.getHopAmountAs(row, data.getHopUnits(row)), 1); | public Object getValueAt(int row, int col) { // Hop h = (Hop) data.get(row); try { switch (col) { case 0 : return data.getHopName(row); case 1 : return data.getHopType(row); case 2 : return new Double(data.getHopAlpha(row)); case 3 : return new Double(SBStringUtils.format(data.getHopAmo... |
return new Double(SBStringUtils.format(data.getHopIBU(row), 1)); | return SBStringUtils.format(data.getHopIBU(row), 1); | public Object getValueAt(int row, int col) { // Hop h = (Hop) data.get(row); try { switch (col) { case 0 : return data.getHopName(row); case 1 : return data.getHopType(row); case 2 : return new Double(data.getHopAlpha(row)); case 3 : return new Double(SBStringUtils.format(data.getHopAmo... |
return new Double(data.getHopCostPerU(row)); | return SBStringUtils.format(data.getHopCostPerU(row), 2); | public Object getValueAt(int row, int col) { // Hop h = (Hop) data.get(row); try { switch (col) { case 0 : return data.getHopName(row); case 1 : return data.getHopType(row); case 2 : return new Double(data.getHopAlpha(row)); case 3 : return new Double(SBStringUtils.format(data.getHopAmo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.