bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
protected FreeMarkerView prepareView(String templateName) { FreeMarkerView fv = new FreeMarkerView(); fv.setUrl(templateName); fv.setApplicationContext(wac); fv.setExposeSpringMacroHelpers(true); return fv; }
protected FreeMarkerView prepareView(String templateName) throws Exception { FreeMarkerView fv = new FreeMarkerView(); fv.setUrl(templateName); fv.setApplicationContext(wac); fv.setExposeSpringMacroHelpers(true); return fv; }
1,115,590
private void updateButtonDisplay() { StringBuffer textBuf = new StringBuffer(); if ( search instanceof KeywordSearch ) { textBuf.append( ((KeywordSearch)search).getSearchString() ); setIcon( GUIRegistry.getInstance().getIconFactory().getIcon("Search") ); } ...
public void updateButtonDisplay() { StringBuffer textBuf = new StringBuffer(); if ( search instanceof KeywordSearch ) { textBuf.append( ((KeywordSearch)search).getSearchString() ); setIcon( GUIRegistry.getInstance().getIconFactory().getIcon("Search") ); } ...
1,115,594
private void updateButtonDisplay() { StringBuffer textBuf = new StringBuffer(); if ( search instanceof KeywordSearch ) { textBuf.append( ((KeywordSearch)search).getSearchString() ); setIcon( GUIRegistry.getInstance().getIconFactory().getIcon("Search") ); } ...
private void updateButtonDisplay() { StringBuffer textBuf = new StringBuffer(); if ( search instanceof KeywordSearch ) { textBuf.append( ((KeywordSearch)search).getSearchString() ); setIcon( GUIRegistry.getInstance().getIconFactory().getIcon("Search") ); } ...
1,115,595
private void updateButtonDisplay() { StringBuffer textBuf = new StringBuffer(); if ( search instanceof KeywordSearch ) { textBuf.append( ((KeywordSearch)search).getSearchString() ); setIcon( GUIRegistry.getInstance().getIconFactory().getIcon("Search") ); } ...
private void updateButtonDisplay() { StringBuffer textBuf = new StringBuffer(); if ( search instanceof KeywordSearch ) { textBuf.append( ((KeywordSearch)search).getSearchString() ); setIcon( GUIRegistry.getInstance().getIconFactory().getIcon("Search") ); } ...
1,115,596
public static SearchResultsDataModel lookupResultDataModel( Search search ) { return (SearchResultsDataModel) searchToDataModelMap.get( search ); }
public static SearchResultsDataModel lookupResultDataModel( Search search ) { return searchToDataModelMap.get( search ); }
1,115,597
public RecipeDetailsController(RecipeDetailsView aView, Recipe aRecipe) { super(aView); myContents = aView; myRecipe = aRecipe; }
public RecipeDetailsController(RecipeDetailsView aView, Recipe aRecipe) { super(aView, aRecipe); myContents = aView; myRecipe = aRecipe; }
1,115,598
public RecipeDetailsController(RecipeDetailsView aView, Recipe aRecipe) { super(aView); myContents = aView; myRecipe = aRecipe; }
public RecipeDetailsController(RecipeDetailsView aView, Recipe aRecipe) { super(aView); myContents = aView; }
1,115,599
public String toXML(){ StringBuffer sb = new StringBuffer(); sb.append( " <ITEM>\n" ); sb.append( " <MALT>"+getName()+"</MALT>\n" ); sb.append( " <AMOUNT>"+getAmountAs(getUnits())+"</AMOUNT>\n" ); sb.append( " <UNITS>"+getUnitsAbrv()+"</UNITS>\n" ); sb.append( " <POINTS>"...
public String toXML(){ StringBuffer sb = new StringBuffer(); sb.append( " <ITEM>\n" ); sb.append( " <MALT>"+getName()+"</MALT>\n" ); sb.append( " <AMOUNT>"+getAmountAs(getUnits())+"</AMOUNT>\n" ); sb.append( " <UNITS>"+getUnitsAbrv()+"</UNITS>\n" ); sb.append( " <POINTS>"...
1,115,600
public BasicTimeConfig(DataSetSeismogram[] seismos){ add(seismos); }
public BasicTimeConfig(DataSetSeismogram[] seismos){ add(seismos); }
1,115,601
public ConfigEvent(DataSetSeismogram[] seismos, TimeEvent time, AmpEvent amp){ this.seismos = seismos; this.time = time; this.amp = amp; }
public ConfigEvent(DataSetSeismogram[] seismos, TimeEvent time, AmpEvent amp){ this.seismos = seismos; this.time = time; this.amp = amp; }
1,115,602
get_for_day(edu.iris.Fissures.IfNetwork.ChannelId channel_id, int year, int jday, edu.iris.Fissures.Dimension pixel_size) throws PlottableNotAvailable, UnsupportedDimension { SoftReference ref; Plottable[] plottableArray; String key = ChannelIdUtil.toString(channel_id)+"."+Integer.toString(year)+...
get_for_day(edu.iris.Fissures.IfNetwork.ChannelId channel_id, int year, int jday, edu.iris.Fissures.Dimension pixel_size) throws PlottableNotAvailable, UnsupportedDimension { SoftReference ref; Plottable[] plottableArray; String key = ChannelIdUtil.toString(channel_id)+"."+Integer.toString(year)+...
1,115,603
public void setPasswordDirty(boolean passwordDirty) { this.verifyPassword = ""; this.passwordDirty = passwordDirty; }
public void setPasswordDirty(boolean passwordDirty) { this.passwordDirty = passwordDirty; }
1,115,604
public String createFileName(DataSet dataset) { String filename = dataset.getName()+".dsml"; filename = filename.replaceAll(" ","_"); filename = filename.replaceAll(",","_"); filename = filename.replaceAll("/","_"); filename = filename.replaceAll(":","_"); // filename = fil...
public static String createFileName(DataSet dataset) { String filename = dataset.getName()+".dsml"; filename = filename.replaceAll(" ","_"); filename = filename.replaceAll(",","_"); filename = filename.replaceAll("/","_"); filename = filename.replaceAll(":","_"); // filenam...
1,115,606
public void insertInto(Element element, DataSet dataset, File directory) throws IOException, ParserConfigurationException, MalformedURLException { Document doc = element.getOwnerDocument(); element.setAttribute("datasetid", dataset.getId()); element.appendChild(XMLUtil.createTextElement(...
public void insertInto(Element element, DataSet dataset, File directory) throws IOException, ParserConfigurationException, MalformedURLException { Document doc = element.getOwnerDocument(); element.setAttribute("datasetid", dataset.getId()); element.appendChild(XMLUtil.createTextElement(...
1,115,607
public Element insertRef(Element element, DataSet dataset, File directory) throws IOException, ParserConfigurationException, MalformedURLException { File dsFile = save(dataset, directory); return insertRef(element, dsFile.toURI().toURL().toString(), dataset.getName()); }
public Element insertRef(Element element, DataSet dataset, File directory) throws IOException, ParserConfigurationException, MalformedURLException { File dsFile = save(dataset, directory); return insertRef(element, directory.getName()+"/"+dsFile.getName(), dataset.getName()); }
1,115,608
public static String getText(Element config) { if(config == null) return null; NodeList children = config.getChildNodes(); Node node; for (int i=0; i<children.getLength(); i++) { node = children.item(i); if (node instanceof Text) { return node.getNodeValue()...
public static String getText(Element config) { if(config == null) return new String(""); NodeList children = config.getChildNodes(); Node node; for (int i=0; i<children.getLength(); i++) { node = children.item(i); if (node instanceof Text) { return node.getN...
1,115,609
public static String getText(Element config) { if(config == null) return null; NodeList children = config.getChildNodes(); Node node; for (int i=0; i<children.getLength(); i++) { node = children.item(i); if (node instanceof Text) { return node.getNodeValue()...
public static String getText(Element config) { if(config == null) return new String(""); NodeList children = config.getChildNodes(); Node node; for (int i=0; i<children.getLength(); i++) { node = children.item(i); if (node instanceof Text) { return node.getN...
1,115,610
public void addDataSetSeismogram(DataSetSeismogram dss, AuditInfo[] audit) { if (datasetSeismogramNames.contains(dss.getName())) { int n = 1; String tmpName = dss.getName(); while(datasetSeismogramNames.contains(dss.getName())) { n++; tmpName = d...
public void addDataSetSeismogram(DataSetSeismogram dss, AuditInfo[] audit) { if (datasetSeismogramNames.contains(dss.getName())) { int n = 1; String tmpName = dss.getName(); while(datasetSeismogramNames.contains(tmpName)) { n++; tmpName = dss.get...
1,115,611
public void run() { try { // no gwebcache actions if we have no auto connect and are // not connected to any host NetworkHostsContainer networkHostsCont = HostManager.getInstance().getNetworkHostsContainer(); ...
public void run() { try { // no gwebcache actions if we have no auto connect and are // not connected to any host NetworkHostsContainer networkHostsCont = HostManager.getInstance().getNetworkHostsContainer(); ...
1,115,612
public boolean updateRemoteGWebCache( DestAddress myHostAddress, boolean preferPhex ) { String fullHostName = null; if ( myHostAddress != null ) { fullHostName = myHostAddress.getFullHostName(); } int retrys = 0; boolean succ = false; do { ...
public boolean updateRemoteGWebCache( DestAddress myHostAddress, boolean preferPhex ) { String fullHostName = null; if ( myHostAddress != null ) { fullHostName = myHostAddress.getFullHostName(); } int retrys = 0; boolean succ = false; do { ...
1,115,614
private void annotateOperators(OperatorSet o) { OP_GT = new XOperator(o.getGT(),XOperator.BINARY+XOperator.LEFT+XOperator.TRANSITIVE); OP_LT = new XOperator(o.getLT(),XOperator.BINARY+XOperator.LEFT+XOperator.TRANSITIVE); OP_EQ = new XOperator(o.getEQ(),XOperator.BINARY+XOperator.LEFT+XOperator.EQUIVILE...
private void annotateOperators(OperatorSet o) { OP_GT = new XOperator(o.getGT(),XOperator.BINARY+XOperator.LEFT+XOperator.TRANSITIVE); OP_LT = new XOperator(o.getLT(),XOperator.BINARY+XOperator.LEFT+XOperator.TRANSITIVE); OP_EQ = new XOperator(o.getEQ(),XOperator.BINARY+XOperator.LEFT+XOperator.EQUIVILE...
1,115,615
public void addDataSetSeismogram(DataSetSeismogram dss) { String name; name = dss.getName(); if ( name == null || name.length == 0) { name = ChannelIdUtil.toStringNoDates(dss.getRequestFilter().channel_id); } // end of if () name = getUniqueName(getDataSetSeismogramNames(), name); if ( ! name.equals(dss.getName...
public void addDataSetSeismogram(DataSetSeismogram dss) { String name; name = dss.getName(); if ( name == null || name.length == 0) { name = ChannelIdUtil.toStringNoDates(dss.getRequestFilter().channel_id); } // end of if () name = getUniqueName(getDataSetSeismogramNames(), name); if ( ! name.equals(dss.getName...
1,115,616
public abstract ChangeLogSet parse(Build build, File changelogFile) throws IOException, SAXException;
public abstract ChangeLogSet<? extends Entry> parse(Build build, File changelogFile) throws IOException, SAXException;
1,115,617
public void freeze(SuiteResult parent) { this.parent = parent; if(!isPassed()) { CaseResult prev = getPreviousResult(); if(prev!=null && !prev.isPassed()) this.failedSince = prev.failedSince; else this.failedSince = getOwner().getNumber();...
public void freeze(SuiteResult parent) { this.parent = parent; if(!isPassed() && failedSince==0) { CaseResult prev = getPreviousResult(); if(prev!=null && !prev.isPassed()) this.failedSince = prev.failedSince; else this.failedSince = getOw...
1,115,618
/*package*/ void setNode(Node node) { assert node!=null; this.node = node; setNumExecutors(node.getNumExecutors()); }
/*package*/ void setNode(Node node) { assert node!=null; if(node instanceof Slave) this.nodeName = node.getNodeName(); else this.nodeName = null; setNumExecutors(node.getNumExecutors()); }
1,115,621
public static DataSetSeismogram[][] getComponents(DataSetSeismogram[] dss, String suffix){ List names = new ArrayList(); List north = new ArrayList(); List east = new ArrayList(); List z = new ArrayList(); for(int i = 0; i < dss.length; i++){ if(!names.contains(dss[i].g...
public static DataSetSeismogram[][] getComponents(DataSetSeismogram[] dss, String suffix){ List names = new ArrayList(); List north = new ArrayList(); List east = new ArrayList(); List z = new ArrayList(); for(int i = 0; i < dss.length; i++){ if(!names.contains(dss[i].g...
1,115,622
public void findFittingPartForRange( Range requestedRange ) { Range availableRange; Iterator iterator = availableRangeSet.getIterator(); long fileSize = getFileSize(); while ( iterator.hasNext() ) { availableRange = (Range)iterator.next(); if ( availableRa...
public void findFittingPartForRange( Range requestedRange ) { Range availableRange; Iterator iterator = availableRangeSet.getIterator(); long fileSize = getFileSize(); while ( iterator.hasNext() ) { availableRange = (Range)iterator.next(); if ( availableRa...
1,115,623
public Diff() { super(); numberOfParameters = 2; }
public Diff() { super(); super.numberOfParameters = 2; }
1,115,624
public NetworkAttr get_attributes() { int count = 0; RuntimeException lastException = null; while (count < retry) { try { return net.get_attributes(); } catch (RuntimeException t) { lastException = t; logger.warn("Caught excepti...
public NetworkAttr get_attributes() { int count = 0; RuntimeException lastException = null; while (count < retry) { try { return net.get_attributes(); } catch (RuntimeException t) { lastException = t; logger.warn("Caught excepti...
1,115,625
public NetworkAttr get_attributes() { int count = 0; RuntimeException lastException = null; while (count < retry) { try { return net.get_attributes(); } catch (RuntimeException t) { lastException = t; logger.warn("Caught excepti...
public NetworkAttr get_attributes() { int count = 0; RuntimeException lastException = null; while (count < retry) { try { return net.get_attributes(); } catch (RuntimeException t) { lastException = t; logger.warn("Caught excepti...
1,115,626
public void mul(PNodeI term,PNodeI power) throws ParseException { for(int i=0;i<length;++i) { if(terms[i].equals(term)) { powers[i] = powers[i].add(power); return; } } // insert in correct posn PNodeI newTerms[] = new PNodeI[length+1]; PNodeI newPowers[] = new PNodeI[length+1]; int pos=0; boolean done...
public void mul(PConstant c) throws ParseException { for(int i=0;i<length;++i) { if(terms[i].equals(term)) { powers[i] = powers[i].add(power); return; } } // insert in correct posn PNodeI newTerms[] = new PNodeI[length+1]; PNodeI newPowers[] = new PNodeI[length+1]; int pos=0; boolean done = false; fo...
1,115,627
public void mul(PNodeI term,PNodeI power) throws ParseException { for(int i=0;i<length;++i) { if(terms[i].equals(term)) { powers[i] = powers[i].add(power); return; } } // insert in correct posn PNodeI newTerms[] = new PNodeI[length+1]; PNodeI newPowers[] = new PNodeI[length+1]; int pos=0; boolean done...
public void mul(PNodeI term,PNodeI power) throws ParseException { for(int i=0;i<length;++i) { if(terms[i].equals(term)) { powers[i] = powers[i].add(power); return; } } // insert in correct posn PNodeI newTerms[] = new PNodeI[length+1]; PNodeI newPowers[] = new PNodeI[length+1]; int pos=0; boolean done...
1,115,628
void power(PConstant c) throws ParseException { coeff = (PConstant) c.pow(c); for(int i=0;i<length;++i) powers[i] = powers[i].mul(c); }
void power(PConstant c) throws ParseException { coeff = (PConstant) coeff.pow(c); for(int i=0;i<length;++i) powers[i] = powers[i].mul(c); }
1,115,629
public Process(Entity entity, String docCode) { super(entity, docCode); }
public Process(Entity entity, String docCode) { super(entity, docCode); }
1,115,630
public RemoteFile[] getSelectedRemoteFiles( boolean singleForAll ) { ISearchDataModel searchDataModel = searchTreeTableModel.getDisplayedResultsData(); if (searchDataModel == null) { return EMPTY_REMOTE_FILE_ARRAY; } TreePath[] selectionPaths = searchTreeTabl...
public RemoteFile[] getSelectedRemoteFiles( boolean singleForAll ) { ISearchDataModel searchDataModel = searchTreeTableModel.getDisplayedResultsData(); if (searchDataModel == null) { return EMPTY_REMOTE_FILE_ARRAY; } TreePath[] selectionPaths = searchTreeTabl...
1,115,631
public SWDownloadFile getDownloadFile( long fileSize, URN matchURN ) { synchronized( downloadList ) { SWDownloadFile file = getDownloadFileByURN( matchURN ); if ( file != null && file.getTotalDataSize() == fileSize ) { return file; } ...
public SWDownloadFile getDownloadFile( int index ) { synchronized( downloadList ) { SWDownloadFile file = getDownloadFileByURN( matchURN ); if ( file != null && file.getTotalDataSize() == fileSize ) { return file; } return null; ...
1,115,632
public SWDownloadFile getDownloadFile( long fileSize, URN matchURN ) { synchronized( downloadList ) { SWDownloadFile file = getDownloadFileByURN( matchURN ); if ( file != null && file.getTotalDataSize() == fileSize ) { return file; } ...
public SWDownloadFile getDownloadFile( long fileSize, URN matchURN ) { synchronized( downloadList ) { SWDownloadFile file = getDownloadFileByURN( matchURN ); if ( file != null && file.getTotalDataSize() == fileSize ) { return file; } ...
1,115,633
public SWDownloadFile getDownloadFile( long fileSize, URN matchURN ) { synchronized( downloadList ) { SWDownloadFile file = getDownloadFileByURN( matchURN ); if ( file != null && file.getTotalDataSize() == fileSize ) { return file; } ...
public SWDownloadFile getDownloadFile( long fileSize, URN matchURN ) { synchronized( downloadList ) { SWDownloadFile file = getDownloadFileByURN( matchURN ); if ( file != null && file.getTotalDataSize() == fileSize ) { return null; } ...
1,115,634
public SWDownloadFile getDownloadFile( long fileSize, URN matchURN ) { synchronized( downloadList ) { SWDownloadFile file = getDownloadFileByURN( matchURN ); if ( file != null && file.getTotalDataSize() == fileSize ) { return file; } ...
public SWDownloadFile getDownloadFile( long fileSize, URN matchURN ) { synchronized( downloadList ) { SWDownloadFile file = getDownloadFileByURN( matchURN ); if ( file != null && file.getTotalDataSize() == fileSize ) { return file; } ...
1,115,635
private void prepareComponent() { CloseEventHandler closeEventHandler = new CloseEventHandler(); addWindowListener( closeEventHandler ); Container contentPane = getContentPane(); contentPane.setLayout( new BorderLayout() ); JPanel contentPanel = new JPanel(); ...
private void prepareComponent() { CloseEventHandler closeEventHandler = new CloseEventHandler(); addWindowListener( closeEventHandler ); Container contentPane = getContentPane(); contentPane.setLayout( new BorderLayout() ); JPanel contentPanel = new JPanel(); ...
1,115,636
public UserRole findUserRoleByNaturalId(User user, Service service, String serviceExtension);
public UserRole findUserRoleByNaturalId(UserGroup userGroup, Service service, String serviceExtension);
1,115,638
public String getClockDifferenceString() { try { long diff = getClockDifference(); if(-1000<diff && diff <1000) return "In sync"; // clock is in sync long abs = Math.abs(diff); String s = Util.getTimeSpanString(abs); if(diff<0) ...
public String getClockDifferenceString() { try { long diff = getClockDifference(); if(-1000<diff && diff <1000) return "In sync"; // clock is in sync long abs = Math.abs(diff); String s = Util.getTimeSpanString(abs); if(diff<0) ...
1,115,639
public Entity findDefaultEntity() { return entityDao.findDefaultEntity().getDefaultEntity().getEntity(); }
public Entity findDefaultEntity() { return entityDao.findDefaultEntity(); }
1,115,640
public PSNEventInfo(DataInputStream data) throws IOException{ dis = data; time = new PSNDateTime(dis); //System.out.println(time.toString()); lat = SacTimeSeries.swapBytes(dis.readDouble()); lon = SacTimeSeries.swapBytes(dis.readDouble()); depthKM = SacTimeSeries.swapBytes(...
public PSNEventInfo(DataInputStream data) throws IOException{ dis = data; time = new PSNDateTime(dis); //System.out.println(time.toString()); lat = SacTimeSeries.swapBytes(dis.readDouble()); lon = SacTimeSeries.swapBytes(dis.readDouble()); depthKM = SacTimeSeries.swapBytes(...
1,115,641
public PSNEventInfo(DataInputStream data) throws IOException{ dis = data; time = new PSNDateTime(dis); //System.out.println(time.toString()); lat = SacTimeSeries.swapBytes(dis.readDouble()); lon = SacTimeSeries.swapBytes(dis.readDouble()); depthKM = SacTimeSeries.swapBytes(...
public PSNEventInfo(DataInputStream data) throws IOException{ dis = data; time = new PSNDateTime(dis); //System.out.println(time.toString()); lat = SacTimeSeries.swapBytes(dis.readDouble()); lon = SacTimeSeries.swapBytes(dis.readDouble()); depthKM = SacTimeSeries.swapBytes(...
1,115,642
public void run(){ LocalSeismogramImpl[] containedSeis = container.getSeismograms(); List alreadyFiltered = new ArrayList(); Iterator it = data.iterator(); boolean found = false; while(it.hasNext()){ SoftReference currentRef = (SoftReference)...
public void run(){ LocalSeismogramImpl[] containedSeis = container.getSeismograms(); List alreadyFiltered = new ArrayList(); Iterator it = data.iterator(); boolean found = false; while(it.hasNext()){ SoftReference currentRef = (SoftReference)...
1,115,643
public FilteredDataSetSeismogram(DataSetSeismogram dss, ColoredFilter filter){ super(dss.getDataSet(), filter.getName()); this.filter = filter; wrappedDSS = dss; container = new SeismogramContainer(this, wrappedDSS); }
public FilteredDataSetSeismogram(DataSetSeismogram dss, ColoredFilter filter){ super(dss.getDataSet(), filter.getName()); this.filter = filter; wrappedDSS = dss; container = new SeismogramContainer(this, wrappedDSS); }
1,115,644
public edu.iris.Fissures.Time getBeginTime() { return wrappedDSS.getBeginTime(); }
public Time getBeginTime() { return wrappedDSS.getBeginTime(); }
1,115,646
public edu.iris.Fissures.Time getEndTime() { return wrappedDSS.getEndTime(); }
public Time getEndTime() { return wrappedDSS.getEndTime(); }
1,115,647
public void setBeginTime(edu.iris.Fissures.Time time) { throw new UnsupportedOperationException("Cannot set begin time on filtered seismogram. It is entirely reliant on the wrapped dss time"); }
public void setBeginTime(Time time) { throw new UnsupportedOperationException("Cannot set begin time on filtered seismogram. It is entirely reliant on the wrapped dss time"); }
1,115,648
public void setEndTime(edu.iris.Fissures.Time time) { throw new UnsupportedOperationException("Cannot set end time on filtered seismogram. It is entirely reliant on the wrapped dss time"); }
public void setEndTime(Time time) { throw new UnsupportedOperationException("Cannot set end time on filtered seismogram. It is entirely reliant on the wrapped dss time"); }
1,115,649
public void simplifyTestString(String expr,String expected) throws ParseException { Node node = j.parse(expr); Node processed = j.commandv.process(node,j); Node simp = j.simplify(processed); String res = j.pv.toString(simp); if(!expected.equals(res)) System.out.println("Error: Value of \""+expr+"\" is \""+r...
public void simplifyTestString(String expr,String expected) throws ParseException { Node node = j.parse(expr); Node processed = j.preprocess(node); Node simp = j.simplify(processed); String res = j.pv.toString(simp); if(!expected.equals(res)) System.out.println("Error: Value of \""+expr+"\" is \""+res+"\" s...
1,115,650
public void simplifyTestString(String expr,String expected) throws ParseException { Node node = j.parse(expr); Node processed = j.commandv.process(node,j); Node simp = j.simplify(processed); String res = j.pv.toString(simp); if(!expected.equals(res)) System.out.println("Error: Value of \""+expr+"\" is \""+r...
public void simplifyTestString(String expr,String expected) throws ParseException { Node node = j.parse(expr); Node processed = j.commandv.process(node,j); Node simp = j.simplify(processed); String res = j.toString(simp); if(!expected.equals(res)) System.out.println("Error: Value of \""+expr+"\" is \""+res+...
1,115,651
public void simplifyTest(String expr,String expected) throws ParseException { Node node = j.parse(expr); Node processed = j.commandv.process(node,j); Node simp = j.simplify(processed); String res = j.pv.toString(simp); Node node2 = j.parse(expected); Node processed2 = j.commandv.process(node2,j); Node simp2 =...
public void simplifyTest(String expr,String expected) throws ParseException { Node node = j.parse(expr); Node processed = j.preprocess(node); Node simp = j.simplify(processed); String res = j.pv.toString(simp); Node node2 = j.parse(expected); Node processed2 = j.commandv.process(node2,j); Node simp2 = j.simpl...
1,115,652
public void simplifyTest(String expr,String expected) throws ParseException { Node node = j.parse(expr); Node processed = j.commandv.process(node,j); Node simp = j.simplify(processed); String res = j.pv.toString(simp); Node node2 = j.parse(expected); Node processed2 = j.commandv.process(node2,j); Node simp2 =...
public void simplifyTest(String expr,String expected) throws ParseException { Node node = j.parse(expr); Node processed = j.commandv.process(node,j); Node simp = j.simplify(processed); String res = j.toString(simp); Node node2 = j.parse(expected); Node processed2 = j.commandv.process(node2,j); Node simp2 = j....
1,115,653
public void simplifyTest(String expr,String expected) throws ParseException { Node node = j.parse(expr); Node processed = j.commandv.process(node,j); Node simp = j.simplify(processed); String res = j.pv.toString(simp); Node node2 = j.parse(expected); Node processed2 = j.commandv.process(node2,j); Node simp2 =...
public void simplifyTest(String expr,String expected) throws ParseException { Node node = j.parse(expr); Node processed = j.commandv.process(node,j); Node simp = j.simplify(processed); String res = j.pv.toString(simp); Node node2 = j.parse(expected); Node processed2 = j.preprocess(node2); Node simp2 = j.simpl...
1,115,654
public void simplifyTest(String expr,String expected) throws ParseException { Node node = j.parse(expr); Node processed = j.commandv.process(node,j); Node simp = j.simplify(processed); String res = j.pv.toString(simp); Node node2 = j.parse(expected); Node processed2 = j.commandv.process(node2,j); Node simp2 =...
public void simplifyTest(String expr,String expected) throws ParseException { Node node = j.parse(expr); Node processed = j.commandv.process(node,j); Node simp = j.simplify(processed); String res = j.pv.toString(simp); Node node2 = j.parse(expected); Node processed2 = j.commandv.process(node2,j); Node simp2 =...
1,115,655
public StatRecord(String description, String unit, int value) { this.description = description; this.unit = unit; intValue = value; this.value = "" + value; }
public StatRecord(String description, String unit, int value) { this.description = description; this.unit = unit; intValue = value; this.value = "" + value; }
1,115,656
public static void deleteContentsRecursive(File file) throws IOException { for (File child : file.listFiles()) { if (child.isDirectory()) deleteContentsRecursive(child); if (!child.delete()) throw new IOException("Unable to delete " + child.getPath()); ...
public static void deleteContentsRecursive(File file) throws IOException { File[] files = file.listFiles(); if(files==null) return; for (File child : files) { if (child.isDirectory()) deleteContentsRecursive(child); if (!child.delete()) throw new IOExceptio...
1,115,657
static public int binom(int n,int i) { expand(n); return coeffs[n][i]; }
static public int binom(int n,int i) throws ArrayIndexOutOfBoundsException { expand(n); return coeffs[n][i]; }
1,115,658
public void testAuthenticateWithProxy() throws Exception { this.context = new CasSecurityContext(new TicketValidator() { public Assertion validate(String ticketId, Service service) throws ValidationException { return new AssertionImpl(new SimplePrincipal("test"), new HashMap()); ...
public void testAuthenticateWithProxy() throws Exception { this.context = new CasSecurityContext(new TicketValidator() { public Assertion validate(String ticketId, Service service) throws ValidationException { return new AssertionImpl(new SimplePrincipal("test"), new HashMap(), new ...
1,115,659
public Assertion validate(String ticketId, Service service) throws ValidationException { return new AssertionImpl(new SimplePrincipal("test"), new HashMap()); }
public Assertion validate(String ticketId, Service service) throws ValidationException { return new AssertionImpl(new SimplePrincipal("test"), new HashMap(), new ProxyRetriever() { public String getProxyTicketIdFor(String proxyGrantingTicketId, Service targetService) { return "test"; } }, "p...
1,115,660
public AbstractPNode(PolynomialCreator pc) { this.pc = pc; }
public AbstractPNode(PolynomialCreator pc) { this.pc = pc; }
1,115,663
public PNodeI add(PNodeI node) throws ParseException { if(node.isZero()) return this; if(this.isZero()) return node; if(this.equals(node)) return new Monomial(pc,pc.twoConstant,this); if(node instanceof Polynomial) return node.add(this); if(this.compareTo(node) < 0) return new Polynomial(pc,new PNodeI[...
public PNodeI add(PNodeI node) throws ParseException { if(node.isZero()) return this; if(this.isZero()) return node; if(this.equals(node)) return new Monomial(pc,pc.twoConstant,this); if(node instanceof Polynomial) return node.add(this); if(this.compareTo(node) < 0) return new Polynomial(pc,new PNodeI[...
1,115,664
public PNodeI mul(PNodeI node) throws ParseException { if(node.isZero()) return pc.zeroConstant; if(node.isOne()) return this; if(this.equals(node)) return new Monomial(pc,pc.oneConstant,this,pc.twoConstant); if(node instanceof Constant) return new Monomial(pc,(Constant) node,this); if(node instanceof Mon...
public PNodeI mul(PNodeI node) throws ParseException { if(node.isZero()) return pc.zeroConstant; if(node.isOne()) return this; if(this.equals(node)) return new Monomial(pc,pc.oneConstant,this,pc.twoConstant); if(node instanceof Constant) return new Monomial(pc,(Constant) node,this); if(node instanceof Mon...
1,115,665
public boolean isNegative() { try { return ((Double) value).compareTo(pc.zero) < 0; } catch(Exception e) { return false; } }
public boolean isNegative() { try { return ((Double) value).compareTo((Double) pc.zero) < 0; } catch(Exception e) { return false; } }
1,115,666
public FilteredSeismogramShape(ColoredFilter filter, DataSetSeismogram seismogram, JComponent parent){ super(parent, seismogram); this.seismogram = seismogram; this.filter = filter; }
public FilteredSeismogramShape(ColoredFilter filter, DataSetSeismogram seismogram, JComponent parent){ super(parent, seismogram); this.seismogram = seismogram; this.filter = filter; }
1,115,667
public static Blockette parseBlockette(int type, byte[] bytes) throws IOException { try { //System.out.println(" Class.forName Blockette"+type); Class blocketteClass = Class.forName("edu.sc.seis.fissuresUtil.mseed.Blockette"+type); //System.out.println(" Cla...
public static Blockette parseBlockette(int type, byte[] bytes) throws IOException, SeedFormatException { try { //System.out.println(" Class.forName Blockette"+type); Class blocketteClass = Class.forName("edu.sc.seis.fissuresUtil.mseed.Blockette"+type); //Sys...
1,115,669
public static Blockette parseBlockette(int type, byte[] bytes) throws IOException { try { //System.out.println(" Class.forName Blockette"+type); Class blocketteClass = Class.forName("edu.sc.seis.fissuresUtil.mseed.Blockette"+type); //System.out.println(" Cla...
public static Blockette parseBlockette(int type, byte[] bytes) throws IOException { try { //System.out.println(" Class.forName Blockette"+type); Class blocketteClass = Class.forName("edu.sc.seis.fissuresUtil.mseed.Blockette"+type); //System.out.println(" Cla...
1,115,670
public static Blockette parseBlockette(int type, byte[] bytes) throws IOException { try { //System.out.println(" Class.forName Blockette"+type); Class blocketteClass = Class.forName("edu.sc.seis.fissuresUtil.mseed.Blockette"+type); //System.out.println(" Cla...
public static Blockette parseBlockette(int type, byte[] bytes) throws IOException { try { //System.out.println(" Class.forName Blockette"+type); Class blocketteClass = Class.forName("edu.sc.seis.fissuresUtil.mseed.Blockette"+type); //System.out.println(" Cla...
1,115,671
public static Blockette parseBlockette(int type, byte[] bytes) throws IOException { try { //System.out.println(" Class.forName Blockette"+type); Class blocketteClass = Class.forName("edu.sc.seis.fissuresUtil.mseed.Blockette"+type); //System.out.println(" Cla...
public static Blockette parseBlockette(int type, byte[] bytes) throws IOException { try { //System.out.println(" Class.forName Blockette"+type); Class blocketteClass = Class.forName("edu.sc.seis.fissuresUtil.mseed.Blockette"+type); //System.out.println(" Cla...
1,115,672
private boolean checkContents(File file, String contents) { try { String s = new BufferedReader(new FileReader(file)).readLine(); if(s==null) return false; return s.trim().equals(contents.trim()); } catch (IOException e) { return false; } }
private boolean checkContents(File file, String contents) { try { String s = new BufferedReader(new FileReader(file)).readLine(); if(s==null) return false; return s.trim().equals(contents.trim()); } catch (IOException e) { return false; } }
1,115,673
public SeedRecord getNextRecord() throws SeedFormatException, IOException { ControlHeader header = ControlHeader.read(inStream); if (header instanceof DataHeader) { return readDataRecord((DataHeader)header); } else {throw new SeedFormatException("Found a control record in miniseed");// retur...
public SeedRecord getNextRecord() throws SeedFormatException, IOException { ControlHeader header = ControlHeader.read(inStream); if (header instanceof DataHeader) { return readDataRecord((DataHeader)header); } else {throw new SeedFormatException("Found a control record in miniseed");// retur...
1,115,674
public SeedRecord getNextRecord() throws SeedFormatException, IOException { ControlHeader header = ControlHeader.read(inStream); if (header instanceof DataHeader) { return readDataRecord((DataHeader)header); } else {throw new SeedFormatException("Found a control record in miniseed");// retur...
public SeedRecord getNextRecord() throws SeedFormatException, IOException { ControlHeader header = ControlHeader.read(inStream); if (header instanceof DataHeader) { return readDataRecord((DataHeader)header); else {throw new SeedFormatException("Found a control record in miniseed");// return...
1,115,675
protected DataRecord readDataRecord(DataHeader header) throws IOException, SeedFormatException { Assert.isTrue(header.getDataBlocketteOffset()>= header.getSize(), "Offset to first blockette must be larger than the header size"); byte[] garbage = new byte[header.getDataBlocketteOffset()- ...
protected DataRecord readDataRecord(DataHeader header) throws IOException, SeedFormatException { Assert.isTrue(header.getDataBlocketteOffset()>= header.getSize(), "Offset to first blockette must be larger than the header size"); byte[] garbage = new byte[header.getDataBlocketteOffset()- ...
1,115,676
protected DataRecord readDataRecord(DataHeader header) throws IOException, SeedFormatException { Assert.isTrue(header.getDataBlocketteOffset()>= header.getSize(), "Offset to first blockette must be larger than the header size"); byte[] garbage = new byte[header.getDataBlocketteOffset()- ...
protected DataRecord readDataRecord(DataHeader header) throws IOException, SeedFormatException { Assert.isTrue(header.getDataBlocketteOffset()>= header.getSize(), "Offset to first blockette must be larger than the header size"); byte[] garbage = new byte[header.getDataBlocketteOffset()- ...
1,115,677
protected DataRecord readDataRecord(DataHeader header) throws IOException, SeedFormatException { Assert.isTrue(header.getDataBlocketteOffset()>= header.getSize(), "Offset to first blockette must be larger than the header size"); byte[] garbage = new byte[header.getDataBlocketteOffset()- ...
protected DataRecord readDataRecord(DataHeader header) throws IOException, SeedFormatException { Assert.isTrue(header.getDataBlocketteOffset()>= header.getSize(), "Offset to first blockette must be larger than the header size"); byte[] garbage = new byte[header.getDataBlocketteOffset()- ...
1,115,678
public SeedFormatException(String s) { super(s); }
public SeedFormatException(String s) { super(s); }
1,115,679
public void addUrn2FileMapping( ShareFile shareFile ) { assert( shareFile.getURN() != null ); urnToFileMap.put( shareFile.getURN(), shareFile ); // only add time once we have a valid URN... // it makes no sense to return whats new files without urn. addTimeToFile( shareFile );...
public void addUrn2FileMapping( ShareFile shareFile ) { assert( shareFile.getURN() != null ); urnToFileMap.put( shareFile.getURN(), shareFile ); // only add time once we have a valid URN... // it makes no sense to return whats new files without urn. addTimeToFile( shareFile );...
1,115,681
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 = (lov * 2.65) - 1.2; } else { // calculates SRM based on MCU (degrees LOV) if (lov > 0) colour = 1.4922 * Math.pow(lov, 0....
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); colour = (colour * 2.65) - 1.2; } else { // calculates SRM based on MCU (degrees LOV) if (l...
1,115,682
public void calcMaltTotals() { double og = 0; double fg = 0; double lov = 0; 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) fermenta...
public void calcMaltTotals() { double og = 0; double fg = 0; double lov = 0; 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) fermenta...
1,115,683
public String toText(){ DecimalFormat df1 = new DecimalFormat("0.0"); DecimalFormat df2 = new DecimalFormat("0.00"); MessageFormat mf; StringBuffer sb = new StringBuffer(); sb.append("StrangeBrew J1.0 recipe text output\n\n"); sb.append("Details:\n"); sb.append("Name: " + name + "\n"); sb.append("Brewer: " + b...
public String toText(){ DecimalFormat df1 = new DecimalFormat("0.0"); DecimalFormat df2 = new DecimalFormat("0.00"); MessageFormat mf; StringBuffer sb = new StringBuffer(); sb.append("StrangeBrew J1.0 recipe text output\n\n"); sb.append("Details:\n"); sb.append("Name: " + name + "\n"); sb.append("Brewer: " + b...
1,115,684
private void addTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get( time ); if ( shareFileSet == null ) { shareFileSet = new HashSet(...
private void addTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get( time ); if ( shareFileSet == null ) { shareFileSet = new HashSet(...
1,115,685
private void addTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get( time ); if ( shareFileSet == null ) { shareFileSet = new HashSet(...
private void addTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get( time ); if ( shareFileSet == null ) { shareFileSet = new HashSet(...
1,115,686
private void addTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get( time ); if ( shareFileSet == null ) { shareFileSet = new HashSet(...
private void addTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get( time ); if ( shareFileSet == null ) { shareFileSet = new HashSet(...
1,115,687
private void removeTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get(time); if ( shareFileSet == null ) { return; } ...
private void removeTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get(time); if ( shareFileSet == null ) { return; } ...
1,115,688
private void removeTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get(time); if ( shareFileSet == null ) { return; } ...
private void removeTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get(time); if ( shareFileSet == null ) { return; } ...
1,115,689
private void removeTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get(time); if ( shareFileSet == null ) { return; } ...
private void removeTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get(time); if ( shareFileSet == null ) { return; } ...
1,115,690
private void removeTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get(time); if ( shareFileSet == null ) { return; } ...
private void removeTimeToFile( ShareFile shareFile ) { rwLock.writeLock(); try { Long time = shareFile.getNetworkCreateTime(); Set shareFileSet = (Set) timeToFileMap.get(time); if ( shareFileSet == null ) { return; } ...
1,115,691
public void valueTest(String expr,String expected) throws Exception { Object res = calcValue(expr); myAssertEquals(expr,expected,res.toString()); }
public void valueTest(String expr,Object expected) throws Exception { Object res = calcValue(expr); myAssertEquals(expr,expected,res.toString()); }
1,115,693
public void valueTest(String expr,String expected) throws Exception { Object res = calcValue(expr); myAssertEquals(expr,expected,res.toString()); }
public void valueTest(String expr,String expected) throws Exception { Object res = calcValue(expr); myAssertEquals(expr,expected,res); }
1,115,694
public BaseFormat(int base,String prefix) { super(); this.base = base; tb = new ToBase(base,prefix); fb = new FromBase(base,prefix); }
private BaseFormat() { super(); this.base = base; tb = new ToBase(base,prefix); fb = new FromBase(base,prefix); }
1,115,695
public BaseFormat(int base,String prefix) { super(); this.base = base; tb = new ToBase(base,prefix); fb = new FromBase(base,prefix); }
public BaseFormat(int base,String prefix) { super(); this.base = base; tb = new ToBase(base,prefix); fb = new FromBase(base,prefix); }
1,115,696
public Comparator getColumnComparator( int column ) { switch( column ) { case HOST_MODEL_INDEX: return new DestAddressComparator(); case PROGRESS_MODEL_INDEX: return ComparableComparator.getInstance(); case ETA_MODEL_INDEX: ...
public Comparator<?> getColumnComparator( int column ) { switch( column ) { case HOST_MODEL_INDEX: return new DestAddressComparator(); case PROGRESS_MODEL_INDEX: return ComparableComparator.getInstance(); case ETA_MODEL_INDEX: ...
1,115,697
public Object getComparableValueAt( int row, int column ) { SWDownloadCandidate candidate = downloadFile.getTransferCandidate( row ); if ( candidate == null ) { return ""; } SWDownloadSegment segment; switch( column ) { case FROM_MODE...
public Object getComparableValueAt( int row, int column ) { SWDownloadCandidate candidate = downloadFile.getTransferCandidate( row ); if ( candidate == null ) { return null; } SWDownloadSegment segment; switch( column ) { case FROM_MO...
1,115,698
public Object getComparableValueAt( int row, int column ) { SWDownloadCandidate candidate = downloadFile.getTransferCandidate( row ); if ( candidate == null ) { return ""; } SWDownloadSegment segment; switch( column ) { case FROM_MODE...
public Object getComparableValueAt( int row, int column ) { SWDownloadCandidate candidate = downloadFile.getTransferCandidate( row ); if ( candidate == null ) { return ""; } SWDownloadSegment segment; switch( column ) { case FROM_MODE...
1,115,699
public DrawableSeismogram(JComponent parent, DataSetSeismogram seis, Color color){ this(parent, seis, color, seis.toString()); }
public DrawableSeismogram(JComponent parent, DataSetSeismogram seis, Color color){ this(parent, seis, color, seis.toString()); }
1,115,700
public Job doCreateJob(StaplerRequest req, StaplerResponse rsp) throws IOException { Job job = owner.doCreateJob(req, rsp); jobNames.add(job.getName()); owner.save(); return job; }
public Job doCreateJob(StaplerRequest req, StaplerResponse rsp) throws IOException { Job job = owner.doCreateJob(req, rsp); jobNames.add(job.getName()); owner.save(); return job; }
1,115,701
protected final void serveFile(StaplerRequest req, StaplerResponse rsp, File root, String icon, boolean serveDirIndex) throws IOException, ServletException { if(req.getQueryString()!=null) { String path = req.getParameter("path"); if(path!=null) { rsp.sendRedirect(path); ...
protected final void serveFile(StaplerRequest req, StaplerResponse rsp, File root, String icon, boolean serveDirIndex) throws IOException, ServletException { if(req.getQueryString()!=null) { String path = req.getParameter("path"); if(path!=null) { rsp.sendRedirect(URLEnco...
1,115,702
protected final void serveFile(StaplerRequest req, StaplerResponse rsp, File root, String icon, boolean serveDirIndex) throws IOException, ServletException { if(req.getQueryString()!=null) { String path = req.getParameter("path"); if(path!=null) { rsp.sendRedirect(path); ...
protected final void serveFile(StaplerRequest req, StaplerResponse rsp, File root, String icon, boolean serveDirIndex) throws IOException, ServletException { if(req.getQueryString()!=null) { String path = req.getParameter("path"); if(path!=null) { rsp.sendRedirect(path); ...
1,115,703