bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0: // steep return data.getMaltSteep(row); case 1: // mash return data.getMaltMashed(row); case 2 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed... | public Object getValueAt(int row, int col) { // Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0: // steep return data.getMaltSteep(row); case 1: // mash return data.getMaltMashed(row); case 2 : // indicate this is a sugar: String s = ""; if (!data.getMaltMashed... | 1,116,966 |
public Object asinh(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).asinh(); } else if (param instanceof Number) { Complex temp = new Complex(((Number)param).doubleValue(),0.0); return temp.asinh(); } throw new ParseException("Invalid parameter type"); } | public Object asinh(Object param) throws ParseException { if (param instanceof Complex) { return ((Complex)param).asinh(); } else if (param instanceof Number) { Complex temp = new Complex(((Number)param).doubleValue(),0.0); return temp.asinh(); } throw new ParseException("Invalid parameter type"); } | 1,116,967 |
public void execute() { if (myContents.getQuitItem().isSelected()) { myContents.quit(); } if (myContents.getOpenItem().isSelected()) { String myFile = myContents.getOpenFilename(); if (myFile != "/") { ImportXml imp = new ImportXml(myFile); Recipe recipe = imp.handler.getRecip... | public void execute() { if (myContents.getQuitItem().isSelected()) { myContents.quit(); } if (myContents.getOpenItem().isSelected()) { String myFile = myContents.getOpenFilename(); if (myFile != null) { ImportXml imp = new ImportXml(myFile); Recipe recipe = imp.handler.getReci... | 1,116,969 |
SuiteResult(File xmlReport) throws DocumentException { Document result = new SAXReader().read(xmlReport); Element root = result.getRootElement(); name = root.attributeValue("name"); stdout = root.elementText("system-out"); stderr = root.elementText("system-err"); for (Eleme... | SuiteResult(File xmlReport) throws DocumentException { Document result = new SAXReader().read(xmlReport); Element root = result.getRootElement(); name = root.attributeValue("name"); stdout = root.elementText("system-out"); stderr = root.elementText("system-err"); for (Eleme... | 1,116,971 |
public boolean configure(HttpServletRequest req) { String v = req.getParameter("mailer_smtpServer"); if(v!=null && v.length()==0) v=null; getProperties().put("mail.smtp.host",v); getProperties().put("mail.admin.address",req.getParameter("mailer_admin_address")); ... | public boolean configure(HttpServletRequest req) { String v = req.getParameter("mailer_smtp_server"); if(v!=null && v.length()==0) v=null; getProperties().put("mail.smtp.host",v); getProperties().put("mail.admin.address",req.getParameter("mailer_admin_address")); ... | 1,116,972 |
public void testQuartonians() throws Exception { j = new GroupJep(new Quartonians()); j.addStandardConstants(); System.out.println(j.getGroup().toString()); valueToStringTest("i*j","-1.0k"); } | public void testQuartonians() throws Exception { j = new GroupJep(new Quartonians()); j.addStandardConstants(); System.out.println(j.getGroup().toString()); valueToStringTest("i*j","-k"); } | 1,116,973 |
private void initGUI() { try { GridBagLayout thisLayout = new GridBagLayout(); thisLayout.columnWeights = new double[]{0.3, 0.3}; thisLayout.columnWidths = new int[]{7, 7}; thisLayout.rowWeights = new double[]{0.1, 0.8, 0.1}; thisLayout.rowHeights = new int[]{7, 7, 7}; this.setLayout(thisLayout); { t... | private void initGUI() { try { GridBagLayout thisLayout = new GridBagLayout(); thisLayout.columnWeights = new double[]{0.3, 0.3}; thisLayout.columnWidths = new int[]{7, 7}; thisLayout.rowWeights = new double[]{0.1, 0.8, 0.1}; thisLayout.rowHeights = new int[]{7, 7, 7}; this.setLayout(thisLayout); { t... | 1,116,974 |
public PSNVariableHeader(DataInputStream data, int length) throws IOException{ dis = data; for (int i = 0; i < length; i++) { //Sanity Check: this should be equal to 0x55 byte check = dis.readByte(); //System.out.println("Check: " + check); if (check != 0x55... | public PSNVariableHeader(DataInputStream data, int length) throws IOException{ dis = data; for (int i = 0; i < length; i++) { //Sanity Check: this should be equal to 0x55 byte check = dis.readByte(); //System.out.println("Check: " + check); if (check != 0x55... | 1,116,975 |
public synchronized Map<BuildStepDescriptor,BuildStep> getBuilders() { Map<BuildStepDescriptor,BuildStep> m = new LinkedHashMap<BuildStepDescriptor,BuildStep>(); for( int i=builders.size()-1; i>=0; i-- ) { BuildStep b = builders.get(i); m.put(b.getDescriptor(),b); } ... | public synchronized Map<BuildStepDescriptor,BuildStep> getBuilders() { Map<BuildStepDescriptor,BuildStep> m = new LinkedHashMap<BuildStepDescriptor,BuildStep>(); for( int i=builders.size()-1; i>=0; i-- ) { BuildStep b = builders.get(i); m.put(b.getDescriptor(),b); } ... | 1,116,976 |
public synchronized Map<BuildStepDescriptor,BuildStep> getPublishers() { Map<BuildStepDescriptor,BuildStep> m = new LinkedHashMap<BuildStepDescriptor,BuildStep>(); for( int i=publishers.size()-1; i>=0; i-- ) { BuildStep b = publishers.get(i); m.put(b.getDescriptor(),b); } ... | public synchronized Map<BuildStepDescriptor,BuildStep> getPublishers() { Map<BuildStepDescriptor,BuildStep> m = new LinkedHashMap<BuildStepDescriptor,BuildStep>(); for( int i=publishers.size()-1; i>=0; i-- ) { BuildStep b = publishers.get(i); m.put(b.getDescriptor(),b); } ... | 1,116,977 |
public Slave(String name, String command, String remoteFS, File localFS) { this.name = name; this.command = command; this.remoteFS = remoteFS; this.localFS = localFS; } | public Slave(String name, String description, String command, String remoteFS, File localFS) { this.name = name; this.command = command; this.remoteFS = remoteFS; this.localFS = localFS; } | 1,116,979 |
public Launcher createLauncher(BuildListener listener) { return new Launcher(listener) { @Override public Proc launch(String[] cmd, String[] env, OutputStream out, FilePath workDir) throws IOException { return super.launch(prepend(cmd,env,workDir), env, null, out); ... | public Launcher createLauncher(BuildListener listener) { return new Launcher(listener) { @Override public Proc launch(String[] cmd, String[] env, OutputStream out, FilePath workDir) throws IOException { return super.launch(prepend(cmd,env,workDir), env, null, out); ... | 1,116,981 |
private String[] prepend(String[] cmd, String[] env, FilePath workDir) { List<String> r = new ArrayList<String>(); r.addAll(Arrays.asList(getCommandTokens())); r.add("~/bin/slave"); r.add(workDir.getRemote()); r.addAll(Arrays.asList(... | private String[] prepend(String[] cmd, String[] env, FilePath workDir) { List<String> r = new ArrayList<String>(); r.addAll(Arrays.asList(getCommandTokens())); r.add("~/bin/slave"); r.add(workDir.getRemote()); for (String s : env) { ... | 1,116,982 |
private void updateDisplay() { if ( displayedDataModel != null ) { int total = displayedDataModel.getAllSearchResultCount(); int filtered = displayedDataModel.getFilteredElementCount(); progressBar.setValue( displayedDataModel.getSearch().getProgress() ); ... | private void updateDisplay() { if ( displayedDataModel != null ) { int total = displayedDataModel.getAllSearchResultCount(); int filtered = displayedDataModel.getFilteredElementCount(); progressBar.setValue( search.getProgress() ); totalResultsLbl.setText... | 1,116,984 |
/*package*/ void onRenamed(Job job, String oldName, String newName) throws IOException { jobs.remove(oldName); jobs.put(newName,job); if(views!=null) { for (View v : views) { synchronized(v) { v.jobNames.remove(oldName); v.jobNames... | /*package*/ void onRenamed(Job job, String oldName, String newName) throws IOException { jobs.remove(oldName); jobs.put(newName,job); if(views!=null) { for (View v : views) { synchronized(v) { v.jobNames.remove(oldName); v.jobNames... | 1,116,986 |
public EvaluatorVisitor() { debug = false; errorList = null; symTab = null; stack = new Stack(); } | public EvaluatorVisitor() { errorList = null; symTab = null; stack = new Stack(); } | 1,116,987 |
public Object getValue(Node topNode, Vector errorList_in, SymbolTable symTab_in) throws Exception { // check if arguments are ok if (topNode == null) { throw new IllegalArgumentException( "topNode parameter is null"); } if (symTab_in == null) { throw new IllegalArgumentException( "sym... | public synchronized Object getValue(Node topNode, Vector errorList_in, SymbolTable symTab_in) throws Exception { // check if arguments are ok if (topNode == null) { throw new IllegalArgumentException( "topNode parameter is null"); } if (symTab_in == null) { throw new IllegalArgumentExcep... | 1,116,988 |
public void characters(char buf[], int offset, int len) throws SAXException { String s = new String(buf, offset, len); // we're inside a style: if (!s.trim().equals("")) { if (currentElement.equalsIgnoreCase("notes")) descrBuf += s; if (currentList.equalsIgnoreCase("hops")){ if (currentElement.equalsI... | public void characters(char buf[], int offset, int len) throws SAXException { String s = new String(buf, offset, len); // we're inside a style: if (!s.trim().equals("")) { if (currentElement.equalsIgnoreCase("notes")) descrBuf += s; if (currentList.equalsIgnoreCase("hops")){ if (currentElement.equalsI... | 1,116,989 |
public void startElement(String namespaceURI, String lName, // local unit String qName, // qualified unit Attributes attrs) throws SAXException { String eName = lName; // element unit if ("".equals(eName)) eName = qName; // namespaceAware = false currentElement = eName; currentAttributes = attrs; if (eNam... | public void startElement(String namespaceURI, String lName, // local unit String qName, // qualified unit Attributes attrs) throws SAXException { String eName = lName; // element unit if ("".equals(eName)) eName = qName; // namespaceAware = false currentElement = eName; currentAttributes = attrs; if (eNam... | 1,116,991 |
public String getIconFileName() { return "save.png"; } | public String getIconFileName() { return "save.gif"; } | 1,116,992 |
public void testExternalDocument() { ExternalDocument loaded = new ExternalDocument(); loaded.setDocCode("TEST"); expect(hibernateTemplate.load(ExternalDocument.class, 5)).andReturn(loaded); replay(hibernateTemplate); ExternalDocumentForm externalDocumentFo... | public void testExternalDocument() { ExternalDocument loaded = new ExternalDocument(); loaded.setDocCode("TEST"); expect(hibernateTemplate.load(ExternalDocument.class, new Long(5))).andReturn(loaded); replay(hibernateTemplate); ExternalDocumentForm external... | 1,116,993 |
public void initFrame(){ // setSize(new java.awt.Dimension (mywidth, myheight)); //setPreferredSize(new java.awt.Dimension (mywidth, myheight)); setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.fill = gbc.BOTH; gbc.weightx = 1.0; gbc.weighty = 0.0; gbc.gridx = 0; gbc.gridy = 0; JLabel netLabel... | public void initFrame(){ // setSize(new java.awt.Dimension (mywidth, myheight)); //setPreferredSize(new java.awt.Dimension (mywidth, myheight)); setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); gbc.fill = gbc.BOTH; gbc.weightx = 1.0; gbc.weighty = 0.0; gbc.gridx = 0; gbc.gridy = 0; JLabel netLabel... | 1,116,994 |
public void valueChanged(ListSelectionEvent e) { if(e.getValueIsAdjusting()){ return; } final NetworkAccess[] nets = getSelectedNetworks(); stations.clear(); Thread stationLoader = new Thread() { public void run() { try { for (int i=0; i<nets.length; i++) { Station[] new... | public void valueChanged(ListSelectionEvent e) { if(e.getValueIsAdjusting()){ return; } final NetworkAccess[] nets = getSelectedNetworks(); Thread stationLoader = new Thread() { public void run() { try { for (int i=0; i<nets.length; i++) { Station[] newStations = nets[i... | 1,116,996 |
public void execute() { if (myContents.getQuitItem().isSelected()) { myContents.quit(); } if (myContents.getOpenItem().isSelected()) { ImportXml imp = new ImportXml(myContents.getOpenFilename()); myParent.setRecipe(imp.handler.getRecipe()); } } | public void execute() { if (myContents.getQuitItem().isSelected()) { myContents.quit(); } if (myContents.getOpenItem().isSelected()) { ImportXml imp = new ImportXml(myContents.getOpenFilename()); try { Recipe recipe = imp.handler.getRecipe(); if (recipe != null) { myParent.setRecipe(recipe); } e... | 1,117,000 |
public void setValueAt(Object value, int row, int col) { Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : m.setName(value.toString()); if (NewSwingApp.DEBUG){ System.out.println("value is:" + value); } case 1 : m.setAmount(Double.parseDouble(value.toString())); ... | public void setValueAt(Object value, int row, int col) { Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : m.setName(value.toString()); /* if (NewSwingApp.DEBUG){ System.out.println("value is:" + value); } case 1 : m.setAmount(Double.parseDouble(value.toString())... | 1,117,001 |
public void setValueAt(Object value, int row, int col) { Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : m.setName(value.toString()); if (NewSwingApp.DEBUG){ System.out.println("value is:" + value); } case 1 : m.setAmount(Double.parseDouble(value.toString())); ... | public void setValueAt(Object value, int row, int col) { Fermentable m = (Fermentable) data.get(row); try { switch (col) { case 0 : m.setName(value.toString()); if (NewSwingApp.DEBUG){ System.out.println("value is:" + value); }*/ case 1 : m.setAmount(Double.parseDouble(value.toString()))... | 1,117,002 |
public Publisher newInstance(StaplerRequest req) { return new SQETestResultPublisher(req.getParameter("sqetest_includes")); } | public Publisher newInstance(StaplerRequest req) { return new SQETestResultPublisher(req.getParameter("sqetest_includes"),(req.getParameter("sqetest_testobject")!=null)); } | 1,117,003 |
public SQETestResultPublisher(String includes) { this.includes = includes; } | public SQETestResultPublisher(String includes, boolean considerTestAsTestObject) { this.includes = includes; } | 1,117,004 |
public boolean perform(Build build, Launcher launcher, BuildListener listener) { FileSet fs = new FileSet(); org.apache.tools.ant.Project p = new org.apache.tools.ant.Project(); fs.setProject(p); fs.setDir(build.getProject().getWorkspace().getLocal()); fs.setIncludes(includes); ... | public boolean perform(Build build, Launcher launcher, BuildListener listener) { FileSet fs = new FileSet(); org.apache.tools.ant.Project p = new org.apache.tools.ant.Project(); fs.setProject(p); fs.setDir(build.getProject().getWorkspace().getLocal()); fs.setIncludes(includes); ... | 1,117,006 |
public Object getValueAt(int row, int col) { try { switch (col) { case 0 : return SBStringUtils.dateFormatShort.format(data.getNoteDate(row)); case 1 : return data.getNoteType(row); case 2 : return data.getNoteNote(row); } } catch (Exception e) { }; return ""; } | public Object getValueAt(int row, int col) { try { switch (col) { case 0 : return SBStringUtils.dateFormatShort.format(data.getNoteDate(row)); case 1 : return data.getNoteType(row); case 2 : return data.getNoteNote(row); } } catch (Exception e) { }; return ""; } | 1,117,007 |
public void setValueAt(Object value, int row, int col) { try { switch (col) { case 0 : try { Date d = SBStringUtils.dateFormatShort.parse(value.toString()); data.setNoteDate(row, d); } catch (ParseException e) { System.out.println("Unable to parse " + value.toString()); ... | public void setValueAt(Object value, int row, int col) { try { switch (col) { case 0 : try { Date d = SBStringUtils.dateFormatShort.parse(value.toString()); data.setNoteDate(row, d); } catch (ParseException e) { System.out.println("Unable to parse " + value.toString()); ... | 1,117,008 |
private void initGUI() { try { BoxLayout thisLayout = new BoxLayout(this, javax.swing.BoxLayout.X_AXIS); this.setLayout(thisLayout); setPreferredSize(new Dimension(400, 300)); { tablePanel = new JPanel(); BoxLayout tablePanelLayout = new BoxLayout(tablePanel, javax.swing.BoxLayout.Y_AXIS); tablePanel... | private void initGUI() { try { BoxLayout thisLayout = new BoxLayout(this, javax.swing.BoxLayout.X_AXIS); this.setLayout(thisLayout); setPreferredSize(new Dimension(400, 300)); { tablePanel = new JPanel(); BoxLayout tablePanelLayout = new BoxLayout(tablePanel, javax.swing.BoxLayout.Y_AXIS); tablePanel... | 1,117,009 |
private void initGUI() { try { BoxLayout thisLayout = new BoxLayout(this, javax.swing.BoxLayout.X_AXIS); this.setLayout(thisLayout); setPreferredSize(new Dimension(400, 300)); { tablePanel = new JPanel(); BoxLayout tablePanelLayout = new BoxLayout(tablePanel, javax.swing.BoxLayout.Y_AXIS); tablePanel... | private void initGUI() { try { BoxLayout thisLayout = new BoxLayout(this, javax.swing.BoxLayout.X_AXIS); this.setLayout(thisLayout); setPreferredSize(new Dimension(400, 300)); { tablePanel = new JPanel(); BoxLayout tablePanelLayout = new BoxLayout(tablePanel, javax.swing.BoxLayout.Y_AXIS); tablePanel... | 1,117,010 |
private void initGUI() { try { BoxLayout thisLayout = new BoxLayout(this, javax.swing.BoxLayout.X_AXIS); this.setLayout(thisLayout); setPreferredSize(new Dimension(400, 300)); { tablePanel = new JPanel(); BoxLayout tablePanelLayout = new BoxLayout(tablePanel, javax.swing.BoxLayout.Y_AXIS); tablePanel... | private void initGUI() { try { BoxLayout thisLayout = new BoxLayout(this, javax.swing.BoxLayout.X_AXIS); this.setLayout(thisLayout); setPreferredSize(new Dimension(400, 300)); { tablePanel = new JPanel(); BoxLayout tablePanelLayout = new BoxLayout(tablePanel, javax.swing.BoxLayout.Y_AXIS); tablePanel... | 1,117,011 |
public void focusLost(FocusEvent evt) { if (selectedRow > -1 && !noteTextArea.getText().equals( myRecipe.getNoteNote(selectedRow))) { myRecipe.setNoteNote(selectedRow, noteTextArea.getText()); } } | public void focusLost(FocusEvent evt) { if (selectedRow > -1 && !noteTextArea.getText().equals( myRecipe.getNoteNote(selectedRow))) { myRecipe.setNoteNote(selectedRow, noteTextArea.getText()); } } | 1,117,012 |
public void adjustRange(MicroSecondDate selectionBegin, MicroSecondDate selectionEnd){ MicroSecondTimeRange currentInternal = internalTimeConfig.getTimeRange(); double timeWidth = externalTimeConfig.getTimeRange().getInterval().getValue(); if(released == true){ double beginDistance = Math.abs(currentInternal.ge... | public void adjustRange(MicroSecondDate selectionBegin, MicroSecondDate selectionEnd){ MicroSecondTimeRange currentInternal = internalTimeConfig.getTimeRange(); double timeWidth = externalTimeConfig.getTimeRange().getInterval().getValue(); if(released == true){ double beginDistance = Math.abs(currentInternal.ge... | 1,117,013 |
public void printHelp() { super.printHelp(); println("'group'\tprints the current group"); println("'group G'\tchanges underlying group to G"); println("'group Z'\tintegers (arbitary precision)"); println("'group Q'\trationals"); println("'group R'\treals, represented as Doubles."); println("'group R 3'\treals ... | public void printHelp() { super.printHelp(); println("'group'\tprints the current group"); println("'group G'\tchanges underlying group to G"); println("'group Z'\tintegers (arbitrary precision)"); println("'group Q'\trationals"); println("'group R'\treals, represented as Doubles."); println("'group R 3'\treals... | 1,117,014 |
public void printHelp() { super.printHelp(); println("'group'\tprints the current group"); println("'group G'\tchanges underlying group to G"); println("'group Z'\tintegers (arbitary precision)"); println("'group Q'\trationals"); println("'group R'\treals, represented as Doubles."); println("'group R 3'\treals ... | public void printHelp() { super.printHelp(); println("'group'\tprints the current group"); println("'group G'\tchanges underlying group to G"); println("'group Z'\tintegers (arbitary precision)"); println("'group Q'\trationals"); println("'group R'\treals, represented as Doubles."); println("'group R 3'\treals ... | 1,117,015 |
public void printHelp() { super.printHelp(); println("'group'\tprints the current group"); println("'group G'\tchanges underlying group to G"); println("'group Z'\tintegers (arbitary precision)"); println("'group Q'\trationals"); println("'group R'\treals, represented as Doubles."); println("'group R 3'\treals ... | public void printHelp() { super.printHelp(); println("'group'\tprints the current group"); println("'group G'\tchanges underlying group to G"); println("'group Z'\tintegers (arbitary precision)"); println("'group Q'\trationals"); println("'group R'\treals, represented as Doubles."); println("'group R 3'\treals ... | 1,117,016 |
public boolean testSpecialCommands(String command) { GroupJep gj = (GroupJep) j; if(!super.testSpecialCommands(command)) return false; String words[] = split(command); if(words.length==0) return true; if(words[0].equals("group")) { if(words.length == 1) { } else if(words[1].equals("Z")) { initialise(new I... | public boolean testSpecialCommands(String command) { GroupJep gj = (GroupJep) j; if(!super.testSpecialCommands(command)) return false; String words[] = split(command); if(words.length==0) return true; if(words[0].equals("group")) { if(words.length == 1) { } else if(words[1].equals("Z")) { initialise(new I... | 1,117,017 |
protected synchronized SortedMap<String,ExternalRun> _getRuns() { if(nextUpdate<System.currentTimeMillis()) { nextUpdate = System.currentTimeMillis()+1000; reload(); } return runs; } | protected synchronized SortedMap<String,ExternalRun> _getRuns() { if(nextUpdate<System.currentTimeMillis()) { nextUpdate = System.currentTimeMillis()+1000; reload(); } return runs; } | 1,117,018 |
private void reload() { runs = new TreeMap<String,ExternalRun>(reverseComparator); File[] subdirs = getBuildDir().listFiles(new FileFilter() { public boolean accept(File subdir) { return subdir.isDirectory(); } }); Arrays.sort(subdirs,fileComparator);... | private void reload() { TreeMap<String,ExternalRun> runs = new TreeMap<String,ExternalRun>(reverseComparator); File[] subdirs = getBuildDir().listFiles(new FileFilter() { public boolean accept(File subdir) { return subdir.isDirectory(); } }); Arrays.s... | 1,117,019 |
public void execute() { if (myContents.getQuitItem().isSelected()) { myContents.quit(); } if (myContents.getOpenItem().isSelected()) { ImportXml imp = new ImportXml(myContents.getOpenFilename()); try { Recipe recipe = imp.handler.getRecipe(); if (recipe != null) { myParent.setRecipe(recip... | public void execute() { if (myContents.getQuitItem().isSelected()) { myContents.quit(); } if (myContents.getOpenItem().isSelected()) { ImportXml imp = new ImportXml(myContents.getOpenFilename()); try { Recipe recipe = imp.handler.getRecipe(); if (recipe != null) { myParent.setRecipe(recip... | 1,117,021 |
public void execute() { if (myContents.getQuitItem().isSelected()) { myContents.quit(); } if (myContents.getOpenItem().isSelected()) { ImportXml imp = new ImportXml(myContents.getOpenFilename()); try { Recipe recipe = imp.handler.getRecipe(); if (recipe != null) { myParent.setRecipe(recip... | public void execute() { if (myContents.getQuitItem().isSelected()) { myContents.quit(); } if (myContents.getOpenItem().isSelected()) { ImportXml imp = new ImportXml(myContents.getOpenFilename()); try { Recipe recipe = imp.handler.getRecipe(); if (recipe != null) { myParent.setRecipe(recip... | 1,117,022 |
public void setUp() throws SQLException { data = createFullDayPlottable(); plottDb = new JDBCPlottable(); } | public void setUp() throws SQLException { data = createFullDayPlottable(); plottDb = new JDBCPlottable(new ConnectionCreator(new String[] {}).createConnection(), "HSQL"); } | 1,117,024 |
public SoundPlay(SeismogramDisplay display, SeismogramContainer container){ this.display = display; this.container = container; seisIterator = container.getIterator(); seisWAV = new FissuresToWAV(seisIterator, 200); SeismogramDisplay.getMouseForwarder().addPermMouseListener(this); SeismogramDisplay.getMouseMotio... | public SoundPlay(SeismogramDisplay display, SeismogramContainer container){ this.display = display; this.container = container; seisIterator = container.getIterator(); seisWAV = new FissuresToWAV(seisIterator, 200); SeismogramDisplay.getMouseForwarder().addPermMouseListener(this); SeismogramDisplay.getMouseMotio... | 1,117,025 |
public void mouseClicked(MouseEvent e){ if(intersects(e)){ System.out.println("This should be playing something..."); sendToWAV(); seisIterator.setTimeRange(timeEvent.getTime(container.getDataSetSeismogram())); seisWAV.play(); } } | public void mouseClicked(MouseEvent e){ if(intersects(e)){ System.out.println("This should be playing something..."); sendToWAV(); container.getIterator().setTimeRange(timeEvent.getTime(container.getDataSetSeismogram())); seisWAV.play(); } } | 1,117,026 |
public static List<Resource> createAndPersistResourceList(HibernateTemplate hibernateTemplate, int i, int e, int p) { List<Resource> resourceList = createResourceList(i, e, p); hibernateTemplate.saveOrUpdateAll(resourceList); hibernateTemplate.flush(); hibernateTemplate.clear(); r... | public static List<Resource> createAndPersistResourceList(HibernateTemplate hibernateTemplate, int i, int e, int p) { List<Resource> resourceList = createResourceList(i, e, p); hibernateTemplate.saveOrUpdateAll(resourceList); hibernateTemplate.flush(); hibernateTemplate.clear(); r... | 1,117,027 |
public static List<Resource> createResourceList(int size, int entityListSize, int parentListSize) { List<ResourceGroup> resourceGroupList = createResourceGroupList(size, entityListSize, parentListSize); List<Resource> resourceList = new ArrayList<Resource>(); for (ResourceGroup g: resourceGrou... | public static List<ResourceGroup> createResourceList(int size, int entityListSize, int parentListSize) { List<ResourceGroup> resourceGroupList = createResourceGroupList(size, entityListSize, parentListSize); List<Resource> resourceList = new ArrayList<Resource>(); for (ResourceGroup g: resourc... | 1,117,028 |
public static List<Resource> createResourceList(int size, int entityListSize, int parentListSize) { List<ResourceGroup> resourceGroupList = createResourceGroupList(size, entityListSize, parentListSize); List<Resource> resourceList = new ArrayList<Resource>(); for (ResourceGroup g: resourceGrou... | public static List<Resource> createResourceList(int size, int entityListSize, int parentListSize) { List<ResourceGroup> resourceGroupList = createResourceGroupList(size, entityListSize, parentListSize); List<ResourceGroup> resourceList = new ArrayList<ResourceGroup>(); for (ResourceGroup g: re... | 1,117,029 |
public static List<Resource> createResourceList(int size, int entityListSize, int parentListSize) { List<ResourceGroup> resourceGroupList = createResourceGroupList(size, entityListSize, parentListSize); List<Resource> resourceList = new ArrayList<Resource>(); for (ResourceGroup g: resourceGrou... | public static List<Resource> createResourceList(int size, int entityListSize, int parentListSize) { List<ResourceGroup> resourceGroupList = createResourceGroupList(size, entityListSize, parentListSize); List<Resource> resourceList = new ArrayList<Resource>(); for (ResourceGroup g: resourceGrou... | 1,117,030 |
private static void banHosts( DestAddress[] addresses, ExpiryDate expiryDate ) { PhexSecurityManager securityMgr = PhexSecurityManager.getInstance(); for ( int i = 0; i < addresses.length; i++ ) { IpAddress ip = addresses[i].getIpAddress(); if ( ip == null ) ... | private static void banHosts( DestAddress[] addresses, ExpiryDate expiryDate ) { PhexSecurityManager securityMgr = PhexSecurityManager.getInstance(); for ( int i = 0; i < addresses.length; i++ ) { IpAddress ip = addresses[i].getIpAddress(); if ( ip == null ) ... | 1,117,031 |
public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { XOperatorSet op = (XOperatorSet) djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); int nchild = node.jjtGetNumChildren(); if(nchild==2) return nf.buildOperatorNode(op.ge... | public Node differentiate(ASTFunNode node,String var,Node [] children,Node [] dchildren,DJep djep) throws ParseException { XOperatorSet op = (XOperatorSet) djep.getOperatorSet(); NodeFactory nf = djep.getNodeFactory(); int nchild = node.jjtGetNumChildren(); if(nchild==2) return nf.buildOperatorNode(op.ge... | 1,117,032 |
private boolean scanCvsPassFile(File passfile, String cvsroot) throws IOException { cvsroot += ' '; BufferedReader in = new BufferedReader(new FileReader(passfile)); try { String line; while((line=in.readLine())!=null) { if(line.s... | private boolean scanCvsPassFile(File passfile, String cvsroot) throws IOException { cvsroot += ' '; BufferedReader in = new BufferedReader(new FileReader(passfile)); try { String line; while((line=in.readLine())!=null) { int portI... | 1,117,033 |
private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[]{0.1};... | private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[]{0.1};... | 1,117,034 |
private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[]{0.1};... | private void initGUI() { try { this.setSize(520, 532); this.addWindowListener(new WindowAdapter() { public void windowClosed(WindowEvent evt) { System.exit(1); } }); { pnlMain = new JPanel(); GridBagLayout jPanel2Layout = new GridBagLayout(); jPanel2Layout.columnWeights = new double[]{0.1};... | 1,117,035 |
public void actionPerformed(ActionEvent evt) { String q = (String) cmbSizeUnits.getSelectedItem(); if (myRecipe != null && q != myRecipe.getVolUnits()) { myRecipe.setPostBoilVolUnits(q); myRecipe.setPreBoilVolUnits(q); displayRecipe(); } } | public void actionPerformed(ActionEvent evt) { String q = (String) cmbSizeUnits.getSelectedItem(); if (myRecipe != null && q != myRecipe.getVolUnits()) { myRecipe.setPreBoilVolUnits(q); displayRecipe(); } } | 1,117,036 |
public static void main(String[] args) { Recipe myRecipe = new Recipe(); if (args.length != 1) { System.err.println("Usage: filename or --gui"); System.exit(1); } else if (args[0].equals("--gui")) { MainView view = new SWTMainView(); view.init(); MainController controller = new MainController(view, myReci... | public static void main(String[] args) { Recipe myRecipe = new Recipe(); if (args.length != 1) { System.err.println("Usage: filename or --gui"); System.exit(1); } else if (args[0].equals("--gui")) { MainView view = new SWTMainView(); MainController controller = new MainController(view, myRecipe); contr... | 1,117,037 |
public int getProgress() { if ( !isSearching ) { return 100; } else { return 0; } } | public int getProgress() { switch ( browseHostStatus ) { return 100; } else { return 0; } } | 1,117,038 |
public int getProgress() { if ( !isSearching ) { return 100; } else { return 0; } } | public int getProgress() { if ( !isSearching ) { return 100; } else { return 0; } } | 1,117,039 |
public void run() { BrowseHostConnection connection = new BrowseHostConnection( destAddress, hostGUID, BrowseHostResults.this ); try { connection.sendBrowseHostRequest(); } catch ( Bro... | public void run() { BrowseHostConnection connection = new BrowseHostConnection( destAddress, hostGUID, BrowseHostResults.this ); try { connection.sendBrowseHostRequest(); } catch ( Bro... | 1,117,040 |
public void run() { BrowseHostConnection connection = new BrowseHostConnection( destAddress, hostGUID, BrowseHostResults.this ); try { connection.sendBrowseHostRequest(); } catch ( Bro... | public void run() { BrowseHostConnection connection = new BrowseHostConnection( destAddress, hostGUID, BrowseHostResults.this ); try { connection.sendBrowseHostRequest(); } catch ( Bro... | 1,117,041 |
private void initShapeTypes(Session session) { Vector st = ((CityMapTopic) as.getLiveTopic(getCityMap(session))).getShapeTypes(); // ### ugly System.out.println(">>> there are " + st.size() + " shape types:"); Vector shapeTypes = new Vector(); for (int i = 0; i < st.size(); i++) { TypeTopic shapeType = (TypeTopi... | private void initShapeTypes(Session session) { Vector st = ((CityMapTopic) as.getLiveTopic(getCityMap(session))).getShapeTypes(); // ### ugly System.out.println(">>> there are " + st.size() + " shape types:"); Vector shapeTypes = new Vector(); for (int i = 0; i < st.size(); i++) { TypeTopic shapeType = (TypeTopi... | 1,117,042 |
private void updateShapes(Session session) { try { Vector shapes = new Vector(); Vector shapeTypes = getShapeTypes(session); String mapID = getCityMap(session).getID(); // for all shape types ... Enumeration e = shapeTypes.elements(); while (e.hasMoreElements()) { ShapeType shapeType = (ShapeType) e.ne... | private void updateShapes(Session session) { try { Vector shapes = new Vector(); Vector shapeTypes = getShapeTypes(session); String mapID = getCityMap(session).getID(); // for all shape types ... Enumeration e = shapeTypes.elements(); while (e.hasMoreElements()) { ShapeType shapeType = (ShapeType) e.ne... | 1,117,043 |
private void updateShapes(Session session) { try { Vector shapes = new Vector(); Vector shapeTypes = getShapeTypes(session); String mapID = getCityMap(session).getID(); // for all shape types ... Enumeration e = shapeTypes.elements(); while (e.hasMoreElements()) { ShapeType shapeType = (ShapeType) e.ne... | private void updateShapes(Session session) { try { Vector shapes = new Vector(); Vector shapeTypes = getShapeTypes(session); String mapID = getCityMap(session).getID(); // for all shape types ... Enumeration e = shapeTypes.elements(); while (e.hasMoreElements()) { ShapeType shapeType = (ShapeType) e.ne... | 1,117,044 |
public String getUrl() { return "job/"+name+'/'; } | public String getUrl() { try { return "job/"+ URLEncoder.encode(name,"UTF-8")+'/'; } catch (UnsupportedEncodingException e) { throw new Error(e); } } | 1,117,045 |
public void createSelectionDisplay(BasicSeismogramDisplay creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JDialog(); //selectionWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); selectionWindow.setSize(400, 220); JToolBar infoBar ... | public void createSelectionDisplay(BasicSeismogramDisplay creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JDialog(); //selectionWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); selectionWindow.setSize(400, 220); JToolBar infoBar ... | 1,117,046 |
private void compareSymbol(String str, ATSymbol sym) { try { assertEquals(str, sym.getText().asNativeText().javaValue); } catch (XTypeMismatch e) { fail(e.getMessage()); } } | private void compareSymbol(String str, ATSymbol sym) { try { assertEquals(str, sym.base_getText().asNativeText().javaValue); } catch (XTypeMismatch e) { fail(e.getMessage()); } } | 1,117,047 |
public static final AGSymbol alloc(String javaRepresentation) { return alloc(NATText.atValue(javaRepresentation)); } | public static final AGSymbol alloc(String javaRepresentation) { return alloc(NATText.atValue(javaRepresentation)); } | 1,117,048 |
private NFA<Object, String> createNFA(Protocol protocol){ EList states = protocol.getStates(); provervisual.State initState = null; HashSet <Object>finalStates = new HashSet<Object>(); HashSet <Object>actionStates = new HashSet<Object>(); for(Iterator i = states.iterator(); i.hasNext();){ Object element = i.n... | private NFA<Object, String> createNFA(Protocol protocol){ EList states = protocol.getStates(); provervisual.State initState = null; HashSet <Object>finalStates = new HashSet<Object>(); HashSet <Object>actionStates = new HashSet<Object>(); for(Iterator i = states.iterator(); i.hasNext();){ Object element = i.n... | 1,117,050 |
private NFA<Object, String> createNFA(Protocol protocol){ EList states = protocol.getStates(); provervisual.State initState = null; HashSet <Object>finalStates = new HashSet<Object>(); HashSet <Object>actionStates = new HashSet<Object>(); for(Iterator i = states.iterator(); i.hasNext();){ Object element = i.n... | private NFA<Object, String> createNFA(Protocol protocol){ EList states = protocol.getStates(); provervisual.State initState = null; HashSet <Object>finalStates = new HashSet<Object>(); HashSet <Object>actionStates = new HashSet<Object>(); for(Iterator i = states.iterator(); i.hasNext();){ Object element = i.n... | 1,117,051 |
public static void main(String[] args) { BasicConfigurator.configure(); OpenMap om; if(args.length > 0) { om = new OpenMap("edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse", "edu/sc/seis/mapData", args[0]); } else { om = new OpenM... | public static void main(String[] args) { BasicConfigurator.configure(); OpenMap om; if(args.length > 2) { om = new OpenMap("edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse", "edu/sc/seis/mapData", args[0]); } else { om = new OpenM... | 1,117,052 |
public static void main(String[] args) { BasicConfigurator.configure(); OpenMap om; if(args.length > 0) { om = new OpenMap("edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse", "edu/sc/seis/mapData", args[0]); } else { om = new OpenM... | public static void main(String[] args) { BasicConfigurator.configure(); OpenMap om; if(args.length > 0) { om = new OpenMap("edu/sc/seis/fissuresUtil/data/maps/dcwpo-browse", "edu/sc/seis/mapData", args[2]); } else { om = new OpenM... | 1,117,053 |
public static void handle(Throwable thrown) { handle("An uncaught exception has occured. Please report this to geebugs@seis.sc.edu", thrown); } | public static void handle(Throwable thrown) { handle("An uncaught exception has occured.", thrown); } | 1,117,054 |
public void addZoomListener(ZoomListener zl){ System.out.println("ZoomListener: " + zl); listenerList.add(ZoomListener.class, zl); } | public void addZoomListener(ZoomListener zl){ listenerList.add(ZoomListener.class, zl); } | 1,117,055 |
public char asChar() throws XIllegalArgument { if (javaValue.length() == 1) { return javaValue.charAt(0); } else { throw new XIllegalArgument("Expected a character, given a string: " + javaValue); } } | public char asChar() throws XTypeMismatch { if (javaValue.length() == 1) { return javaValue.charAt(0); } else { throw new XIllegalArgument("Expected a character, given a string: " + javaValue); } } | 1,117,056 |
public char asChar() throws XIllegalArgument { if (javaValue.length() == 1) { return javaValue.charAt(0); } else { throw new XIllegalArgument("Expected a character, given a string: " + javaValue); } } | public char asChar() throws XIllegalArgument { if (javaValue.length() == 1) { return javaValue.charAt(0); } else { throw new XTypeMismatch(Character.class, this); } } | 1,117,057 |
public OMStation(Station stat){ super(stat.my_location.latitude, stat.my_location.longitude, xPoints, yPoints, OMPoly.COORDMODE_ORIGIN); station = stat; setFillPaint(Color.BLUE); setLinePaint(Color.BLACK); generate(getProje... | public OMStation(Station stat){ super(stat.my_location.latitude, stat.my_location.longitude, xPoints, yPoints, OMPoly.COORDMODE_ORIGIN); station = stat; setFillPaint(STATION); setLinePaint(Color.BLACK); generate(getProjecti... | 1,117,058 |
public void deselect(){ setFillPaint(Color.BLUE); selected = false; } | public void deselect(){ setFillPaint(STATION); selected = false; } | 1,117,059 |
public void init(boolean content) throws WebdavIntfException { if (!content) { return; } try { if ((eventInfo == null) && exists) { String entityName = cdURI.getEntityName(); if (entityName == null) { return; } if (debug) { debugMsg("SEARCH: compNode re... | public void init(boolean content) throws WebdavIntfException { if (!content) { return; } try { if ((eventInfo == null) && exists) { String entityName = cdURI.getEntityName(); if (entityName == null) { return; } if (debug) { debugMsg("SEARCH: compNode re... | 1,117,060 |
public EventInfo(BwEvent event) { setEvent(event); } | public EventInfo(BwEvent event) { setEvent(event); } | 1,117,061 |
public static void init(String[] args) { Properties props = initProperties(args); /* Check for properties on the command line and load them if they exist. */ /** Configure log4j, not required for DHI, but is useful. */ BasicConfigurator.configure(); logger.info("Logging configured... | public static void init(String[] args) { Properties props = initProperties(args); /* Check for properties on the command line and load them if they exist. */ /** Configure log4j, not required for DHI, but is useful. */ BasicConfigurator.configure(); logger.info("Logging configured... | 1,117,062 |
public FissuresNamingServiceImpl(org.omg.CORBA_2_3.ORB orb) throws InvalidName { org.omg.CORBA.Object obj = null; obj = orb.resolve_initial_references("NameService"); namingContext = NamingContextExtHelper.narrow(obj); } | public FissuresNamingServiceImpl(org.omg.CORBA_2_3.ORB orb) throws InvalidName { org.omg.CORBA.Object obj = null; obj = orb.resolve_initial_references("NameService"); namingContext = NamingContextExtHelper.narrow(obj); } | 1,117,063 |
public PlottableDC getPlottableDC(String dns, String objectname) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName { PlottableDC plottabledc = PlottableDCHelper.narrow(getPlottableDC(dns, objectname)); re... | public PlottableDC getPlottableDC(String dns, String objectname) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName { PlottableDC plottabledc = PlottableDCHelper.narrow(getPlottableDCObject(dns, objectname... | 1,117,064 |
public org.omg.CORBA.Object resolve(String dns, String interfacename, String objectname) throws NotFound, CannotProceed, InvalidName, org.omg.CORBA.ORBPackage.InvalidName { dns = appendKindNames(dns); if(interface... | public org.omg.CORBA.Object resolve(String dns, String interfacename, String objectname) throws NotFound, CannotProceed, InvalidName, org.omg.CORBA.ORBPackage.InvalidName { dns = appendKindNames(dns); if(interface... | 1,117,065 |
public void setAllBeginTime(MicroSecondDate b){ Iterator e = seismos.keySet().iterator(); while(e.hasNext()){ timeConfig.setBeginTime((DataSetSeismogram)e.next(), b); } } | public void setAllBeginTime(MicroSecondDate b){ Iterator e = seismos.keySet().iterator(); while(e.hasNext()){ timeConfig.setBeginTime((DataSetSeismogram)e.next(), b); } } | 1,117,066 |
protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(org.eclipse.uml2.diagram.profile.edit.parts.Profile2EditPart.VISUAL_ID); view.setType(semanticHint); }... | protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) { if (semanticHint == null) { semanticHint = UMLVisualIDRegistry.getType(Profile2EditPart.VISUAL_ID); view.setType(semanticHint); } super.decorateView(containerView, view, se... | 1,117,067 |
public void removeSeismogram(LocalSeismogram aSeis){ MicroSecondTimeRange calcIntv; if(this.timeConfig == null) calcIntv = new MicroSecondTimeRange(((LocalSeismogramImpl)aSeis).getBeginTime(), ((LocalSeismogramImpl)aSeis).getEndTime()); else calcIntv = timeConfig.getTimeRange(aSeis); if(seismos.contains(aS... | public void removeSeismogram(LocalSeismogram aSeis){ MicroSecondTimeRange calcIntv; if(this.timeConfig == null) calcIntv = new MicroSecondTimeRange(((LocalSeismogramImpl)aSeis).getBeginTime(), ((LocalSeismogramImpl)aSeis).getEndTime()); else calcIntv = timeConfig.getTimeRange(aSeis); if(seismos.contains(aS... | 1,117,068 |
public DateTime(Object instant, DateTimeZone zone) { super(instant, zone); } | public DateTime(Object instant, DateTimeZone zone) { super(instant, zone); } | 1,117,070 |
public ATObject meta_select(ATObject receiver, ATSymbol selector) throws InterpreterException { String jSelector = Reflection.upSelector(selector); try { return Symbiosis.readField(wrappedObject_, wrappedObject_.getClass(), jSelector); } catch (XUndefinedField e) { return ... | public ATObject meta_select(ATObject receiver, ATSymbol selector) throws InterpreterException { String jSelector = Reflection.upSelector(selector); try { return Symbiosis.readField(wrappedObject_, wrappedObject_.getClass(), jSelector); } catch (XUndefinedField e) { Method[... | 1,117,071 |
public ATObject meta_select(ATObject receiver, ATSymbol selector) throws InterpreterException { String jSelector = Reflection.upSelector(selector); try { return Symbiosis.readField(null, wrappedClass_, jSelector); } catch (XUndefinedField e) { return super.meta_select(rece... | public ATObject meta_select(ATObject receiver, ATSymbol selector) throws InterpreterException { String jSelector = Reflection.upSelector(selector); try { return Symbiosis.readField(null, wrappedClass_, jSelector); } catch (XUndefinedField e) { Method[] choices = Symbiosis.... | 1,117,072 |
public boolean removeDisplay(BasicSeismogramDisplay display){ if(basicDisplays.contains(display)){ if(basicDisplays.size() == 1){ this.removeAll(); return true; } super.remove(display); basicDisplays.remove(display); sorter.remove(display.getName()); ((BasicSeismogramDisplay)basicDisplays.... | public boolean removeDisplay(BasicSeismogramDisplay display){ if(basicDisplays.contains(display)){ if(basicDisplays.size() == 1){ this.removeAll(); return true; } super.remove(display); basicDisplays.remove(display); sorter.remove(display.getSeismograms()[0].toString()); ((BasicSeismogramD... | 1,117,073 |
public static void insertParameterRef(Element paramRef, String name, String href, Object value) { // write(href, value); //Element paramRef = doc.createElement("parameterRef"); paramRef.setAttribute("name", name); paramRef.setAttributeNS(xlinkNS,"xlink:type", "type/xml"); if(href.startsWith("file:")) { href = h... | public static void insertParameterRef(Element paramRef, String name, String href, Object value) { // write(href, value); //Element paramRef = doc.createElement("parameterRef"); paramRef.setAttribute("name", name); paramRef.setAttributeNS(xlinkNS,"xlink:type", "type/xml"); if(href.startsWith("file:")) { href = h... | 1,117,074 |
public static void insertParameterRef(Element paramRef, String name, String href, Object value) { // write(href, value); //Element paramRef = doc.createElement("parameterRef"); paramRef.setAttribute("name", name); paramRef.setAttributeNS(xlinkNS,"xlink:type", "type/xml"); if(href.startsWith("file:")) { href = h... | public static void insertParameterRef(Element paramRef, String name, String href, Object value) { // write(href, value); //Element paramRef = doc.createElement("parameterRef"); paramRef.setAttribute("name", name); paramRef.setAttributeNS(xlinkNS,"xlink:type", "type/xml"); if(href.startsWith("file:")) { href = h... | 1,117,075 |
public static void insert(Element element, Channel channel) { Document doc = element.getOwnerDocument(); Element id = doc.createElement("id"); XMLChannelId.insert(id, channel.get_id()); element.appendChild(id); element.appendChild(XMLUtil.createTextElement(doc, ... | public static void insert(XMLStreamWriter writer, Channel channel) throws XMLStreamException{ writer.writeStartElement("id"); XMLChannelId.insert(writer, channel.get_id()); XMLUtil.writeEndElementWithNewLine(writer); Document doc = element.getOwnerDocument(); Element id = doc.createElement("id"); ... | 1,117,076 |
public static void insert(Element element, Channel channel) { Document doc = element.getOwnerDocument(); Element id = doc.createElement("id"); XMLChannelId.insert(id, channel.get_id()); element.appendChild(id); element.appendChild(XMLUtil.createTextElement(doc, ... | public static void insert(Element element, Channel channel) { XMLUtil.writeTextElement(writer, "name", channel.name); Element id = doc.createElement("id"); XMLChannelId.insert(id, channel.get_id()); element.appendChild(id); element.appendChild(XMLUtil.createTextElement(doc, ... | 1,117,077 |
public static void insert(Element element, Channel channel) { Document doc = element.getOwnerDocument(); Element id = doc.createElement("id"); XMLChannelId.insert(id, channel.get_id()); element.appendChild(id); element.appendChild(XMLUtil.createTextElement(doc, ... | public static void insert(Element element, Channel channel) { Document doc = element.getOwnerDocument(); Element id = doc.createElement("id"); XMLChannelId.insert(id, channel.get_id()); element.appendChild(id); element.appendChild(XMLUtil.createTextElement(doc, ... | 1,117,078 |
public static void insert(Element element, Channel channel) { Document doc = element.getOwnerDocument(); Element id = doc.createElement("id"); XMLChannelId.insert(id, channel.get_id()); element.appendChild(id); element.appendChild(XMLUtil.createTextElement(doc, ... | public static void insert(Element element, Channel channel) { Document doc = element.getOwnerDocument(); Element id = doc.createElement("id"); XMLChannelId.insert(id, channel.get_id()); element.appendChild(id); element.appendChild(XMLUtil.createTextElement(doc, ... | 1,117,079 |
public static void insert(Element element, Channel channel) { Document doc = element.getOwnerDocument(); Element id = doc.createElement("id"); XMLChannelId.insert(id, channel.get_id()); element.appendChild(id); element.appendChild(XMLUtil.createTextElement(doc, ... | public static void insert(Element element, Channel channel) { Document doc = element.getOwnerDocument(); Element id = doc.createElement("id"); XMLChannelId.insert(id, channel.get_id()); element.appendChild(id); element.appendChild(XMLUtil.createTextElement(doc, ... | 1,117,080 |
public static void insert(Element element, Channel channel) { Document doc = element.getOwnerDocument(); Element id = doc.createElement("id"); XMLChannelId.insert(id, channel.get_id()); element.appendChild(id); element.appendChild(XMLUtil.createTextElement(doc, ... | public static void insert(Element element, Channel channel) { Document doc = element.getOwnerDocument(); Element id = doc.createElement("id"); XMLChannelId.insert(id, channel.get_id()); element.appendChild(id); element.appendChild(XMLUtil.createTextElement(doc, ... | 1,117,081 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.