bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void next() { pause(); playingIndex--; play(); } | public void next() { pause(); playingIndex++; play(); } | 1,119,147 |
public void pause() { if (player != null) { player.close(); try { stream.close(); } catch (Exception exc) { exc.printStackTrace(); } } } | public synchronized void pause() { if (player != null) { player.close(); try { stream.close(); } catch (Exception exc) { exc.printStackTrace(); } } } | 1,119,148 |
public void pause() { if (player != null) { player.close(); try { stream.close(); } catch (Exception exc) { exc.printStackTrace(); } } } | public void pause() { if (player != null) { player.close(); try { stream.close(); } catch (Exception exc) { exc.printStackTrace(); } } } | 1,119,149 |
public void play() { try { int playListSize = playList.size(); if (playListSize == 0) { return; } if (playingIndex == -1) { playingIndex = 0; } if (playingIndex >= playListSize) { playingIndex %= playListSize; } File file = (File)playList.get(playingIndex); stream = new FileInputStream(f... | public synchronized void play() { try { int playListSize = playList.size(); if (playListSize == 0) { return; } if (playingIndex == -1) { playingIndex = 0; } if (playingIndex >= playListSize) { playingIndex %= playListSize; } File file = (File)playList.get(playingIndex); stream = new File... | 1,119,150 |
public void play() { try { int playListSize = playList.size(); if (playListSize == 0) { return; } if (playingIndex == -1) { playingIndex = 0; } if (playingIndex >= playListSize) { playingIndex %= playListSize; } File file = (File)playList.get(playingIndex); stream = new FileInputStream(f... | public void play() { try { int playListSize = playList.size(); if (playListSize == 0) { return; } if (playingIndex < 0) { playingIndex = 0; } if (playingIndex >= playListSize) { playingIndex %= playListSize; } File file = (File)playList.get(playingIndex); stream = new FileInputStream(fil... | 1,119,151 |
public void play() { try { int playListSize = playList.size(); if (playListSize == 0) { return; } if (playingIndex == -1) { playingIndex = 0; } if (playingIndex >= playListSize) { playingIndex %= playListSize; } File file = (File)playList.get(playingIndex); stream = new FileInputStream(f... | public void play() { try { int playListSize = playList.size(); if (playListSize == 0) { return; } if (playingIndex == -1) { playingIndex = 0; } if (playingIndex >= playListSize) { playingIndex %= playListSize; } File file = (File)playList.get(playingIndex); stream = new FileInputStream(f... | 1,119,152 |
public void prev() { pause(); playingIndex++; play(); } | public synchronized void prev() { pause(); playingIndex++; play(); } | 1,119,153 |
public void prev() { pause(); playingIndex++; play(); } | public void prev() { pause(); playingIndex--; play(); } | 1,119,154 |
public void addUser(BwUser user) throws CalFacadeException { checkOpen(); user.setCategoryAccess(access.getDefaultPersonalAccess()); user.setLocationAccess(access.getDefaultPersonalAccess()); user.setSponsorAccess(access.getDefaultPersonalAccess()); user.setQuota(getSyspars().getDefaultUserQuota()); ... | public void addUser(BwUser user) throws CalFacadeException { checkOpen(); user.setCategoryAccess(access.getDefaultPersonalAccess()); user.setLocationAccess(access.getDefaultPersonalAccess()); user.setSponsorAccess(access.getDefaultPersonalAccess()); user.setQuota(getSyspars().getDefaultUserQuota()); ... | 1,119,155 |
private void logon(BwUser val) throws CalFacadeException { checkOpen(); Timestamp now = new Timestamp(System.currentTimeMillis()); val.setLogon(now); val.setLastAccess(now); sess.saveOrUpdate(val); } | private void logon(BwUser val) throws CalFacadeException { checkOpen(); Timestamp now = new Timestamp(System.currentTimeMillis()); val.setLogon(now); val.setLastAccess(now); sess.update(val); } | 1,119,156 |
public BwOwnedDbentity(BwUser owner, boolean publick) { super(); this.owner = owner; this.publick = publick; } | public BwOwnedDbentity(BwUser owner, boolean publick) { super(); this.owner = owner; this.publick = publick; } | 1,119,158 |
public BwOwnedDbentity(BwUser owner, boolean publick) { super(); this.owner = owner; this.publick = publick; } | public BwOwnedDbentity(BwUser owner, boolean publick) { super(); this.owner = owner; this.publick = publick; } | 1,119,159 |
private void addProp(Vector v, QName tag, Object val) { if (val != null) { v.addElement(new WebdavProperty(tag, String.valueOf(val))); } } | private void addProp(Collection c, QName tag, Object val) { if (val != null) { v.addElement(new WebdavProperty(tag, String.valueOf(val))); } } | 1,119,160 |
private void addProp(Vector v, QName tag, Object val) { if (val != null) { v.addElement(new WebdavProperty(tag, String.valueOf(val))); } } | private void addProp(Vector v, QName tag, Object val) { if (val != null) { c.add(new WebdavProperty(tag, String.valueOf(val))); } } | 1,119,161 |
public void renderToGraphics(Graphics g, Dimension size) { PRINTING = true; boolean allHere = true; long totalWait = 0; Iterator seisIt = iterator(DrawableSeismogram.class); while(seisIt.hasNext()){ DrawableSeismogram cur = (DrawableSeismogram)seisIt.next(); ... | public void renderToGraphics(Graphics g, Dimension size) { PRINTING = true; boolean allHere = true; long totalWait = 0; Iterator seisIt = iterator(DrawableSeismogram.class); while(seisIt.hasNext()){ DrawableSeismogram cur = (DrawableSeismogram)seisIt.next(); ... | 1,119,162 |
public void renderToGraphics(Graphics g, Dimension size) { PRINTING = true; boolean allHere = true; long totalWait = 0; Iterator seisIt = iterator(DrawableSeismogram.class); while(seisIt.hasNext()){ DrawableSeismogram cur = (DrawableSeismogram)seisIt.next(); ... | public void renderToGraphics(Graphics g, Dimension size) { PRINTING = true; boolean allHere = true; long totalWait = 0; Iterator seisIt = iterator(DrawableSeismogram.class); while(seisIt.hasNext()){ DrawableSeismogram cur = (DrawableSeismogram)seisIt.next(); ... | 1,119,163 |
public void testPut() throws CodecException { Plottable plottable = createPlottable(); JDBCPlottable jdbcPlot = new JDBCPlottable(ConnMgr.createConnection(), new Properties()); int dbid = jdbcPlot.put(plottable); Plottable out = jdbcPlot.... | public void testPut() throws CodecException, SQLException { Plottable plottable = createPlottable(); JDBCPlottable jdbcPlot = new JDBCPlottable(ConnMgr.createConnection(), new Properties()); int dbid = jdbcPlot.put(plottable); Plottable o... | 1,119,165 |
public void testPut() throws CodecException { Plottable plottable = createPlottable(); JDBCPlottable jdbcPlot = new JDBCPlottable(ConnMgr.createConnection(), new Properties()); int dbid = jdbcPlot.put(plottable); Plottable out = jdbcPlot.... | public void testPut() throws CodecException { Plottable plottable = createPlottable(); JDBCPlottable jdbcPlot = new JDBCPlottable(ConnMgr.createConnection(), new Properties()); int dbid = jdbcPlot.put(plottable); Plottable out = jdbcPlot.... | 1,119,166 |
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.fetch... | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.fetch... | 1,119,167 |
public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm... | public String performAction(HttpServletRequest request, HttpServletResponse response, UtilActionForm frm, MessageResources messages) throws Throwable { String forward = "success"; BwActionFormBase form = (BwActionFormBase)frm... | 1,119,168 |
public void restoreFilter(BwFilter o) throws Throwable { openHibSess(); hibSave(o); closeHibSess(); } | public void restoreFilter(BwFilter o) throws Throwable { openHibSess(); hibSave(o); closeHibSess(); } | 1,119,169 |
private void printInternal(Node node, boolean indentEndMarker) { // is there anything to do? if (node == null) { return; } // JBAS-2117 - Don't skip the DOCUMENT_NODE // if (node instanceof Document) node = ((Document)node).getDocumentElement(); if (wroteXMLDeclaration ==... | private void printInternal(Node node, boolean indentEndMarker) { // is there anything to do? if (node == null) { return; } // JBAS-2117 - Don't skip the DOCUMENT_NODE // if (node instanceof Document) node = ((Document)node).getDocumentElement(); if (wroteXMLDeclaration ==... | 1,119,170 |
public void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; Dimension dimension = super.getSize(); LocalSeismogramImpl hseis = particleMotion.hseis.getSeismogram(); LocalSeismogramImpl vseis = particleMotion.vseis.getSeismogram(); AmpConfigRegistrar vAmpCo... | public void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; Dimension dimension = super.getSize(); LocalSeismogramImpl hseis = particleMotion.hseis.getSeismogram(); LocalSeismogramImpl vseis = particleMotion.vseis.getSeismogram(); AmpConfigRegistrar vAmpCo... | 1,119,175 |
public void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; Dimension dimension = super.getSize(); LocalSeismogramImpl hseis = particleMotion.hseis.getSeismogram(); LocalSeismogramImpl vseis = particleMotion.vseis.getSeismogram(); AmpConfigRegistrar vAmpCo... | public void drawParticleMotion(ParticleMotion particleMotion, Graphics g) { Graphics2D graphics2D = (Graphics2D) g; Dimension dimension = super.getSize(); LocalSeismogramImpl hseis = particleMotion.hseis.getSeismogram(); LocalSeismogramImpl vseis = particleMotion.vseis.getSeismogram(); AmpConfigRegistrar vAmpCo... | 1,119,177 |
public Shape getParticleMotionPath(int[] x, int[] y) { int len = x.length; if(y.length < len) { len = y.length;} GeneralPath generalPath = new GeneralPath(GeneralPath.WIND_EVEN_ODD); if(len != 0) { generalPath.moveTo(x[0], y[0]); } for(int counter = 1; counter < len; counter++) { generalPath.lineTo(x[cou... | public Shape getParticleMotionPath(int[] x, int[] y) { int len = x.length; if(y.length < len) { len = y.length;} GeneralPath generalPath = new GeneralPath(GeneralPath.WIND_EVEN_ODD); if(len != 0) { generalPath.moveTo(x[0], y[0]); } for(int counter = 1; counter < len; counter++) { generalPath.lineTo(x[cou... | 1,119,178 |
public Shape getParticleMotionPath(int[] x, int[] y) { int len = x.length; if(y.length < len) { len = y.length;} GeneralPath generalPath = new GeneralPath(GeneralPath.WIND_EVEN_ODD); if(len != 0) { generalPath.moveTo(x[0], y[0]); } for(int counter = 1; counter < len; counter++) { generalPath.lineTo(x[cou... | public Shape getParticleMotionPath(int[] x, int[] y) { int len = x.length; if(y.length < len) { len = y.length;}*/ GeneralPath generalPath = new GeneralPath(GeneralPath.WIND_EVEN_ODD); if(len != 0) { generalPath.moveTo(x[0], y[0]); }*/ for(int counter = 1; counter < len; counter++) { generalPath.lineTo(x... | 1,119,179 |
public void addParameterRef(URL paramURL, String name, AuditInfo[] audit) { Document doc = config.getOwnerDocument(); Element param = doc.createElement("parameterRef"); param.setAttributeNS(xlinkNS, "type", "simple"); param.setAttributeNS(xlinkNS, "href", paramURL.toString()); Text text = doc.createTextNode... | public void addParameterRef(URL paramURL, String name, AuditInfo[] audit) { Document doc = config.getOwnerDocument(); Element param = doc.createElement("parameterRef"); param.setAttributeNS(xlinkNS, "type", "simple"); param.setAttributeNS(xlinkNS, "href", paramURL.toString()); Text text = doc.createTextNode... | 1,119,183 |
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.getCa... | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.getCa... | 1,119,184 |
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.getCa... | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { if (form.getGuest()) { return "noAccess"; // First line of defence } CalSvcI svc = form.getCa... | 1,119,185 |
public SeismogramIterator(LocalSeismogramImpl[] seismograms){ this(seismograms, DisplayUtils.getFullTime(seismograms)); } | public SeismogramIterator(LocalSeismogramImpl[] seismograms){ this(seismograms, DisplayUtils.getFullTime(seismograms)); } | 1,119,186 |
private Statistics getStatistics(LocalSeismogramImpl seis){ SoftReference softStat = (SoftReference)statisticsMap.get(seis); Statistics stat; if(softStat == null){ stat = new Statistics(seis); statisticsMap.put(seis, new SoftReference(stat)); }else{ stat ... | private Statistics getStatistics(LocalSeismogramImpl seis){ SoftReference softStat = (SoftReference)statisticsMap.get(seis); Statistics stat; if(softStat == null){ stat = new Statistics(seis); statisticsMap.put(seis, new SoftReference(stat)); }else{ stat ... | 1,119,187 |
private Statistics getStatistics(LocalSeismogramImpl seis){ SoftReference softStat = (SoftReference)statisticsMap.get(seis); Statistics stat; if(softStat == null){ stat = new Statistics(seis); statisticsMap.put(seis, new SoftReference(stat)); }else{ stat ... | private Statistics getStatistics(LocalSeismogramImpl seis){ SoftReference softStat = (SoftReference)statisticsMap.get(seis); Statistics stat; if(softStat == null){ stat = new Statistics(seis); statisticsMap.put(seis, new SoftReference(stat)); }else{ stat ... | 1,119,188 |
public double[] minMaxMean(int startPoint, int endPoint){ double max = Double.NEGATIVE_INFINITY; double min = Double.POSITIVE_INFINITY; double meanStore = 0; for(int i = startPoint; i < endPoint; i++){ Object[] array = getSeisAtWithInternal(startPoint); LocalSeismog... | public double[] minMaxMean(int startPoint, int endPoint){ double max = Double.NEGATIVE_INFINITY; double min = Double.POSITIVE_INFINITY; double meanStore = 0; for(int i = startPoint; i < endPoint; i++){ Object[] array = getSeisAtWithInternal(startPoint); LocalSeismog... | 1,119,189 |
public void setTimeRange(MicroSecondTimeRange timeRange){ this.timeRange = timeRange; if(timeRange.getBeginTime().equals(seisTimeRange.getBeginTime())){ currentPoint = 0; }else{ currentPoint = (int)DisplayUtils.linearInterp(seisTimeRange.getBeginTime().getMicroSecondTime()... | public void setTimeRange(MicroSecondTimeRange timeRange){ this.timeRange = timeRange; if(timeRange == DisplayUtils.ZERO_TIME){ currentPoint = 0; }else{ currentPoint = (int)DisplayUtils.linearInterp(seisTimeRange.getBeginTime().getMicroSecondTime(), ... | 1,119,190 |
public void setTimeRange(MicroSecondTimeRange timeRange){ this.timeRange = timeRange; if(timeRange.getBeginTime().equals(seisTimeRange.getBeginTime())){ currentPoint = 0; }else{ currentPoint = (int)DisplayUtils.linearInterp(seisTimeRange.getBeginTime().getMicroSecondTime()... | public void setTimeRange(MicroSecondTimeRange timeRange){ this.timeRange = timeRange; if(timeRange.getBeginTime().equals(seisTimeRange.getBeginTime())){ currentPoint = 0; }else{ currentPoint = (int)DisplayUtils.linearInterp(seisTimeRange.getBeginTime().getMicroSecondTime()... | 1,119,191 |
public void field(String name) throws Exception { BwOrganizer ent = (BwOrganizer)top(); if (taggedEntityId(ent, name)) { return; } if (name.equals("cn")) { ent.setCn(stringFld()); } else if (name.equals("dir")) { ent.setDir(stringFld()); } else if (name.equals("lang")) { ent.setL... | public void field(String name) throws Exception { BwOrganizer ent = (BwOrganizer)top(); if (ownedEntityTags(ent, name)) { return; } if (name.equals("cn")) { ent.setCn(stringFld()); } else if (name.equals("dir")) { ent.setDir(stringFld()); } else if (name.equals("lang")) { ent.set... | 1,119,192 |
public static boolean validateEvent(CalSvcI svci, BwEvent ev, boolean descriptionRequired, MessageEmit err) throws CalFacadeException { boolean ok = true; ev.setSummary(checkNull(ev.getSummary())); ev.setDescription(checkNull(ev.getDescription())); if (ev.getCalendar()... | public static boolean validateEvent(CalSvcI svci, BwEvent ev, boolean publicEvent, MessageEmit err) throws CalFacadeException { boolean ok = true; ev.setSummary(checkNull(ev.getSummary())); ev.setDescription(checkNull(ev.getDescription())); if (ev.getCalendar() == null... | 1,119,193 |
public static boolean validateEvent(CalSvcI svci, BwEvent ev, boolean descriptionRequired, MessageEmit err) throws CalFacadeException { boolean ok = true; ev.setSummary(checkNull(ev.getSummary())); ev.setDescription(checkNull(ev.getDescription())); if (ev.getCalendar()... | public static boolean validateEvent(CalSvcI svci, BwEvent ev, boolean descriptionRequired, MessageEmit err) throws CalFacadeException { boolean ok = true; ev.setSummary(checkNull(ev.getSummary())); ev.setDescription(checkNull(ev.getDescription())); if (ev.getCalendar()... | 1,119,194 |
public static boolean validateEvent(CalSvcI svci, BwEvent ev, boolean descriptionRequired, MessageEmit err) throws CalFacadeException { boolean ok = true; ev.setSummary(checkNull(ev.getSummary())); ev.setDescription(checkNull(ev.getDescription())); if (ev.getCalendar()... | public static boolean validateEvent(CalSvcI svci, BwEvent ev, boolean descriptionRequired, MessageEmit err) throws CalFacadeException { boolean ok = true; ev.setSummary(checkNull(ev.getSummary())); ev.setDescription(checkNull(ev.getDescription())); if (ev.getCalendar()... | 1,119,195 |
public MainPanel(final AudioPlayer owner) { super(new BorderLayout()); playlist.setPlayAll(Configuration.isPlayAll()); playlist.setRandom(Configuration.isRandom()); list = new JList(playlist.getListModel()); list.setCellRenderer(new ListCellRenderer() { public Component getListCellRendererComponent(JList li... | public MainPanel(final AudioPlayer owner) { super(new BorderLayout()); playlist.setPlayAll(Configuration.isPlayAll()); playlist.setRandom(Configuration.isRandom()); list = new JList(playlist.getListModel()); list.setCellRenderer(new ListCellRenderer() { public Component getListCellRendererComponent(JList li... | 1,119,196 |
public MainPanel(final AudioPlayer owner) { super(new BorderLayout()); playlist.setPlayAll(Configuration.isPlayAll()); playlist.setRandom(Configuration.isRandom()); list = new JList(playlist.getListModel()); list.setCellRenderer(new ListCellRenderer() { public Component getListCellRendererComponent(JList li... | public MainPanel(final AudioPlayer owner) { super(new BorderLayout()); playlist.setPlayAll(Configuration.isPlayAll()); playlist.setRandom(Configuration.isRandom()); list = new JList(playlist.getListModel()); list.setCellRenderer(new ListCellRenderer() { public Component getListCellRendererComponent(JList li... | 1,119,197 |
public void playbackCompleted(Player player) { File file = player.getFile(); updatePlayingLabel(null); ListComponent comp = (ListComponent)labeltable.get(file); comp.update(file, false); } | public void playbackCompleted(Player player) { File file = player.getFile(); updatePlayingLabel(null); ListComponent comp = (ListComponent)labeltable.get(file); if (comp != null) { comp.update(file, false); } } | 1,119,198 |
public void playbackStarted(Player player) { File file = player.getFile(); updatePlayingLabel(file); ListComponent comp = (ListComponent)labeltable.get(file); comp.update(file, true); } | public void playbackStarted(Player player) { File file = player.getFile(); updatePlayingLabel(file); ListComponent comp = (ListComponent)labeltable.get(file); if (comp != null) { comp.update(file, true); } } | 1,119,199 |
public void playbackStopped(Player player) { File file = player.getFile(); updatePlayingLabel(null); ListComponent comp = (ListComponent)labeltable.get(file); comp.update(file, false); } | public void playbackStopped(Player player) { File file = player.getFile(); updatePlayingLabel(null); ListComponent comp = (ListComponent)labeltable.get(file); if (comp != null) { comp.update(file, false); } } | 1,119,200 |
void process() throws ParserConfigurationException { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = factory.newDocumentBuilder(); String userName = System.getProperty("user.name"); dataset = new XMLDataSet(docBuilder, base, "genid"+Math.roun... | void process() throws ParserConfigurationException { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = factory.newDocumentBuilder(); String userName = System.getProperty("user.name"); dataset = new XMLDataSet(docBuilder, base, "genid"+Math.roun... | 1,119,201 |
public boolean isSelectionSelected(int currx, int curry) { if( (currx > (endx - 10) && currx < (endx + 10) && curry >= beginy && curry <= endy) || (currx > (beginx - 10) && currx < (beginx + 10) && curry >= beginy && curry <= endy) ) { Syst... | public boolean isSelectionSelected(int currx, int curry) { if( (currx > (endx - 10) && currx < (endx + 10) && curry >= beginy && curry <= endy) || (currx > (beginx - 10) && currx < (beginx + 10) && curry >= beginy && curry <= endy) ) { ... | 1,119,202 |
public boolean isSelectionSelected(int currx, int curry) { if( (currx > (endx - 10) && currx < (endx + 10) && curry >= beginy && curry <= endy) || (currx > (beginx - 10) && currx < (beginx + 10) && curry >= beginy && curry <= endy) ) { Syst... | public boolean isSelectionSelected(int currx, int curry) { if( (currx > (endx - 10) && currx < (endx + 10) && curry >= beginy && curry <= endy) || (currx > (beginx - 10) && currx < (beginx + 10) && curry >= beginy && curry <= endy) ) { Syst... | 1,119,203 |
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access and set request parameters */ if (!form.getAuthorisedUser()) { return "noAccess"; } /** Set the objects to null so we get new o... | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access and set request parameters */ if (!form.getAuthorisedUser()) { return "noAccess"; } /** Set the objects to null so we get new o... | 1,119,204 |
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access and set request parameters */ if (!form.getAuthorisedUser()) { return "noAccess"; } /** Set the objects to null so we get new o... | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access and set request parameters */ if (!form.getAuthorisedUser()) { return "noAccess"; } /** Set the objects to null so we get new o... | 1,119,205 |
public Console() { final PrintStream oldOut = System.out; final PrintStream oldErr = System.err; final SimpleAttributeSet attr = new SimpleAttributeSet(); final DefaultStyledDocument doc = new DefaultStyledDocument(); StyleConstants.setFontFamily(attr, "Monospaced"); PrintStream newOut = new PrintStream(new Ou... | public Console() { final PrintStream oldOut = System.out; final PrintStream oldErr = System.err; final SimpleAttributeSet attr = new SimpleAttributeSet(); final DefaultStyledDocument doc = new DefaultStyledDocument(); StyleConstants.setFontFamily(attr, "Monospaced"); PrintStream newOut = new PrintStream(new Ou... | 1,119,208 |
public void setUp() throws Exception { globalLexScope = Evaluator.getGlobalLexicalScope(); testScope = new NATCallframe(globalLexScope); final NATClosure symbol = new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTable arguments) throws InterpreterException { return AGSymbol.alloc(arguments... | public void setUp() throws Exception { globalLexScope = Evaluator.getGlobalLexicalScope(); testScope = new NATCallframe(globalLexScope); final NATClosure symbol = new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTable arguments) throws InterpreterException { return AGSymbol.alloc(arguments... | 1,119,211 |
public void setUp() throws Exception { globalLexScope = Evaluator.getGlobalLexicalScope(); testScope = new NATCallframe(globalLexScope); final NATClosure symbol = new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTable arguments) throws InterpreterException { return AGSymbol.alloc(arguments... | public void setUp() throws Exception { globalLexScope = Evaluator.getGlobalLexicalScope(); testScope = new NATCallframe(globalLexScope); final NATClosure symbol = new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTable arguments) throws InterpreterException { return AGSymbol.alloc(arguments... | 1,119,212 |
public void setUp() throws Exception { globalLexScope = Evaluator.getGlobalLexicalScope(); testScope = new NATCallframe(globalLexScope); final NATClosure symbol = new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTable arguments) throws InterpreterException { return AGSymbol.alloc(arguments... | public void setUp() throws Exception { globalLexScope = Evaluator.getGlobalLexicalScope(); testScope = new NATCallframe(globalLexScope); final NATClosure symbol = new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTable arguments) throws InterpreterException { return AGSymbol.alloc(arguments... | 1,119,213 |
public void setUp() throws Exception { globalLexScope = Evaluator.getGlobalLexicalScope(); testScope = new NATCallframe(globalLexScope); final NATClosure symbol = new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTable arguments) throws InterpreterException { return AGSymbol.alloc(arguments... | public void setUp() throws Exception { globalLexScope = Evaluator.getGlobalLexicalScope(); testScope = new NATCallframe(globalLexScope); final NATClosure symbol = new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTable arguments) throws InterpreterException { return AGSymbol.alloc(arguments... | 1,119,214 |
public void testInterpreterExceptionHandling() { try { ATObject globalLexScope = Evaluator.getGlobalLexicalScope(); ATObject testScope = new NATCallframe(globalLexScope); testScope.meta_defineField( AGSymbol.alloc("echo:"), new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTabl... | public void testInterpreterExceptionHandling() { try { ATObject globalLexScope = Evaluator.getGlobalLexicalScope(); ATObject testScope = new NATCallframe(globalLexScope); testScope.meta_defineField( AGSymbol.jAlloc("echo:"), new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTab... | 1,119,215 |
public void testInterpreterExceptionHandling() { try { ATObject globalLexScope = Evaluator.getGlobalLexicalScope(); ATObject testScope = new NATCallframe(globalLexScope); testScope.meta_defineField( AGSymbol.alloc("echo:"), new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTabl... | public void testInterpreterExceptionHandling() { try { ATObject globalLexScope = Evaluator.getGlobalLexicalScope(); ATObject testScope = new NATCallframe(globalLexScope); testScope.meta_defineField( AGSymbol.alloc("echo:"), new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTabl... | 1,119,216 |
public void testInterpreterExceptionHandling() { try { ATObject globalLexScope = Evaluator.getGlobalLexicalScope(); ATObject testScope = new NATCallframe(globalLexScope); testScope.meta_defineField( AGSymbol.alloc("echo:"), new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTabl... | public void testInterpreterExceptionHandling() { try { ATObject globalLexScope = Evaluator.getGlobalLexicalScope(); ATObject testScope = new NATCallframe(globalLexScope); testScope.meta_defineField( AGSymbol.alloc("echo:"), new NativeClosure(NATNil._INSTANCE_) { public ATObject base_apply(ATTabl... | 1,119,217 |
public VerticalSeismogramDisplay(MouseForwarder mouseForwarder, MouseMotionForwarder motionForwarder){ this.mouseForwarder = mouseForwarder; this.motionForwarder = motionForwarder; seismograms = new JLayeredPane(); seismograms.setLayout(new BoxLayout(seismograms, BoxLayout.Y_AXIS)); this.getViewport().add(seismogra... | public VerticalSeismogramDisplay(MouseForwarder mouseForwarder, MouseMotionForwarder motionForwarder){ this.mouseForwarder = mouseForwarder; this.motionForwarder = motionForwarder; seismograms = new JLayeredPane(); seismograms.setLayout(new BoxLayout(seismograms, BoxLayout.Y_AXIS)); this.getViewport().add(seismogra... | 1,119,220 |
public void createSelectionDisplay(BasicSeismogramDisplay creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder); }} | public void createSelectionDisplay(BasicSeismogramDisplay creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder); creator.getCurrentSelection().setDisplay(selectionDisplay.addDisplay(first, tr, fir... | 1,119,221 |
public void removeAll(){ logger.debug("removing all displays"); this.stopImageCreation(); seismograms.removeAll(); remove(seismograms); basicDisplays = new LinkedList(); sorter = new SeismogramSorter(); globalTimeRegistrar = new TimeConfigRegistrar(); globalAmpRegistrar = new AmpConfigRegistrar(new RMeanAmpConfig()... | public void removeAll(){ logger.debug("removing all displays"); this.stopImageCreation(); seismograms.removeAll(); remove(seismograms); basicDisplays = new LinkedList(); sorter = new AlphaSeisSorter(); globalTimeRegistrar = new TimeConfigRegistrar(); globalAmpRegistrar = new AmpConfigRegistrar(new RMeanAmpConfig())... | 1,119,222 |
public void removeSeismogram(MouseEvent me){ BasicSeismogramDisplay clicked = ((BasicSeismogramDisplay)me.getComponent()); clicked.remove(me); seismograms.remove(clicked); basicDisplays.remove(clicked); ((SeismogramDisplay)basicDisplays.getFirst()).addTopTimeBorder(); ((SeismogramDisplay)basicDisplays.getLast()).ad... | public void removeSeismogram(MouseEvent me){ BasicSeismogramDisplay clicked = ((BasicSeismogramDisplay)me.getComponent()); clicked.remove(); seismograms.remove(clicked); basicDisplays.remove(clicked); ((SeismogramDisplay)basicDisplays.getFirst()).addTopTimeBorder(); ((SeismogramDisplay)basicDisplays.getLast()).addB... | 1,119,223 |
private boolean setAmpRange(DataSetSeismogram seismo){ AmpConfigData data = (AmpConfigData)ampData.get(seismo); if ( data.getSeismograms().length == 0) { return data.setCleanRange(DisplayUtils.ZERO_RANGE); } // end of if () LocalSeismogramImpl seis = (LocalSeismogramImpl)data.getSeismograms()[0];... | private boolean setAmpRange(DataSetSeismogram seismo){ AmpConfigData data = (AmpConfigData)ampData.get(seismo); if ( data.getSeismograms().length == 0) { return data.setCleanRange(DisplayUtils.ZERO_RANGE); } // end of if () LocalSeismogramImpl seis = (LocalSeismogramImpl)data.getSeismograms()[0];... | 1,119,225 |
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences prefs = new BwPrefere... | 1,119,226 |
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | 1,119,227 |
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | 1,119,228 |
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | 1,119,229 |
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | 1,119,230 |
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | 1,119,231 |
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | 1,119,232 |
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | 1,119,233 |
private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | private void makePrefs() throws Throwable { Iterator it = globals.usersTbl.values().iterator(); int nextId = 1; if (globals.publicUser == null) { throw new Exception("Public user must be defined"); } while (it.hasNext()) { BwUser o = (BwUser)it.next(); BwPreferences p = new BwPreferences... | 1,119,234 |
public Station[] getSelectedStations(){ LinkedList out = new LinkedList(); Object[] selected = stationList.getSelectedValues(); for ( int i=0; i<selected.length; i++) { LinkedList staList = (LinkedList)stationMap.get(selected[i]); out.addAll(staList); } // end of for () return (Station[])out.toArray(new S... | public Station[] getSelectedStations(){ LinkedList out = new LinkedList(); Object[] selected = stationList.getSelectedValues(); for ( int i=0; i<selected.length; i++) { LinkedList staList = (LinkedList)stationMap.get(selected[i]); out.addAll(staList); } // end of for () return (Station[])out.toArray(new S... | 1,119,237 |
private void scrollToPlayingFile() { File file = playlist.getPlayingFile(); DefaultListModel listModel = playlist.getListModel(); if (file == null || listModel == null) { return; } int index = listModel.indexOf(file); if (index != -1) { int index0 = index - 5; int index1 = index + 5; while (index0 < 0) {... | private void scrollToPlayingFile() { File file = playlist.getPlayingFile(); DefaultListModel listModel = playlist.getListModel(); if (file == null || listModel == null) { return; } int index = listModel.indexOf(file); if (index != -1) { int index0 = index - 5; int index1 = index + 5; while (index0 < 0) {... | 1,119,238 |
private void scrollToPlayingFile() { File file = playlist.getPlayingFile(); DefaultListModel listModel = playlist.getListModel(); if (file == null || listModel == null) { return; } int index = listModel.indexOf(file); if (index != -1) { int index0 = index - 5; int index1 = index + 5; while (index0 < 0) {... | private void scrollToPlayingFile() { File file = playlist.getPlayingFile(); DefaultListModel listModel = playlist.getListModel(); if (file == null || listModel == null) { return; } int index = listModel.indexOf(file); if (index != -1) { int index0 = index - 5; int index1 = index + 5; while (index0 < 0) {... | 1,119,239 |
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { CalSvcI svc = form.fetchSvci(); form.setSubscriptions(svc.getSubscriptions()); return "success"; ... | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { form.setSubscriptions(svc.getSubscriptions()); return "success"; } | 1,119,240 |
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { CalSvcI svc = form.fetchSvci(); form.setSubscriptions(svc.getSubscriptions()); return "success"; ... | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase form) throws Throwable { CalSvcI svc = form.fetchSvci(); return "success"; } | 1,119,241 |
public boolean checkRead(AccessPrincipal who, String owner, char[] aclChars) throws AccessException { return new Acl(debug).evaluateAccess(who, owner, privSetRead, aclChars); } | public boolean checkRead(AccessPrincipal who, String owner, char[] aclChars) throws AccessException { return new Acl(debug).evaluateAccess(who, owner, privSetRead, aclChars); } | 1,119,242 |
public boolean checkReadWrite(AccessPrincipal who, String owner, char[] aclChars) throws AccessException { return new Acl(debug).evaluateAccess(who, owner, privSetReadWrite, aclChars); } | public boolean checkReadWrite(AccessPrincipal who, String owner, char[] aclChars) throws AccessException { return new Acl(debug).evaluateAccess(who, owner, privSetReadWrite, aclChars); } | 1,119,243 |
public boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, String aclString) throws AccessException { return new Acl(debug).evaluateAccess(who, owner, how, aclString.toCharArray()); } | public boolean evaluateAccess(AccessPrincipal who, String owner, Privilege[] how, String aclString) throws AccessException { return new Acl(debug).evaluateAccess(who, owner, how, aclString.toCharArray()); } | 1,119,244 |
public void setNetworkDCs(NetworkDCOperations[] netdcgiven) { netdc = netdcgiven; channels.clear(); sites.clear(); clearStations(); networks.clear(); for (int i=0; i<netdcgiven.length; i++) { NetworkLoader networkLoader = new NetworkLoader(netdcgiven[i]); if (netdcgiven.le... | public void setNetworkDCs(NetworkDCOperations[] netdcgiven) { netdc = netdcgiven; channels.clear(); sites.clear(); clearStations(); networks.clear(); for (int i=0; i<netdcgiven.length; i++) { NetworkLoader networkLoader = new NetworkLoader(netdcgiven[i]); if ( ! showNetwor... | 1,119,245 |
public static int[][] compressXvalues(LocalSeismogram seismogram, MicroSecondTimeRange timeRange, Dimension size) throws CodecException { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; ... | public static int[][] compressXvalues(LocalSeismogram seismogram, MicroSecondTimeRange timeRange, Dimension size) throws CodecException { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; ... | 1,119,246 |
public static int[][] compressXvalues(LocalSeismogram seismogram, MicroSecondTimeRange timeRange, Dimension size) throws CodecException { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; ... | public static int[][] compressXvalues(LocalSeismogram seismogram, MicroSecondTimeRange timeRange, Dimension size) throws CodecException { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; ... | 1,119,247 |
protected static int[][] compressYvalues(LocalSeismogram seismogram, MicroSecondTimeRange tr, UnitRangeImpl ampRange, Dimension size)throws CodecException { LocalSeismogramImpl ... | protected static int[][] compressYvalues(LocalSeismogram seismogram, MicroSecondTimeRange tr, UnitRangeImpl ampRange, Dimension size)throws CodecException { /*double poi... | 1,119,248 |
protected static int[][] compressYvalues(LocalSeismogram seismogram, MicroSecondTimeRange tr, UnitRangeImpl ampRange, Dimension size)throws CodecException { LocalSeismogramImpl ... | protected static int[][] compressYvalues(LocalSeismogram seismogram, MicroSecondTimeRange tr, UnitRangeImpl ampRange, Dimension size)throws CodecException { LocalSeismogramImpl ... | 1,119,249 |
public static LocalSeismogramImpl createCustomSineWave(){ int[] dataBits = new int[1200]; double tmpDouble; for (int i=0; i<dataBits.length; i++) { dataBits[i] = (int)Math.round(Math.sin(0 + i*Math.PI*1/20.0)*1000); } ... | public static LocalSeismogramImpl createCustomSineWave(){ int[] dataBits = new int[1200]; for (int i=0; i<dataBits.length; i++) { dataBits[i] = (int)Math.round(Math.sin(0 + i*Math.PI*1/20.0)*1000); } return cre... | 1,119,250 |
public static LocalSeismogramImpl createHighSineWave(double phase, double hertz) { int[] dataBits = new int[120]; double tmpDouble; for (int i=0; i<dataBits.length; i++) { dataBits[i] = (int)Math.round(Math.sin(phase + i*Math... | public static LocalSeismogramImpl createHighSineWave(double phase, double hertz) { int[] dataBits = new int[120]; for (int i=0; i<dataBits.length; i++) { dataBits[i] = (int)Math.round(Math.sin(phase + i*Math.PI*hertz/20.0)*1... | 1,119,251 |
public static LocalSeismogramImpl createLowSineWave(double phase, double hertz) { int[] dataBits = new int[120]; double tmpDouble; for (int i=0; i<dataBits.length; i++) { dataBits[i] = (int)Math.round(Math.sin(phase + i*Math.... | public static LocalSeismogramImpl createLowSineWave(double phase, double hertz) { int[] dataBits = new int[120]; for (int i=0; i<dataBits.length; i++) { dataBits[i] = (int)Math.round(Math.sin(phase + i*Math.PI*hertz/20.0)*10... | 1,119,252 |
protected static void scaleYvalues(int[][] comp, LocalSeismogram seismogram, MicroSecondTimeRange tr, UnitRangeImpl ampRange, Dimension size) { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; double yMin = ampRange.getMinValue(); double yMax ... | protected static void scaleYvalues(int[][] comp, LocalSeismogram seismogram, MicroSecondTimeRange tr, UnitRangeImpl ampRange, Dimension size) { double yMin = ampRange.getMinValue(); double yMax = ampRange.getMaxValue(); for( int i =0 ; i < comp[1... | 1,119,253 |
protected List createStyles(View view) { List styles = new ArrayList(); styles.add(NotationFactory.eINSTANCE.createDrawerStyle()); styles.add(NotationFactory.eINSTANCE.createSortingStyle()); styles.add(NotationFactory.eINSTANCE.createFilteringStyle()); return styles; } | protected List createStyles(View view) { List styles = new ArrayList(); styles.add(NotationFactory.eINSTANCE.createSortingStyle()); styles.add(NotationFactory.eINSTANCE.createFilteringStyle()); return styles; } | 1,119,254 |
public void createParticleDisplay(BasicSeismogramDisplay creator, boolean advancedOption){ if(particleAllowed){ if(particleDisplay == null){ particleDisplay = new ParticleMotionDisplay((DataSetSeismogram)creator.getSeismograms()[0], ... | public void createParticleDisplay(BasicSeismogramDisplay creator, boolean advancedOption){ if(particleAllowed){ if(particleDisplay == null){ particleDisplay = new ParticleMotionDisplay(creator.getSeismograms()[0], creator.ge... | 1,119,257 |
public void createParticleDisplay(BasicSeismogramDisplay creator, boolean advancedOption){ if(particleAllowed){ if(particleDisplay == null){ particleDisplay = new ParticleMotionDisplay((DataSetSeismogram)creator.getSeismograms()[0], ... | public void createParticleDisplay(BasicSeismogramDisplay creator, boolean advancedOption){ if(particleAllowed){ if(particleDisplay == null){ particleDisplay = new ParticleMotionDisplay((DataSetSeismogram)creator.getSeismograms()[0], ... | 1,119,258 |
private void initializeResponseWriter(FacesContext ctx) throws FacesException { //check if running in httpservlet environment boolean httpServletEnv = true; if (!(ctx.getExternalContext().getRequest() instanceof HttpServletRequest)) { throw new InternalServerException("Smile currently does not support environment... | private void initializeResponseWriter(FacesContext ctx) throws FacesException { //check if running in httpservlet environment boolean httpServletEnv = true; if (!(ctx.getExternalContext().getRequest() instanceof HttpServletRequest)) { throw new RuntimeException("CbpViewHandler: idegaWeb currently does not support... | 1,119,259 |
private void renderComponent(UIComponent component, FacesContext ctx) { try { component.encodeBegin(ctx); if(component.getRendersChildren()) { component.encodeChildren(ctx); } else { Iterator it; UIComponent currentChild; it = component.getChildren().iterator(); while(it.hasNext()) { currentC... | private void renderComponent(UIComponent component, FacesContext ctx) { try { component.encodeBegin(ctx); if(component.getRendersChildren()) { component.encodeChildren(ctx); } else { Iterator it; UIComponent currentChild; it = component.getChildren().iterator(); while(it.hasNext()) { currentC... | 1,119,260 |
public ParamFilter(String name, boolean isDefined) { this.name = name; this.isDefined = isDefined; } | public ParamFilter(String name, boolean isNotDefined) { this.name = name; this.isDefined = isDefined; } | 1,119,261 |
public ParamFilter(String name, boolean isDefined) { this.name = name; this.isDefined = isDefined; } | public ParamFilter(String name, boolean isDefined) { this.name = name; this.isNotDefined = isNotDefined; } | 1,119,262 |
public void run() { setProgressOwner(this); CacheNetworkAccess cache; logger.debug("Before networks"); if(configuredNetworks == null || configuredNetworks.length == 0) { NetworkAccess[] nets = netdc.a_finder().retrieve_all(); netDCToNetMap.put(netdc, nets); setProgressMax(this, nets.length+1);... | public void run() { setProgressOwner(this); CacheNetworkAccess cache; logger.debug("Before networks"); if(configuredNetworks == null || configuredNetworks.length == 0) { NetworkAccess[] nets = netdc.a_finder().retrieve_all(); netDCToNetMap.put(netdc, nets); setProgressMax(this, nets.length+1);... | 1,119,263 |
public void run() { setProgressOwner(this); setProgressMax(this, 100); logger.debug("There are "+nets.length+" selected networks."); try { synchronized (ChannelChooser.this) { if (this.equals(getStationLoader())) { clearStationsFromThread(); } } int netProgressInc = 50 / nets.length; in... | public void run() { setProgressOwner(this); setProgressMax(this, 100); logger.debug("There are "+nets.length+" selected networks."); try { synchronized (ChannelChooser.this) { if (this.equals(getStationLoader())) { clearStationsFromThread(); } } int netProgressInc = 50 / nets.length; in... | 1,119,264 |
public boolean init(String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException; | public boolean init(String url, String authenticatedUser, String user, boolean publicAdmin, Groups groups, String synchId, boolean debug) throws CalFacadeException; | 1,119,265 |
protected void initIndexFile() throws IOException { char q = '"'; File index = new File(directory, "index.html"); BufferedWriter out = new BufferedWriter(new FileWriter(index)); writeln(out, "<html>"); writeln(out, " <head>"); writeln(out, " <title>Errors</title>"); ... | protected void initIndexFile() throws IOException { char q = '"'; File index = new File(directory, "index.html"); BufferedWriter out = new BufferedWriter(new FileWriter(index)); writeln(out, "<html>"); writeln(out, " <head>"); writeln(out, " <title>Errors</title>"); ... | 1,119,267 |
public void report(String message, Throwable e, List sections) throws IOException{ int cur = GlobalExceptionHandler.getNumHandled(); File outFile = new File(directory, "Exception_"+cur+".html"); appendToIndexFile(outFile, e); BufferedWriter bw = new BufferedWriter(new FileWriter(outFile)... | public void report(String message, Throwable e, List sections) throws IOException{ int cur = GlobalExceptionHandler.getNumHandled(); File outFile = new File(directory, "Exception_"+cur+".html"); appendToIndexFile(outFile, e); BufferedWriter bw = new BufferedWriter(new FileWriter(outFile)... | 1,119,268 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.