bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public Contact(Partner partner, Credential credential, int internalNumber, int priority) { this.partner = partner; this.credential = credential; this.internalNumber = internalNumber; this.priority = priority; } | public Contact(Partner partner, Credential credential, int internalNumber, int priority) { this.partner = partner; this.credential = credential; this.internalNumber = internalNumber; this.priority = priority; } | 1,115,243 |
public Controller(View aView) { myView = aView; aView.setController(this); } | public Controller(View aView, Recipe aRecipe) { myView = aView; aView.setController(this); } | 1,115,244 |
public void addStep(){ MashStep step = new MashStep(); steps.add(step); calcMashSchedule(); } | public void addStep(){ MashStep step = new MashStep(); steps.add(step); calcMashSchedule(); } | 1,115,246 |
public double getStepStartTemp(int i) { if (tempUnits.equals("C")) return fToC(((MashStep)steps.get(i)).getStartTemp()); else return ((MashStep)steps.get(i)).getStartTemp(); } | public double getStepStartTemp(int i) { if (tempUnits.equals("C")) return BrewCalcs.fToC(((MashStep)steps.get(i)).getStartTemp()); else return ((MashStep)steps.get(i)).getStartTemp(); } | 1,115,247 |
public double getStepEndTemp(int i) { if (tempUnits.equals("C")) return fToC(((MashStep)steps.get(i)).getEndTemp()); else return ((MashStep)steps.get(i)).getEndTemp(); } | public double getStepEndTemp(int i) { if (tempUnits.equals("C")) return BrewCalcs.fToC(((MashStep)steps.get(i)).getEndTemp()); else return ((MashStep)steps.get(i)).getEndTemp(); } | 1,115,248 |
public void setStepStartTemp(int i, double t){ if (tempUnits.equals("C")){ t = cToF(t); } ((MashStep)steps.get(i)).setStartTemp(t); ((MashStep)steps.get(i)).setEndTemp(t); ((MashStep)steps.get(i)).setType(calcStepType(t)); calcMashSchedule(); } | public void setStepStartTemp(int i, double t){ if (tempUnits.equals("C")){ t = BrewCalcs.cToF(t); } ((MashStep)steps.get(i)).setStartTemp(t); ((MashStep)steps.get(i)).setEndTemp(t); ((MashStep)steps.get(i)).setType(calcStepType(t)); calcMashSchedule(); } | 1,115,249 |
public void setStepEndTemp(int i, double t){ if (tempUnits.equals("C")) ((MashStep)steps.get(i)).setEndTemp(cToF(t)); else ((MashStep)steps.get(i)).setEndTemp(t); calcMashSchedule(); } | public void setStepEndTemp(int i, double t){ if (tempUnits.equals("C")) ((MashStep)steps.get(i)).setEndTemp(BrewCalcs.cToF(t)); else ((MashStep)steps.get(i)).setEndTemp(t); calcMashSchedule(); } | 1,115,250 |
public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do... | public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do... | 1,115,251 |
public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do... | public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do... | 1,115,252 |
public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do... | public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do... | 1,115,253 |
public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do... | public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do... | 1,115,254 |
public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do... | public void calcMashSchedule() { // Method to run through the mash table and calculate values if (!myRecipe.allowRecalcs) return; double strikeTemp = 0; double targetTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; do... | 1,115,255 |
public Object visit(ASTVarNode node, Object data) { String message = "Could not evaluate " + node.getName() + ": "; if (symTab == null) { message += "the symbol table is null"; addToErrorList(message); } else if (!symTab.containsKey(node.getName())) { message += "the variable was not found in the symbol table... | public Object visit(ASTVarNode node, Object data) { String message = "Could not evaluate " + node.getName() + ": "; if (symTab == null) { message += "the symbol table is null"; addToErrorList(message); } else if (!symTab.containsKey(node.getName())) { message += "the variable was not found in the symbol table... | 1,115,256 |
private boolean calcChangeLog(Build build, File changelogFile, Launcher launcher, BuildListener listener) throws IOException { if(build.getPreviousBuild()==null) { // nothing to compare against return createEmptyChangeLog(changelogFile, listener, "log"); } PrintStream logg... | private boolean calcChangeLog(Build build, File changelogFile, Launcher launcher, BuildListener listener) throws IOException { if(build.getPreviousBuild()==null) { // nothing to compare against return createEmptyChangeLog(changelogFile, listener, "log"); } PrintStream logg... | 1,115,257 |
private boolean calcChangeLog(Build build, File changelogFile, Launcher launcher, BuildListener listener) throws IOException { if(build.getPreviousBuild()==null) { // nothing to compare against return createEmptyChangeLog(changelogFile, listener, "log"); } PrintStream logg... | private boolean calcChangeLog(Build build, File changelogFile, Launcher launcher, BuildListener listener) throws IOException { if(build.getPreviousBuild()==null) { // nothing to compare against return createEmptyChangeLog(changelogFile, listener, "log"); } PrintStream logg... | 1,115,258 |
private boolean calcChangeLog(Build build, File changelogFile, Launcher launcher, BuildListener listener) throws IOException { if(build.getPreviousBuild()==null) { // nothing to compare against return createEmptyChangeLog(changelogFile, listener, "log"); } PrintStream logg... | private boolean calcChangeLog(Build build, File changelogFile, Launcher launcher, BuildListener listener) throws IOException { if(build.getPreviousBuild()==null) { // nothing to compare against return createEmptyChangeLog(changelogFile, listener, "log"); } PrintStream logg... | 1,115,259 |
/*package*/ static Map<String,String> parseRevisionFile(Build build) throws IOException { Map<String,String> revisions = new HashMap<String,String>(); // module -> revision {// read the revision file of the last build File file = getRevisionFile(build); if(!file.exists()) ... | /*package*/ static Map<String,String> parseRevisionFile(Build build) throws IOException { Map<String,String> revisions = new HashMap<String,String>(); // module -> revision {// read the revision file of the last build File file = getRevisionFile(build); if(!file.exists()) ... | 1,115,260 |
/*package*/ static Map<String,String> parseRevisionFile(Build build) throws IOException { Map<String,String> revisions = new HashMap<String,String>(); // module -> revision {// read the revision file of the last build File file = getRevisionFile(build); if(!file.exists()) ... | /*package*/ static Map<String,String> parseRevisionFile(Build build) throws IOException { Map<String,String> revisions = new HashMap<String,String>(); // module -> revision {// read the revision file of the last build File file = getRevisionFile(build); if(!file.exists()) ... | 1,115,261 |
public Node getChild(int i) { return (Node)m_children.get(i); } | public Node getChild() { return (Node)m_children.get(i); } | 1,115,262 |
public Node getChild(int i) { return (Node)m_children.get(i); } | public Node getChild(int i) { if (getNumberChildren() == 0) return null; return getChild(0); } | 1,115,263 |
@Test public void insert1000() throws SQLException { assertEquals(stat.executeUpdate("create temp table in1000 (a);"), 0); conn.setAutoCommit(false); for (int i=0; i < 1000; i++) assertEquals(stat.executeUpdate( "insert into in1000 values ("+i+");"), 1); conn.co... | @Test public void insert1000() throws SQLException { assertEquals(stat.executeUpdate("create table in1000 (a);"), 0); conn.setAutoCommit(false); for (int i=0; i < 1000; i++) assertEquals(stat.executeUpdate( "insert into in1000 values ("+i+");"), 1); conn.commit(... | 1,115,264 |
public ChangeLogSet getChangeSet() { if(scm==null) scm = new CVSChangeLogParser(); File changelogFile = new File(getRootDir(), "changelog.xml"); if(!changelogFile.exists()) return ChangeLogSet.EMPTY; try { return scm.parse(changelogFile); } catch (... | public ChangeLogSet getChangeSet() { if(scm==null) scm = new CVSChangeLogParser(); File changelogFile = new File(getRootDir(), "changelog.xml"); if(!changelogFile.exists()) return ChangeLogSet.EMPTY; try { return scm.parse(this,changelogFile); } ca... | 1,115,265 |
public Complex(double re_in) { re = re_in; im = 0; } | public Complex(double re_in) { re = re_in; im = 0; } | 1,115,267 |
public ChannelId getChannelId() { String keyStr = new String(); keyStr = getNet() + "." + getStation() + "." + getSite() + "." + getChannel(); System.out.println("The key is "+keyStr); if( mychannelchooser.allchanMap.containsKey(keyStr)) { System.out.println("Found the channelID "); return (ChannelId)(mych... | public ChannelId getChannelId() { String keyStr = new String(); keyStr = getNet() + "." + getStation() + "." + getSite() + "." + getChannel(); System.out.println("The key is "+keyStr); if( mychannelchooser.allchanMap.containsKey(keyStr)) { System.out.println("Found the channelID "); return (ChannelId)(mych... | 1,115,268 |
protected AbstractCasFilter(final String serverName, final String serviceUrl, final boolean useSession) { CommonUtils.assertTrue(CommonUtils.isNotBlank(serverName) || CommonUtils.isNotBlank(serviceUrl), "either serverName or serviceUrl must be set"); this.serverName = ser... | protected AbstractCasFilter(final String serverName, final String serviceUrl, final boolean useSession) { CommonUtils.assertTrue(CommonUtils.isNotBlank(serverName) || CommonUtils.isNotBlank(serviceUrl), "either serverName or serviceUrl must be set"); this.serverName = ser... | 1,115,271 |
public void displayRecipe() { if (myRecipe == null) return; txtName.setText(myRecipe.getName()); brewerNameText.setText(myRecipe.getBrewer()); txtPreBoil.setValue(new Double(myRecipe.getPreBoilVol(myRecipe.getVolUnits()))); lblSizeUnits.setText(myRecipe.getVolUnits()); postBoilText.setValue(new Double(myRecipe... | public void displayRecipe() { if (myRecipe == null) return; txtName.setText(myRecipe.getName()); brewerNameText.setText(myRecipe.getBrewer()); txtPreBoil.setValue(new Double(myRecipe.getPreBoilVol(myRecipe.getVolUnits()))); lblSizeUnits.setText(myRecipe.getVolUnits()); postBoilText.setValue(new Double(myRecipe... | 1,115,273 |
public void displayRecipe() { if (myRecipe == null) return; txtName.setText(myRecipe.getName()); brewerNameText.setText(myRecipe.getBrewer()); txtPreBoil.setValue(new Double(myRecipe.getPreBoilVol(myRecipe.getVolUnits()))); lblSizeUnits.setText(myRecipe.getVolUnits()); postBoilText.setValue(new Double(myRecipe... | public void displayRecipe() { if (myRecipe == null) return; txtName.setText(myRecipe.getName()); brewerNameText.setText(myRecipe.getBrewer()); txtPreBoil.setValue(new Double(myRecipe.getPreBoilVol(myRecipe.getVolUnits()))); lblSizeUnits.setText(myRecipe.getVolUnits()); postBoilText.setValue(new Double(myRecipe... | 1,115,274 |
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,275 |
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,276 |
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,277 |
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,278 |
public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun... | public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun... | 1,115,279 |
public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun... | public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun... | 1,115,280 |
public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun... | public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun... | 1,115,281 |
public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun... | public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun... | 1,115,282 |
public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun... | public void addOrInsert(Object o) { int i = 0; boolean found = false; while (i < list.size() && !found) { if (DEBUG) System.out.println(o.getClass().getName().toString()); if (o.getClass().getName().toString().equals( "strangebrew.Yeast")) { Yeast y = (Yeast) list.get(i); Yeast y2 = (Yeast) o; foun... | 1,115,283 |
public void calcMaltTotals() { double maltPoints = 0; double mcu = 0; totalMaltLbs = 0; totalMaltCost = 0; totalMashLbs = 0; // first figure out the total we're dealing with for (int i = 0; i < fermentables.size(); i++) { Fermentable m = ((Fermentable) fermentables.get(i)); totalMaltLbs += (m.getAmountAs("l... | public void calcMaltTotals() { double maltPoints = 0; double mcu = 0; totalMaltLbs = 0; totalMaltCost = 0; totalMashLbs = 0; // first figure out the total we're dealing with for (int i = 0; i < fermentables.size(); i++) { Fermentable m = ((Fermentable) fermentables.get(i)); totalMaltLbs += (m.getAmountAs("l... | 1,115,284 |
public void calcHopsTotals() { double ibuTotal = 0; totalHopsCost = 0; totalHopsOz = 0; for (int i = 0; i < hops.size(); i++) { // calculate the average OG of the boil // first, the OG at the time of addition: double adjPreSize, aveOg = 0; Hop h = ((Hop) hops.get(i)); if (h.getAdd().equalsIgnoreCase("boi... | public void calcHopsTotals() { double ibuTotal = 0; totalHopsCost = 0; totalHopsOz = 0; for (int i = 0; i < hops.size(); i++) { // calculate the average OG of the boil // first, the OG at the time of addition: double adjPreSize, aveOg = 0; Hop h = ((Hop) hops.get(i)); if (h.getAdd().equalsIgnoreCase("boi... | 1,115,285 |
public void setStyle(Style s) { style = s; } | public void setStyle(Style s) { style = s; } | 1,115,286 |
public String getColourMethod() { return ""; } | public String getColourMethod() { return colourMethod; } | 1,115,287 |
public void displayMash() { if (myRecipe != null) { recipeNameLabel.setText(myRecipe.getName()); volUnitsComboModel.addOrInsert(myRecipe.mash.getMashVolUnits()); // temp units: if (myRecipe.mash.getMashTempUnits().equals("F")) tempFrb.setSelected(true); else tempCrb.setSelected(true); grainTempULabe... | public void displayMash() { if (myRecipe != null) { recipeNameLabel.setText(myRecipe.getName()); volUnitsComboModel.addOrInsert(myRecipe.mash.getMashVolUnits()); // temp units: if (myRecipe.mash.getMashTempUnits().equals("F")) tempFrb.setSelected(true); else tempCrb.setSelected(true); grainTempULabe... | 1,115,288 |
public StylePanel(StrangeSwing.SBNotifier sb) { super(); sbn = sb; initGUI(); } | public StylePanel() { super(); sbn = sb; initGUI(); } | 1,115,289 |
public StylePanel(StrangeSwing.SBNotifier sb) { super(); sbn = sb; initGUI(); } | public StylePanel(StrangeSwing.SBNotifier sb) { super(); initGUI(); } | 1,115,290 |
protected static int[][] compressYvalues(LocalSeismogram seismogram, MicroSecondTimeRange tr, UnitRangeImpl ampRange, Dimension size)throws UnsupportedDataEncoding { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; /*double pointsPerPixel = tr.getInterval().divideBy(seis.getSa... | protected static int[][] compressYvalues(LocalSeismogram seismogram, MicroSecondTimeRange tr, UnitRangeImpl ampRange, Dimension size)throws UnsupportedDataEncoding { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; /*double pointsPerPixel = tr.getInterval().divideBy(seis.getSa... | 1,115,292 |
public Object umin(Object param1) throws ParseException { if(param1 instanceof MVector) return umin((MVector) param1); if(param1 instanceof Matrix) return umin((Matrix) param1); else return super.umin(param1); } | public Object umin(Object param1) throws ParseException { if(param1 instanceof MVector) return umin((MVector) param1); if(param1 instanceof Matrix) return umin((Matrix) param1); else return super.umin(param1); } | 1,115,293 |
public MVector(int size) { data = new Object[size]; dim = Dimensions.valueOf(size); } | public MVector(int size) { data = new Object[size]; dim = Dimensions.valueOf(size); } | 1,115,294 |
public Tensor(Tensor t) { values = new Object[t.getDim().numEles()]; this.dims = t.getDim(); } | public Tensor(Tensor t) { values = new Object[t.getDim().numEles()]; this.dims = t.getDim(); } | 1,115,295 |
final public void Function() throws ParseException { int reqArguments = 0; String identString = ""; ASTFunNode jjtn001 = new ASTFunNode(JJTFUNNODE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { identString = Identifier(); if (jep.... | final public void Function() throws ParseException { int reqArguments = 0; String identString = ""; ASTFunNode jjtn001 = new ASTFunNode(JJTFUNNODE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); try { identString = Identifier(); if (jep.... | 1,115,296 |
public FissuresNamingServiceImpl (java.util.Properties props) throws org.omg.CORBA.ORBPackage.InvalidName{ this.props = props; String[] args = new String[0]; try { orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props); // register valuetype factories ... | public FissuresNamingServiceImpl (java.util.Properties props) throws InvalidName { this.props = props; String[] args = new String[0]; try { orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props); // register valuetype factories AllVTFactory vt = new Al... | 1,115,297 |
public FissuresNamingServiceImpl (java.util.Properties props) throws org.omg.CORBA.ORBPackage.InvalidName{ this.props = props; String[] args = new String[0]; try { orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props); // register valuetype factories ... | public FissuresNamingServiceImpl (java.util.Properties props) throws org.omg.CORBA.ORBPackage.InvalidName{ this.props = props; String[] args = new String[0]; try { orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props); // register valuetype factories ... | 1,115,298 |
public FissuresNamingServiceImpl (java.util.Properties props) throws org.omg.CORBA.ORBPackage.InvalidName{ this.props = props; String[] args = new String[0]; try { orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props); // register valuetype factories ... | public FissuresNamingServiceImpl (java.util.Properties props) throws org.omg.CORBA.ORBPackage.InvalidName{ this.props = props; String[] args = new String[0]; try { orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props); // register valuetype factories ... | 1,115,299 |
public FissuresNamingServiceImpl (java.util.Properties props) throws org.omg.CORBA.ORBPackage.InvalidName{ this.props = props; String[] args = new String[0]; try { orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props); // register valuetype factories ... | public FissuresNamingServiceImpl (java.util.Properties props) throws org.omg.CORBA.ORBPackage.InvalidName{ this.props = props; String[] args = new String[0]; try { orb = (org.omg.CORBA_2_3.ORB)org.omg.CORBA.ORB.init(args, props); // register valuetype factories ... | 1,115,300 |
public void rebind(String dns, String objectname, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, Exception { logger.info("The CLASS Name is "+obj.getClass().getName()); Stri... | public void rebind(String dns, String objectname, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName { logger.info("The CLASS Name is "+obj.getClass().getName()); String interfac... | 1,115,302 |
public void rebind(String dns, String objectname, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, Exception { logger.info("The CLASS Name is "+obj.getClass().getName()); Stri... | public void rebind(String dns, String objectname, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, Exception { logger.info("The CLASS Name is "+obj.getClass().getName()); Stri... | 1,115,303 |
public void rebind(String dns, String objectname, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, Exception { logger.info("The CLASS Name is "+obj.getClass().getName()); Stri... | public void rebind(String dns, String objectname, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, Exception { logger.info("The CLASS Name is "+obj.getClass().getName()); Stri... | 1,115,304 |
public void exchangeHTTPHandshake( SWDownloadSegment aSegment ) throws IOException, UnusableHostException, HTTPMessageException { NetworkManager networkMgr = NetworkManager.getInstance(); isDownloadSuccessful = false; segment = aSegment; long downloadOffset = segment.getTransfe... | public void exchangeHTTPHandshake( SWDownloadSegment aSegment ) throws IOException, UnusableHostException, HTTPMessageException { NetworkManager networkMgr = NetworkManager.getInstance(); isDownloadSuccessful = false; segment = aSegment; long downloadOffset = segment.getTransfe... | 1,115,305 |
public void exchangeHTTPHandshake( SWDownloadSegment aSegment ) throws IOException, UnusableHostException, HTTPMessageException { NetworkManager networkMgr = NetworkManager.getInstance(); isDownloadSuccessful = false; segment = aSegment; long downloadOffset = segment.getTransfe... | public void exchangeHTTPHandshake( SWDownloadSegment aSegment ) throws IOException, UnusableHostException, HTTPMessageException { NetworkManager networkMgr = NetworkManager.getInstance(); isDownloadSuccessful = false; segment = aSegment; long downloadOffset = segment.getTransfe... | 1,115,306 |
public void setValidValue(boolean val) { validValue = val; } | public void setValidValue(boolean val) { if(isConstant()) return; validValue = val; } | 1,115,307 |
public Variable createVariable(String name, Object value) { return new Variable(name,value); } | public Variable createVariable(String name, Object value) { Variable var = new Variable(name,value); return var; } | 1,115,308 |
public synchronized void save() throws IOException { Writer w = new OutputStreamWriter(new FileOutputStream(new File(getRootDir(),"build.xml")),"UTF-8"); w.write("<?xml version='1.0' encoding='UTF-8'?>\n"); createConfiguredStream().toXML(this,w); w.close(); } | public synchronized void save() throws IOException { Writer w = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(getRootDir(),"build.xml")),"UTF-8")); w.write("<?xml version='1.0' encoding='UTF-8'?>\n"); createConfiguredStream().toXML(this,w); w.close(); } | 1,115,309 |
public void execute() throws BuildException { File savedDir = m_dir; // may be altered in validate try { validate(); final Properties userList = new Properties(); loadUserlist(userList); for (Enumeration e = m_cvsUsers.elements(); e.hasMoreEl... | public void execute() throws BuildException { File savedDir = m_dir; // may be altered in validate try { validate(); final Properties userList = new Properties(); loadUserlist(userList); for (Enumeration e = m_cvsUsers.elements(); e.hasMoreEl... | 1,115,310 |
public boolean isBuildable() { return true; } | public boolean isBuildable() { return !isDisabled(); } | 1,115,312 |
public void scheduleBuild() { getParent().getQueue().add(this); } | public void scheduleBuild() { if(!disabled) getParent().getQueue().add(this); } | 1,115,313 |
public void mkdirs() throws IOException { if(!local.mkdirs()) throw new IOException("Failed to mkdirs: "+local); } | public void mkdirs() throws IOException { if(!local.mkdirs() && !local.exists()) throw new IOException("Failed to mkdirs: "+local); } | 1,115,314 |
public ByteCopier(InputStream in, OutputStream out) { this.in = in; this.out = out; } | public ByteCopier(String threadName, InputStream in, OutputStream out) { super(threadName); this.in = in; this.out = out; } | 1,115,316 |
public Copier(InputStream in, OutputStream out) { this.in = in; this.out = out; } | public Copier(String threadName, InputStream in, OutputStream out) { super(threadName); this.in = in; this.out = out; } | 1,115,317 |
boolean check(Calendar cal) { if(!checkBits(bits[0],cal.get(Calendar.MINUTE))) return false; if(!checkBits(bits[1],cal.get(Calendar.HOUR))) return false; if(!checkBits(bits[2],cal.get(Calendar.DAY_OF_MONTH))) return false; if(!checkBits(bits[3],cal.get(Ca... | boolean check(Calendar cal) { if(!checkBits(bits[0],cal.get(Calendar.MINUTE))) return false; if(!checkBits(bits[1],cal.get(Calendar.HOUR_OF_DAY))) return false; if(!checkBits(bits[2],cal.get(Calendar.DAY_OF_MONTH))) return false; if(!checkBits(bits[3],cal... | 1,115,318 |
public void addStyle(String name, Color foreground, Color background, boolean bold) { if (m_textPane == null) return; StyledDocument doc = m_textPane.getStyledDocument(); StyleContext context = StyleContext.getDefaultStyleContext(); Style def = conte... | public void addStyle(String name, Color foreground, Color background, boolean bold) { if (m_textPane == null) return; StyledDocument doc = m_textPane.getStyledDocument(); StyleContext context = StyleContext.getDefaultStyleContext(); Style def = conte... | 1,115,319 |
public void addStyle(String name, Color foreground, Color background, boolean bold) { if (m_textPane == null) return; StyledDocument doc = m_textPane.getStyledDocument(); StyleContext context = StyleContext.getDefaultStyleContext(); Style def = conte... | public void addStyle(String name, Color foreground, Color background, boolean bold) { if (m_textPane == null) return; StyledDocument doc = m_textPane.getStyledDocument(); StyleContext context = StyleContext.getDefaultStyleContext(); Style def = conte... | 1,115,320 |
public Object visit(ASTVarNode node, Object data) throws ParseException { Variable var = node.getVar(); if(var instanceof PartialDerivative) { PartialDerivative deriv = (PartialDerivative) var; if(printPartialEquations && deriv.hasEquation()) deriv.getEquation().jjtAccept(this,null); else sb.append(node... | public Object visit(ASTVarNode node, Object data) throws ParseException { Variable var = node.getVar(); if(var instanceof PartialDerivative) { PartialDerivative deriv = (PartialDerivative) var; if(((mode & PRINT_PARTIAL_EQNS)!=0) && deriv.hasEquation()) deriv.getEquation().jjtAccept(this,null); else sb.... | 1,115,321 |
public Object visit(ASTVarNode node, Object data) throws ParseException { Variable var = node.getVar(); if(var instanceof PartialDerivative) { PartialDerivative deriv = (PartialDerivative) var; if(printPartialEquations && deriv.hasEquation()) deriv.getEquation().jjtAccept(this,null); else sb.append(node... | public Object visit(ASTVarNode node, Object data) throws ParseException { Variable var = node.getVar(); if(var instanceof PartialDerivative) { PartialDerivative deriv = (PartialDerivative) var; if(printPartialEquations && deriv.hasEquation()) deriv.getEquation().jjtAccept(this,null); else sb.append(node... | 1,115,322 |
public Object visit(ASTVarNode node, Object data) throws ParseException { sb.append(node.getName()); return data; } | public Object visit(ASTVarNode node, Object data) throws ParseException { sb.append(node.getName()); return data; } | 1,115,323 |
public void fireUploadFileChanged(UploadState file) { synchronized (uploadStateList) { int position = uploadStateList.indexOf( file ); if ( position >= 0 ) { fireUploadFileChanged( position ); } } } | private void fireUploadFileChanged(final int position) { synchronized (uploadStateList) { int position = uploadStateList.indexOf( file ); if ( position >= 0 ) { fireUploadFileChanged( position ); } } } | 1,115,324 |
public void fireUploadFileChanged(UploadState file) { synchronized (uploadStateList) { int position = uploadStateList.indexOf( file ); if ( position >= 0 ) { fireUploadFileChanged( position ); } } } | public void fireUploadFileChanged(UploadState file) { AsynchronousDispatcher.invokeLater( new Runnable() { int position = uploadStateList.indexOf( file ); if ( position >= 0 ) { fireUploadFileChanged( position ); } } } | 1,115,325 |
public void fireUploadFileChanged(UploadState file) { synchronized (uploadStateList) { int position = uploadStateList.indexOf( file ); if ( position >= 0 ) { fireUploadFileChanged( position ); } } } | public void fireUploadFileChanged(UploadState file) { synchronized (uploadStateList) { int position = uploadStateList.indexOf( file ); if ( position >= 0 ) { fireUploadFileChanged( position ); } } } | 1,115,326 |
public void fireUploadFileChanged(UploadState file) { synchronized (uploadStateList) { int position = uploadStateList.indexOf( file ); if ( position >= 0 ) { fireUploadFileChanged( position ); } } } | public void fireUploadFileChanged(UploadState file) { synchronized (uploadStateList) { int position = uploadStateList.indexOf( file ); if ( position >= 0 ) { Object[] listeners = listenerList.toArray(); UploadFilesChangeListener listener; for (int i... | 1,115,327 |
public void fireUploadFileChanged(UploadState file) { synchronized (uploadStateList) { int position = uploadStateList.indexOf( file ); if ( position >= 0 ) { fireUploadFileChanged( position ); } } } | public void fireUploadFileChanged(UploadState file) { synchronized (uploadStateList) { int position = uploadStateList.indexOf( file ); if ( position >= 0 ) { fireUploadFileChanged( position ); } ); } ); } ); | 1,115,328 |
public void run() { run(new Runner() { public Result run(BuildListener listener) throws IOException { if(!project.checkout(Build.this,listener)) return Result.FAILURE; if(!project.getScm().calcChangeLog(Build.this,new File(getRootDir(),"changelog.xm... | public void run() { run(new Runner() { public Result run(BuildListener listener) throws IOException { if(!project.checkout(Build.this,listener)) return Result.FAILURE; if(!project.getScm().calcChangeLog(Build.this,new File(getRootDir(),"changelog.xm... | 1,115,329 |
public Result run(BuildListener listener) throws IOException { if(!project.checkout(Build.this,listener)) return Result.FAILURE; if(!project.getScm().calcChangeLog(Build.this,new File(getRootDir(),"changelog.xml"),listener)) return Result.F... | public Result run(BuildListener listener) throws IOException { if(!project.checkout(Build.this,listener)) return Result.FAILURE; if(!project.getScm().calcChangeLog(Build.this,new File(getRootDir(),"changelog.xml"),listener)) return Result.F... | 1,115,330 |
public XJep newInstance(SymbolTable st) { XJep newJep = new XJep(this); newJep.symTab = st; return newJep; } | public XJep newInstance() { XJep newJep = new XJep(this); newJep.symTab = st; return newJep; } | 1,115,332 |
public XJep newInstance(SymbolTable st) { XJep newJep = new XJep(this); newJep.symTab = st; return newJep; } | public XJep newInstance(SymbolTable st) { XJep newJep = new XJep(this); return newJep; } | 1,115,333 |
public ASTVarNode buildVariableNode(Variable var) throws ParseException { ASTVarNode node = new ASTVarNode(ParserTreeConstants.JJTVARNODE); node.setVar(var); return node; } | public ASTVarNode buildVariableNode(ASTVarNode node) throws ParseException { ASTVarNode node = new ASTVarNode(ParserTreeConstants.JJTVARNODE); node.setVar(var); return node; } | 1,115,334 |
public ASTVarNode buildVariableNode(Variable var) throws ParseException { ASTVarNode node = new ASTVarNode(ParserTreeConstants.JJTVARNODE); node.setVar(var); return node; } | public ASTVarNode buildVariableNode(Variable var) throws ParseException { ASTVarNode node = new ASTVarNode(ParserTreeConstants.JJTVARNODE); node.setVar(var); return node; } | 1,115,335 |
public Node rewrite(Node node,XJep xjep,RewriteRuleI rules[],boolean simplify) throws ParseException,IllegalArgumentException { xj = xjep; nf = xjep.getNodeFactory(); opSet = xjep.getOperatorSet(); tu = xjep.getTreeUtils(); this.rules = rules; this.simp = simplify; if(this.rules.length==0) return node; if (node =... | public Node rewrite(Node node,XJep xjep,RewriteRuleI inrules[],boolean simplify) throws ParseException,IllegalArgumentException { xj = xjep; nf = xjep.getNodeFactory(); opSet = xjep.getOperatorSet(); tu = xjep.getTreeUtils(); this.rules = rules; this.simp = simplify; if(this.rules.length==0) return node; if (node... | 1,115,336 |
public Node rewrite(Node node,XJep xjep,RewriteRuleI rules[],boolean simplify) throws ParseException,IllegalArgumentException { xj = xjep; nf = xjep.getNodeFactory(); opSet = xjep.getOperatorSet(); tu = xjep.getTreeUtils(); this.rules = rules; this.simp = simplify; if(this.rules.length==0) return node; if (node =... | public Node rewrite(Node node,XJep xjep,RewriteRuleI rules[],boolean simplify) throws ParseException,IllegalArgumentException { xj = xjep; nf = xjep.getNodeFactory(); opSet = xjep.getOperatorSet(); tu = xjep.getTreeUtils(); this.rules = rules; this.simp = simplify; if(this.rules.length==0) return node; if (node =... | 1,115,337 |
public void calcMashSchedule() { // Method to run through the mash table and calculate values double strikeTemp = 0; double targetTemp = 0; double endTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; double tunLoss = tun... | public void calcMashSchedule() { // Method to run through the mash table and calculate values double strikeTemp = 0; double targetTemp = 0; double endTemp = 0; double waterAddedQTS = 0; double waterEquiv = 0; double mr = mashRatio; double currentTemp = grainTempF; double displTemp = 0; double tunLoss = tun... | 1,115,338 |
public double getTunLoss() { if (tempUnits.equals("F")) return tunLossF; else return fToC(tunLossF); } | public double getTunLoss() { if (tempUnits.equals("F")) return tunLossF; else return ( tunLossF / 1.8 ); } | 1,115,339 |
public void setTunLoss(double t){ if (tempUnits.equals("F")) tunLossF = t; else tunLossF = cToF(t); calcMashSchedule(); } | public void setTunLoss(double t){ if (tempUnits.equals("F")) tunLossF = t; else tunLossF = t * 1.8; calcMashSchedule(); } | 1,115,340 |
public void displayMash() { if (myRecipe != null) { recipeNameLabel.setText(myRecipe.getName()); mashModel.setData(myRecipe.getMash()); tblMash.updateUI(); volUnitsComboModel.addOrInsert(myRecipe.mash.getMashVolUnits()); // temp units: if (myRecipe.mash.getMashTempUnits().equals("F")) tempFrb.setSel... | public void displayMash() { if (myRecipe != null) { recipeNameLabel.setText(myRecipe.getName()); mashModel.setData(myRecipe.getMash()); tblMash.updateUI(); volUnitsComboModel.addOrInsert(myRecipe.mash.getMashVolUnits()); // temp units: if (myRecipe.mash.getMashTempUnits().equals("F")) tempFrb.setSel... | 1,115,342 |
public void setGrainTemp(double t){ if (tempUnits.equals("F")) grainTempF = t; else grainTempF = cToF(t); calcMashSchedule(); } | public void setGrainTemp(double t){ if (tempUnits.equals("F")) grainTempF = t; else grainTempF = BrewCalcs.cToF(t); calcMashSchedule(); } | 1,115,344 |
public double getGrainTemp() { if (tempUnits.equals("F")) return grainTempF; else return fToC(grainTempF); } | public double getGrainTemp() { if (tempUnits.equals("F")) return grainTempF; else return BrewCalcs.fToC(grainTempF); } | 1,115,345 |
public String getVolAbrv(String unit) { return getAbrvFromUnit(getTypeFromUnit(unit), unit); } | public String getVolAbrv(String unit) { return getAbrvFromUnit(getTypeFromUnit(unit), unit); } | 1,115,346 |
public Dimensions calcDim(Dimensions l,Dimensions r) { if(l.equals(Dimensions.ONE) && r.equals(Dimensions.ONE)) return Dimensions.ONE; if(l.is0D() ) return r; // scalar mult on left if(r.is0D() ) return l; // scalar mult on right if(l.is1D() && r.is1D() ) return null; // error for vector * vector if(l.is2D() && r... | public Dimensions calcDim(Dimensions l,Dimensions r) { if(l.equals(Dimensions.ONE) && r.equals(Dimensions.ONE)) return Dimensions.ONE; if(l.is0D() ) return r; // scalar mult on left if(r.is0D() ) return l; // scalar mult on right if(l.is1D() && r.is1D() ) return null; // error for vector * vector if(l.is2D() && r... | 1,115,347 |
public Dimensions calcDim(Dimensions l,Dimensions r) { if(l.equals(Dimensions.ONE) && r.equals(Dimensions.ONE)) return Dimensions.ONE; if(l.is0D() ) return r; // scalar mult on left if(r.is0D() ) return l; // scalar mult on right if(l.is1D() && r.is1D() ) return null; // error for vector * vector if(l.is2D() && r... | public Dimensions calcDim(Dimensions l,Dimensions r) { if(l.equals(Dimensions.ONE) && r.equals(Dimensions.ONE)) return Dimensions.ONE; if(l.is0D() ) return r; // scalar mult on left if(r.is0D() ) return l; // scalar mult on right if(l.is1D() && r.is1D() ) return null; // error for vector * vector if(l.is2D() && r... | 1,115,348 |
public Dimensions calcDim(Dimensions l,Dimensions r) { if(l.equals(Dimensions.ONE) && r.equals(Dimensions.ONE)) return Dimensions.ONE; if(l.is0D() ) return r; // scalar mult on left if(r.is0D() ) return l; // scalar mult on right if(l.is1D() && r.is1D() ) return null; // error for vector * vector if(l.is2D() && r... | public Dimensions calcDim(Dimensions l,Dimensions r) { if(l.equals(Dimensions.ONE) && r.equals(Dimensions.ONE)) return Dimensions.ONE; if(l.is0D() ) return r; // scalar mult on left if(r.is0D() ) return l; // scalar mult on right if(l.is1D() && r.is1D() ) return null; // error for vector * vector if(l.is2D() && r... | 1,115,349 |
public MatrixValueI calcValue(MatrixValueI res,MatrixValueI param1,MatrixValueI param2) throws ParseException { if(res instanceof MVector && param1 instanceof Matrix && param2 instanceof MVector) return calcValue((MVector) res,(Matrix) param1,(MVector) param2); else if(res instanceof MVector && param1 instanceof M... | public MatrixValueI calcValue(MatrixValueI res,MatrixValueI param1,MatrixValueI param2) throws ParseException { if(res instanceof MVector && param1 instanceof Matrix && param2 instanceof MVector) return calcValue((MVector) res,(Matrix) param1,(MVector) param2); else if(res instanceof MVector && param1 instanceof M... | 1,115,350 |
public MatrixValueI calcValue(MatrixValueI res,MatrixValueI param1,MatrixValueI param2) throws ParseException { if(res instanceof MVector && param1 instanceof Matrix && param2 instanceof MVector) return calcValue((MVector) res,(Matrix) param1,(MVector) param2); else if(res instanceof MVector && param1 instanceof M... | public MatrixValueI calcValue(MatrixValueI res,MatrixValueI param1,MatrixValueI param2) throws ParseException { if(res instanceof MVector && param1 instanceof Matrix && param2 instanceof MVector) return calcValue((MVector) res,(Matrix) param1,(MVector) param2); else if(res instanceof MVector && param1 instanceof M... | 1,115,351 |
public Object mul(Object param1, Object param2) throws ParseException { // TODO tensor mult? if(param1 instanceof Matrix && param2 instanceof MVector) return mul((Matrix) param1,(MVector) param2); else if(param1 instanceof MVector && param2 instanceof Matrix) return mul((MVector) param1,(Matrix) param2); e... | public Object mul(Object param1, Object param2) throws ParseException { // TODO tensor mult? if(param1 instanceof Matrix && param2 instanceof MVector) return mul((Matrix) param1,(MVector) param2); else if(param1 instanceof MVector && param2 instanceof Matrix) return mul((MVector) param1,(Matrix) param2); e... | 1,115,353 |
public void setEle(int i,int j,Object value) { data[i][j] = value; } | public void setEle(int n,Object value) { data[i][j] = value; } | 1,115,354 |
public Matrix(int rows,int cols) { this.rows = rows; this.cols = cols; data = new Object[rows][cols]; dims = Dimensions.valueOf(rows,cols); } | public Matrix(int rows,int cols) { this.rows = rows; this.cols = cols; data = new Object[rows][cols]; dims = Dimensions.valueOf(rows,cols); } | 1,115,356 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.