bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public String toString() { StringBuffer sb = new StringBuffer("CalSvcIPars{"); sb.append("authUser="); sb.append(getAuthUser()); sb.append(", rights="); sb.append(getRights()); sb.append(", user="); sb.append(getUser()); sb.append(", publicAdmin="); sb.append(getPublicAdmin()); sb.append... | public String toString() { StringBuffer sb = new StringBuffer("CalSvcIPars{"); sb.append("authUser="); sb.append(getAuthUser()); sb.append(", rights="); sb.append(getRights()); sb.append(", user="); sb.append(getUser()); sb.append(", publicAdmin="); sb.append(getPublicAdmin()); sb.append... | 1,118,811 |
public int indexOf(URL url) { int size = list.size(); for (int i = 0; i < size; i++) { ItemWrapper iw = (ItemWrapper)list.get(i); if (iw.isVisible() && iw.getURL().equals(url)) { return i; } } return -1; } | public int indexOf(URL url) { int size = list.size(); for (int i = 0, j = 0; i < size; i++) { ItemWrapper iw = (ItemWrapper)list.get(i); if (iw.isVisible() && iw.getURL().equals(url)) { return i; } } return -1; } | 1,118,812 |
public int indexOf(URL url) { int size = list.size(); for (int i = 0; i < size; i++) { ItemWrapper iw = (ItemWrapper)list.get(i); if (iw.isVisible() && iw.getURL().equals(url)) { return i; } } return -1; } | public int indexOf(URL url) { int size = list.size(); for (int i = 0; i < size; i++) { ItemWrapper iw = (ItemWrapper)list.get(i); if (iw.isVisible() && iw.getURL().equals(url)) { return i; } } return -1; } | 1,118,813 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | 1,118,814 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | 1,118,815 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | 1,118,816 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | 1,118,817 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | 1,118,818 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | 1,118,819 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | 1,118,820 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | 1,118,821 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | 1,118,822 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | 1,118,823 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.t... | 1,118,824 |
public void setBottomScaleMapper(ScaleMapper scaleMap) { this.bottomScaleMap = scaleMap; bottom = 20; } | public void setBottomScaleMapper(ScaleMapper scaleMap) { this.bottomScaleMap = scaleMap; if(scaleMap.getAxisLabel() != null && !scaleMap.getAxisLabel().equals("")){ bottom = 20 + getFontHeight(scaleMap.getAxisLabel()); }else{ bottom = 20; } } | 1,118,825 |
public void setLeftScaleMapper(ScaleMapper scaleMap) { this.leftScaleMap = scaleMap; if(scaleMap.getAxisLabel() != null && !scaleMap.getAxisLabel().equals("")){ LineMetrics lm = DisplayUtils.BORDER_FONT.getLineMetrics(scaleMap.getAxisLabel(), ... | public void setLeftScaleMapper(ScaleMapper scaleMap) { this.leftScaleMap = scaleMap; if(scaleMap.getAxisLabel() != null && !scaleMap.getAxisLabel().equals("")){ LineMetrics lm = DisplayUtils.BORDER_FONT.getLineMetrics(scaleMap.getAxisLabel(), ... | 1,118,826 |
public void setTopScaleMapper(ScaleMapper scaleMap) { this.topScaleMap = scaleMap; if(scaleMap.getAxisLabel() != null && !scaleMap.getAxisLabel().equals("")){ LineMetrics lm = DisplayUtils.BORDER_FONT.getLineMetrics(scaleMap.getAxisLabel(), ... | public void setTopScaleMapper(ScaleMapper scaleMap) { this.topScaleMap = scaleMap; if(scaleMap.getAxisLabel() != null && !scaleMap.getAxisLabel().equals("")){ LineMetrics lm = DisplayUtils.BORDER_FONT.getLineMetrics(scaleMap.getAxisLabel(), ... | 1,118,827 |
public CalintfHelper(Calintf cal, AccessUtil access, BwUser user, int currentMode, boolean ignoreCreator, boolean debug) { this.cal = cal; this.access = access; this.user = user; this.currentMode = currentMode; this.ignoreCreator = ignoreCreator; this.deb... | public CalintfHelper(Calintf cal, AccessUtil access, int currentMode, boolean ignoreCreator, boolean debug) { this.cal = cal; this.access = access; this.user = user; this.currentMode = currentMode; this.ignoreCreator = ignoreCreator; this.debug = debug; ... | 1,118,828 |
public CalintfHelper(Calintf cal, AccessUtil access, BwUser user, int currentMode, boolean ignoreCreator, boolean debug) { this.cal = cal; this.access = access; this.user = user; this.currentMode = currentMode; this.ignoreCreator = ignoreCreator; this.deb... | public CalintfHelper(Calintf cal, AccessUtil access, BwUser user, int currentMode, boolean ignoreCreator, boolean debug) { this.cal = cal; this.access = access; this.currentMode = currentMode; this.ignoreCreator = ignoreCreator; this.debug = debug; } | 1,118,829 |
public void saveSeismogramToDatabase(ChannelId channelId, LocalSeismogramImpl seis, String fileLocation, SeismogramFileTypes filetype) throws SQLException { // Get absolute file ... | public void saveSeismogramToDatabase(ChannelId channelId, LocalSeismogramImpl seis, String fileLocation, SeismogramFileTypes filetype) throws SQLException, IOException { int channel_id ... | 1,118,830 |
public void saveSeismogramToDatabase(ChannelId channelId, LocalSeismogramImpl seis, String fileLocation, SeismogramFileTypes filetype) throws SQLException { // Get absolute file ... | public void saveSeismogramToDatabase(ChannelId channelId, LocalSeismogramImpl seis, String fileLocation, SeismogramFileTypes filetype) throws SQLException { // Get absolute file ... | 1,118,831 |
public RT130ToLocalSeismogram() { this.ncFile = null; this.stationLocations = null; } | public RT130ToLocalSeismogram() { this.ncFile = null; this.stationLocations = null; } | 1,118,832 |
public void reset(){ Iterator e = ampData.keySet().iterator(); while(e.hasNext()){ ((AmpConfigData)e.next()).reset(); } fireAmpEvent(); } | public void reset(){ Iterator e = ampData.keySet().iterator(); while(e.hasNext()){ ((AmpConfigData)e.next()).reset(); } fireAmpEvent(); } | 1,118,833 |
public synchronized void stop() { if (player != null) { player.stop(); } } | public synchronized void stop() { if (player != null) { player.close(); player = null; } } | 1,118,834 |
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } /** Set the objects to null so we get new ones. */ form.initFie... | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { /** Check access */ if (!form.getAuthorisedUser()) { return "noAccess"; } /** Set the objects to null so we get new ones. */ initFields(f... | 1,118,838 |
private BwCalendar cloneAndCheckOne(BwCalendar subroot, int desiredAccess, boolean nullForNoAccess) throws CalFacadeException { CurrentAccess ca = access.checkAccess(subroot, desiredAccess, nullForNoAccess); if (!ca.accessAllowed) { re... | private BwCalendar cloneAndCheckOne(BwCalendar subroot, int desiredAccess, boolean nullForNoAccess) throws CalFacadeException { CurrentAccess ca = access.checkAccess(subroot, desiredAccess, nullForNoAccess); if (!ca.accessAllowed) { re... | 1,118,839 |
public MicroSecondTimeRange(MicroSecondDate time, MicroSecondDate anotherTime){ if(time.before(anotherTime){ this.beginTime = time; this.endTime = anotherTime; }else{ | public MicroSecondTimeRange(MicroSecondDate time, MicroSecondDate anotherTime){ if(time.before(anotherTime)){ this.beginTime = time; this.endTime = anotherTime; }else{ | 1,118,840 |
public CalSvcTestWrapper(String user, int access, boolean publicEvents, boolean debug) throws Throwable { super(); //this.debug = debug; isPublic = publicEvents; this.user = user; CalSvcIPars pars = new CalSvcIPars(user, acce... | public CalSvcTestWrapper(String user, int access, boolean publicEvents, boolean debug) throws Throwable { super(); //this.debug = debug; isPublic = publicEvents; this.user = user; CalSvcIPars pars = new CalSvcIPars(user, acce... | 1,118,842 |
public void copyTo(BwShareableContainedDbentity val) { super.copyTo(val); val.setCalendar((BwCalendar)getCalendar().clone()); } | public void copyTo(BwShareableContainedDbentity val) { super.copyTo(val); val.setCalendar((BwCalendar)getCalendar().shallowClone()); } | 1,118,843 |
public static IslamicChronology getInstance(DateTimeZone zone) { return getInstance(zone, LEAP_YEAR_16_BASED); } | public static IslamicChronology getInstance(DateTimeZone zone) { return getInstance(zone, LEAP_YEAR_16_BASED); } | 1,118,845 |
private String tryCal(HttpServletRequest request, BwActionFormBase form) throws Throwable { CalSvcI svci = form.fetchSvci(); String url = getReqPar(request, "calUrl"); if (url == null) { return null; } BwCalendar cal = findCalendar(url, form); if (cal == null) { form... | private String tryCal(HttpServletRequest request, BwActionFormBase form) throws Throwable { CalSvcI svci = form.fetchSvci(); String url = getReqPar(request, "calUrl"); if (url == null) { return null; } BwCalendar cal = findCalendar(url, form); if (cal == null) { form... | 1,118,846 |
private String trySub(HttpServletRequest request, BwActionFormBase form) throws Throwable { CalSvcI svci = form.fetchSvci(); String name = getReqPar(request, "subname"); if (name == null) { return null; } BwSubscription sub = svci.findSubscription(name); if (sub == null) ... | private String trySub(HttpServletRequest request, BwActionFormBase form) throws Throwable { CalSvcI svci = form.fetchSvci(); String name = getReqPar(request, "subname"); if (name == null) { return null; } BwSubscription sub = svci.findSubscription(name); if (sub == null) ... | 1,118,847 |
protected static int[][] compressYvalues(LocalSeismogram seismogram, TimePlotConfig config, Dimension size)throws UnsupportedDataEncoding { int[][] uncomp = scaleXvalues(seismogram, config, size); // enough points to take the extra time to compress the line int[][] comp = new int[... | protected static int[][] compressYvalues(LocalSeismogram seismogram, TimePlotConfig config, Dimension size)throws UnsupportedDataEncoding { int[][] uncomp = scaleXvalues(seismogram, config, size); // enough points to take the extra time to compress the line int[][] comp = new int[... | 1,118,848 |
protected static int[][] compressYvalues(LocalSeismogram seismogram, TimePlotConfig config, Dimension size)throws UnsupportedDataEncoding { int[][] uncomp = scaleXvalues(seismogram, config, size); // enough points to take the extra time to compress the line int[][] comp = new int[... | protected static int[][] compressYvalues(LocalSeismogram seismogram, TimePlotConfig config, Dimension size)throws UnsupportedDataEncoding { int[][] uncomp = scaleXvalues(seismogram, config, size); // enough points to take the extra time to compress the line int[][] comp = new int[... | 1,118,849 |
public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase frm) throws Throwable { PEActionForm form = (PEActionForm)frm; /* CalEnv env = getEnv(frm); / * Set some options from th... | public String doAction(HttpServletRequest request, HttpServletResponse response, BwSession sess, BwActionFormBase frm) throws Throwable { PEActionForm form = (PEActionForm)frm; /* CalEnv env = getEnv(frm); / * Set some options from th... | 1,118,850 |
public DataRecord getNextRecord() throws SeedFormatException, IOException { if (current == null) { throw new EOFException("Cannot read past end of file list"); } try { DataRecord d = current.getNextRecord(); numReadTotal++; return d; } c... | public DataRecord getNextRecord() throws SeedFormatException, IOException { if (current == null) { throw new EOFException("Cannot read past end of file list"); } try { DataRecord d = current.getNextRecord(); numReadTotal++; return d; } c... | 1,118,851 |
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.Stereotype2EditPart.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(Stereotype2EditPart.VISUAL_ID); view.setType(semanticHint); } super.decorateView(containerView, view,... | 1,118,853 |
public Selection (MicroSecondTimeRange range, SeismogramDisplay parent, Color color){ // tc needs to be the same class as the parents time config incase it is a relative time config Class dispTimeConfigClass = parent.getTimeConfig().getClass(); if(parent.getTimeConfig() instanceof RTTim... | public Selection (MicroSecondTimeRange range, SeismogramDisplay parent, Color color){ // tc needs to be the same class as the parents time config incase it is a relative time config Class dispTimeConfigClass = parent.getTimeConfig().getClass(); if(parent.getTimeConfig() instanceof RTTim... | 1,118,854 |
public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { CalSvcI svci = form.getCalSvcI(); boolean alerts = form.getAlertEvent(); /** Check access and set request parameters */ if (alerts) { if (!form.... | public String doAction(HttpServletRequest request, BwSession sess, PEActionForm form) throws Throwable { CalSvcI svci = form.getCalSvcI(); boolean alerts = form.getAlertEvent(); /** Check access and set request parameters */ if (alerts) { if (!form.... | 1,118,856 |
public boolean equals(Object o){ if(o == this){ return true; } else if (getEventAccess() != null && o instanceof CacheEvent && ((CacheEvent)o).getEventAccess() != null) { return getEventAccess().equals(((CacheEvent)o).getEventAccess()); }else if(o ... | public boolean equals(Object o){ if(o == this){ return true; } else if (getEventAccess() != null && o instanceof CacheEvent && ((CacheEvent)o).getEventAccess() != null) { return getEventAccess().equals(((CacheEvent)o).getEventAccess()); }else if(o ... | 1,118,857 |
public Collection getFreeBusy(InputStreamReader in) throws Throwable { return trans.fromIcal(null, in); } | public Collection getFreeBusy(Reader in) throws Throwable { return trans.fromIcal(null, in); } | 1,118,858 |
public void decode(char[] val) throws AccessException { TreeSet ts = new TreeSet(); setEncoded(val); if (empty()) { defaultAccess(); } else { while (hasMore()) { Ace ace = new Ace(); ace.decode(this, true); ts.add(ace); } aces = ts; } } | public void decode(char[] val) throws AccessException { TreeSet ts = new TreeSet(); setEncoded(val); if (empty()) { defaultAccess(); } else { while (hasMore()) { Ace ace = new Ace(); ace.decode(this, true); ts.add(ace); } aces = ts; } } | 1,118,859 |
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { // Just ignore this return "doNothing"; } String reqpar = request.getParameter("updateLocation"); if (reqpar != null) { return updateLocation(request, form... | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { // Just ignore this return "doNothing"; } String reqpar = request.getParameter("updateLocation"); if (reqpar != null) { return updateLocation(request, form... | 1,118,860 |
private boolean setAmpRange(DataSetSeismogram seismo){ AmpConfigData data = (AmpConfigData)ampData.get(seismo); LocalSeismogramImpl seis = (LocalSeismogramImpl)seismo.getSeismogram(); int[] seisIndex = DisplayUtils.getSeisPoints(seis, data.getTime()); if(seisIndex[0] == seisIndex[1]) { ... | private boolean setAmpRange(DataSetSeismogram seismo){ AmpConfigData data = (AmpConfigData)ampData.get(seismo); LocalSeismogramImpl seis = (LocalSeismogramImpl)seismo.getSeismogram(); int[] seisIndex = DisplayUtils.getSeisPoints(seis, data.getTime()); if(seisIndex[1] < 0 || seisIndex[0] ... | 1,118,861 |
private boolean setAmpRange(DataSetSeismogram seismo){ AmpConfigData data = (AmpConfigData)ampData.get(seismo); LocalSeismogramImpl seis = (LocalSeismogramImpl)seismo.getSeismogram(); int[] seisIndex = DisplayUtils.getSeisPoints(seis, data.getTime()); if(seisIndex[0] == seisIndex[1]) { ... | private boolean setAmpRange(DataSetSeismogram seismo){ AmpConfigData data = (AmpConfigData)ampData.get(seismo); LocalSeismogramImpl seis = (LocalSeismogramImpl)seismo.getSeismogram(); int[] seisIndex = DisplayUtils.getSeisPoints(seis, data.getTime()); if(seisIndex[0] == seisIndex[1]) { ... | 1,118,862 |
private boolean setAmpRange(DataSetSeismogram seismo){ AmpConfigData data = (AmpConfigData)ampData.get(seismo); LocalSeismogramImpl seis = (LocalSeismogramImpl)seismo.getSeismogram(); int[] seisIndex = DisplayUtils.getSeisPoints(seis, data.getTime()); if(seisIndex[0] == seisIndex[1]) { ... | private boolean setAmpRange(DataSetSeismogram seismo){ AmpConfigData data = (AmpConfigData)ampData.get(seismo); LocalSeismogramImpl seis = (LocalSeismogramImpl)seismo.getSeismogram(); int[] seisIndex = DisplayUtils.getSeisPoints(seis, data.getTime()); if(seisIndex[0] == seisIndex[1]) { ... | 1,118,863 |
public ATObject base_setValue(ATObject newValue) throws NATException { ATObject result = base_getFieldValue(); frame_.meta_assignField(name_, newValue); return result; } | public ATObject base_setValue(ATObject newValue) throws NATException { ATObject result = base_getValue(); frame_.meta_assignField(name_, newValue); return result; } | 1,118,864 |
public ActionForward resetSubProjPkgOptions( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { DynaActionForm dynaForm = (DynaActionForm) form; String projectId = ((String) dynaForm.get(UMLBrowser... | public ActionForward resetSubProjPkgOptions( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { DynaActionForm dynaForm = (DynaActionForm) form; String projectId = ((String) dynaForm.get(UMLBrowser... | 1,118,865 |
public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } synchronized(omgraphics){ Iterator it = omgraphics.iterator(); List stationsUnderMouse = new ArrayList(); while(it.... | public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } synchronized(omgraphics){ Iterator it = omgraphics.iterator(); while(it.hasNext()){ OMStation curre... | 1,118,866 |
public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } synchronized(omgraphics){ Iterator it = omgraphics.iterator(); List stationsUnderMouse = new ArrayList(); while(it.... | public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } synchronized(omgraphics){ Iterator it = omgraphics.iterator(); List stationsUnderMouse = new ArrayList(); while(it.... | 1,118,867 |
public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } synchronized(omgraphics){ Iterator it = omgraphics.iterator(); List stationsUnderMouse = new ArrayList(); while(it.... | public boolean mouseClicked(MouseEvent e){ if (currentPopup != null){ currentPopup.setVisible(false); currentPopup = null; } synchronized(omgraphics){ Iterator it = omgraphics.iterator(); List stationsUnderMouse = new ArrayList(); while(it.... | 1,118,868 |
public void actionPerformed(ActionEvent e) { synchronized(chooser){ chooser.toggleStationSelected(current); } popup.setVisib... | public void actionPerformed(ActionEvent e) { synchronized(chooser){ chooser.toggleStationSelected(current); } popup.setVisib... | 1,118,870 |
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { // Just ignore this return "doNothing"; } BwEvent ev = form.getNewEvent(); if (ev == null) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); ... | public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { if (form.getGuest()) { // Just ignore this return "doNothing"; } BwEvent ev = form.getNewEvent(); if (ev == null) { return "doNothing"; } CalSvcI svci = form.fetchSvci(); ... | 1,118,871 |
public ATNil meta_assignField(ATSymbol name, ATObject value) throws NATException { String jSelector = null; try{ jSelector = Reflection.upMetaFieldMutationSelector(name); JavaInterfaceAdaptor.invokeJavaMethod( principal_.getClass(), principal_, jSelector, new ATObject[] { value.asMirror().base_... | public ATNil meta_assignField(ATSymbol name, ATObject value) throws NATException { String jSelector = null; try{ jSelector = Reflection.upMetaFieldMutationSelector(name); JavaInterfaceAdaptor.invokeJavaMethod( principal_.getClass(), principal_, jSelector, new ATObject[] { value.asMirror().base_... | 1,118,872 |
public ATObject meta_invoke(ATObject receiver, ATSymbol atSelector, ATTable arguments) throws NATException { String jSelector = Reflection.upMetaLevelSelector(atSelector); try { return NATMirrorFactory._INSTANCE_.base_createMirror( Reflection.downObject( Reflection.upInvocation( principal_, // ... | public ATObject meta_invoke(ATObject receiver, ATSymbol atSelector, ATTable arguments) throws NATException { String jSelector = Reflection.upMetaLevelSelector(atSelector); try { return NATMirrorFactory._INSTANCE_.base_createMirror( Reflection.downObject( Reflection.upInvocation( principal_, // ... | 1,118,873 |
public ATObject meta_select(ATObject receiver, ATSymbol atSelector) throws NATException { String jSelector = null; try { jSelector = Reflection.upMetaFieldAccessSelector(atSelector); return NATMirrorFactory._INSTANCE_.base_createMirror( Reflection.downObject( Reflection.upFieldSelection( prin... | public ATObject meta_select(ATObject receiver, ATSymbol atSelector) throws NATException { String jSelector = null; try { jSelector = Reflection.upMetaFieldAccessSelector(atSelector); return NATMirrorFactory._INSTANCE_.base_createMirror( Reflection.downObject( Reflection.upFieldSelection( prin... | 1,118,874 |
public boolean validate(MessageEmit err) { goodValue = true; if (!getShow()) { return true; } String val = getValue(); if (val != null) { // set as string val = val.toLowerCase(); if (val.equals("false") || val.equals("no")) { booleanVal = false; } else if (val.equals("t... | public boolean validate(MessageEmit err) { goodValue = true; if (!getShow()) { return true; } String val = getValue(); if (val != null) { // set as string val = val.toLowerCase(); if (val.equals("false") || val.equals("no")) { booleanVal = false; } else if (val.equals("t... | 1,118,875 |
public void testQuotation() throws NATException { evalAndCompareTo("`(3)", atThree_); evalAndCompareTo("`(x)", atX_); evalAndCompareTo("`(def x := 3)", "def x := 3"); evalAndCompareTo("`(def x := `(3))", "def x := `(3)"); evalAndCompareTo("`(def x := #(3))", "def x := 3"); evalAndCompareTo("`(def foo(a) { #([1,2... | public void testQuotation() throws NATException { evalAndCompareTo("`(3)", atThree_); evalAndCompareTo("`(x)", atX_); evalAndCompareTo("`(def x := 3)", "def x := 3"); evalAndCompareTo("`(def x := `(3))", "def x := `(3)"); evalAndCompareTo("`(def x := #(3))", "def x := 3"); evalAndCompareTo("`(def foo(a) { #([1,2... | 1,118,876 |
public void createParticleDisplay(BasicSeismogramDisplay creator, boolean advancedOption){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(particleWindowName); particleDisplay = new ParticleMotionDisplay((DataSetSeismogram)creator.getSeismograms().getF... | public void createParticleDisplay(BasicSeismogramDisplay creator, boolean advancedOption){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(particleWindowName); particleDisplay = new ParticleMotionDisplay((DataSetSeismogram)creator.getSeismograms().getF... | 1,118,877 |
public void windowClosing(WindowEvent e) { particleWindow.dispose(); particleDisplay = null; } | public void windowClosing(WindowEvent e) { particleWindow.dispose(); particleDisplay = null; } | 1,118,878 |
public void windowClosing(WindowEvent e) { threeSelectionDisplay.removeAll(); } | public void windowClosing(WindowEvent e) { selectionDisplay.removeAll(); } | 1,118,879 |
public Synchml(String account, String deviceId, URIgen uriGen, boolean debug) throws CalFacadeException { svci = new CalSvc(); this.deviceId = deviceId; this.debug = debug; CalSvcIPars pars = new CalSvcIPars(account, UserAuth.noPrivileges, ... | public Synchml(String account, String deviceId, URIgen uriGen, boolean debug) throws CalFacadeException { svci = new CalSvc(); this.deviceId = deviceId; this.debug = debug; CalSvcIPars pars = new CalSvcIPars(account, account, ... | 1,118,881 |
public void close() { try { close(svci); } catch (Throwable t) { } } | public void close() { try { trans.close(); } catch (Throwable t) { } } | 1,118,882 |
private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = infoset.getAll().iterator(); CalDavClient cd = new CalDavClient(debug); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui)... | 1,118,883 |
private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { FBUserInfo ui = (FBUserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.por... | 1,118,884 |
private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | 1,118,885 |
private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | 1,118,886 |
private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | 1,118,887 |
private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | 1,118,888 |
private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | 1,118,889 |
private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | 1,118,890 |
private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | private Collection getFreeBusy(Date start, Date end) throws Throwable { ArrayList responses = new ArrayList(); Iterator it = uiList.iterator(); while (it.hasNext()) { UserInfo ui = (UserInfo)it.next(); Req r = makeFreeBusyRequest(start, end, ui); CaldavClientIo cio = getCio(ui.host, ui.port); ... | 1,118,891 |
private void init() throws Throwable { /* addUser(new UserInfo("testuser01", "bedework", "douglm", "localhost", 8080, false, "/ucaldav/user/douglm")); addUser(new UserInfo("testuser01", "bedework", "johnsa", "localhost", 8080, false, ... | private void init() throws Throwable { /* addUser(new UserInfo("testuser01", "bedework", "douglm", "localhost", 8080, false, "/ucaldav/user/douglm")); addUser(new UserInfo("testuser01", "bedework", "johnsa", "localhost", 8080, false, ... | 1,118,892 |
public static void main(String[] args) { FreeBusyAggregator fba = new FreeBusyAggregator(); try { fba.init(); Calendar cal = Calendar.getInstance(); cal.add(Calendar.WEEK_OF_YEAR, 1); Collection responses = fba.getFreeBusy(new Date(), cal.getTime()); fba.close(); Iterator it = resp... | public static void main(String[] args) { FreeBusyAggregator fba = new FreeBusyAggregator(); try { fba.init(); Calendar cal = Calendar.getInstance(); cal.add(Calendar.WEEK_OF_YEAR, 1); Collection responses = fba.getFreeBusy(new Date(), cal.getTime()); fba.close(); Iterator it = resp... | 1,118,893 |
public static void main(String[] args) { FreeBusyAggregator fba = new FreeBusyAggregator(); try { fba.init(); Calendar cal = Calendar.getInstance(); cal.add(Calendar.WEEK_OF_YEAR, 1); Collection responses = fba.getFreeBusy(new Date(), cal.getTime()); fba.close(); Iterator it = resp... | public static void main(String[] args) { FreeBusyAggregator fba = new FreeBusyAggregator(); try { fba.init(); Calendar cal = Calendar.getInstance(); cal.add(Calendar.WEEK_OF_YEAR, 1); Collection responses = fba.getFreeBusy(new Date(), cal.getTime()); fba.close(); Iterator it = resp... | 1,118,894 |
private Req makeFreeBusyRequest(Date start, Date end, UserInfo ui) throws Throwable { Req req; if (ui.authUser == null) { req = new Req(); } else { req = new Req(ui.authUser, ui.authPw); } req.setUrl(ui.url); req.setContentType("text/xml"); req.setMethod("REPORT"); req.addHeader("Dep... | private Req makeFreeBusyRequest(Date start, Date end, FBUserInfo ui) throws Throwable { Req req; if (ui.authUser == null) { req = new Req(); } else { req = new Req(ui.authUser, ui.authPw); } req.setUrl(ui.url); req.setContentType("text/xml"); req.setMethod("REPORT"); req.addHeader("D... | 1,118,895 |
private Req makeFreeBusyRequest(Date start, Date end, UserInfo ui) throws Throwable { Req req; if (ui.authUser == null) { req = new Req(); } else { req = new Req(ui.authUser, ui.authPw); } req.setUrl(ui.url); req.setContentType("text/xml"); req.setMethod("REPORT"); req.addHeader("Dep... | private Req makeFreeBusyRequest(Date start, Date end, UserInfo ui) throws Throwable { Req req; if (ui.getAuthUser() == null) { req = new Req(); } else { req = new Req(ui.authUser, ui.authPw); } req.setUrl(ui.url); req.setContentType("text/xml"); req.setMethod("REPORT"); req.addHeader... | 1,118,896 |
private Req makeFreeBusyRequest(Date start, Date end, UserInfo ui) throws Throwable { Req req; if (ui.authUser == null) { req = new Req(); } else { req = new Req(ui.authUser, ui.authPw); } req.setUrl(ui.url); req.setContentType("text/xml"); req.setMethod("REPORT"); req.addHeader("Dep... | private Req makeFreeBusyRequest(Date start, Date end, UserInfo ui) throws Throwable { Req req; if (ui.authUser == null) { req = new Req(); } else { req = new Req(ui.getAuthUser(), ui.getAuthPw()); } req.setUrl(ui.url); req.setContentType("text/xml"); req.setMethod("REPORT"); req.addH... | 1,118,897 |
private Req makeFreeBusyRequest(Date start, Date end, UserInfo ui) throws Throwable { Req req; if (ui.authUser == null) { req = new Req(); } else { req = new Req(ui.authUser, ui.authPw); } req.setUrl(ui.url); req.setContentType("text/xml"); req.setMethod("REPORT"); req.addHeader("Dep... | private Req makeFreeBusyRequest(Date start, Date end, UserInfo ui) throws Throwable { Req req; if (ui.authUser == null) { req = new Req(); } else { req = new Req(ui.authUser, ui.authPw); } req.setUrl(ui.getUrl()); req.setContentType("text/xml"); req.setMethod("REPORT"); req.addHeader... | 1,118,898 |
public static LocalSeismogramImpl apply(LocalSeismogramImpl seis, Instrumentation inst) throws FissuresException { if(!isValid(inst)) { throw new IllegalArgumentException("Invalid instrumentation for " + ChannelIdUtil.toStrin... | public static LocalSeismogramImpl apply(LocalSeismogramImpl seis, Instrumentation inst) throws FissuresException { if(!isValid(inst)) { throw new IllegalArgumentException("Invalid instrumentation for " + ChannelIdUtil.toStrin... | 1,118,899 |
public ProfileConfiguration() { super(new GridLayout(1, 1)); setBorder(new TitledBorder("Profile")); JPanel connectionPanel = new JPanel(new GridLayout(8, 1)); addServerAndPort(connectionPanel); addSSL(connectionPanel); addPassword(connectionPanel); addNickname(connectionPanel); addUsername(connectionPanel);... | public ProfileConfiguration() { super(new GridLayout(1, 1)); setBorder(new TitledBorder("Profile")); JPanel connectionPanel = new JPanel(new GridLayout(8, 1)); addServerAndPort(connectionPanel); addSSL(connectionPanel); addPassword(connectionPanel); addNickname(connectionPanel); addUsername(connectionPanel);... | 1,118,900 |
public void actionPerformed(ActionEvent e) { if (profile != null) { profile.setServer(server.getText()); try { int p = Integer.parseInt(port.getText()); profile.setPort(p); } catch (Exception exc) { ExceptionDialog.show(exc); } profile.setSSL(ssl.isSelected()); profile.setPa... | public void actionPerformed(ActionEvent e) { if (profile != null) { profile.setServer(server.getText()); try { int p = Integer.parseInt(port.getText()); profile.setPort(p); } catch (Exception exc) { ExceptionDialog.show(exc); } profile.setSSL(ssl.isSelected()); profile.setPa... | 1,118,901 |
public Object merge(Object one, Object two) { LocalSeismogramImpl seis = (LocalSeismogramImpl)one; LocalSeismogramImpl seis2 = (LocalSeismogramImpl)two; MicroSecondTimeRange fullRange = new MicroSecondTimeRange(toMSTR(seis), ... | public Object merge(Object one, Object two) { LocalSeismogramImpl seis = (LocalSeismogramImpl)one; LocalSeismogramImpl seis2 = (LocalSeismogramImpl)two; MicroSecondTimeRange fullRange = new MicroSecondTimeRange(toMSTR(seis), ... | 1,118,902 |
public Object merge(Object one, Object two) { LocalSeismogramImpl seis = (LocalSeismogramImpl)one; LocalSeismogramImpl seis2 = (LocalSeismogramImpl)two; MicroSecondTimeRange fullRange = new MicroSecondTimeRange(toMSTR(seis), ... | public Object merge(Object one, Object two) { LocalSeismogramImpl seis = (LocalSeismogramImpl)one; LocalSeismogramImpl seis2 = (LocalSeismogramImpl)two; MicroSecondTimeRange fullRange = new MicroSecondTimeRange(toMSTR(seis), ... | 1,118,903 |
public void addSelection(Selection newSelection){ if(!getSelections().contains(newSelection)){ getSelections().add(newSelection); selectionCount++; repaint(); } } | public void addSelection(Selection newSelection){ if(!getSelections().contains(newSelection)){ getSelections().add(newSelection); selectionCount++; repaint(); } } | 1,118,904 |
public void clear3CSelections(){ get3CSelections().clear(); selection3CCount = 0; repaint(); } | public void clear3CSelections(){ get3CSelections().clear(); selection3CCount = 0; repaint(); } | 1,118,905 |
public void clearRegSelections(){ getSelections().clear(); selectionCount = 0; repaint(); } | public void clearRegSelections(){ getSelections().clear(); selectionCount = 0; repaint(); } | 1,118,906 |
public void clearSelections(){ parent.removeSelectionDisplay(); parent.remove3CSelectionDisplay(); repaint(); } | public void clearSelections(){ parent.removeSelectionDisplay(); parent.remove3CSelectionDisplay(); repaint(); } | 1,118,907 |
public java.util.List getSelections(){ return plotters.subList(plotters.size() - selectionCount - selection3CCount, plotters.size() - selection3CCount); } | public java.util.List getSelections(){ return plotters.subList(plotters.size() - selectionCount - selection3CCount, plotters.size()); } | 1,118,908 |
public void removeSelection(Selection oldSelection){ if(getSelections().remove(oldSelection)){ selectionCount--; repaint(); } } | public void removeSelection(Selection oldSelection){ if(getSelections().remove(oldSelection)){ selectionCount--; repaint(); } } | 1,118,909 |
public void update(ConfigEvent event){ update++; currentTimeEvent = event.getTimeEvent(); currentAmpEvent = event.getAmpEvent(); repaint(); } | public void update(ConfigEvent event){ currentTimeEvent = event.getTimeEvent(); currentAmpEvent = event.getAmpEvent(); repaint(); } | 1,118,910 |
public void updateAmp(AmpEvent event){ update++; currentAmpEvent = event; repaint(); } | public void updateAmp(AmpEvent event){ currentAmpEvent = event; repaint(); } | 1,118,911 |
public void updateTime(TimeEvent event){ update++; currentTimeEvent = event; repaint(); } | public void updateTime(TimeEvent event){ currentTimeEvent = event; repaint(); } | 1,118,912 |
public Map mergeAttributes(final Map dest, final Map source) { if (dest == null) throw new IllegalArgumentException("toModify cannot be null"); if (source == null) throw new IllegalArgumentException("toConsider cannot be null"); final Map sourceCopy = new HashMap(s... | public Map mergeAttributes(final Map dest, final Map source) { if (dest == null) throw new IllegalArgumentException("toModify cannot be null"); if (source == null) throw new IllegalArgumentException("toConsider cannot be null"); final Map sourceCopy = new HashMap(s... | 1,118,914 |
public Map mergeAttributes(final Map dest, final Map source) { if (dest == null) throw new IllegalArgumentException("toModify cannot be null"); if (source == null) throw new IllegalArgumentException("toConsider cannot be null"); final Map sourceCopy = new HashMap(s... | public Map mergeAttributes(final Map dest, final Map source) { if (dest == null) throw new IllegalArgumentException("toModify cannot be null"); if (source == null) throw new IllegalArgumentException("toConsider cannot be null"); final Map sourceCopy = new HashMap(s... | 1,118,915 |
public Set getPossibleUserAttributeNames() { if (this.backingMap == null) { return null; } return Collections.unmodifiableSet(this.backingMap.keySet()); } | public Set getPossibleUserAttributeNames() { if (this.backingMap == null) { return Collections.EMPTY_SET; } return Collections.unmodifiableSet(this.backingMap.keySet()); } | 1,118,916 |
public void run() { Station station; while ( ! quitThread) { logger.debug("in station checker"); station = null; try { station = getToCheck(); logger.debug("Checking Station available data for "+ ... | public void run() { Station station; while ( ! quitThread) { station = null; try { station = getToCheck(); logger.debug("Checking Station available data for "+ StationIdU... | 1,118,918 |
public void run() { Station station; while ( ! quitThread) { logger.debug("in station checker"); station = null; try { station = getToCheck(); logger.debug("Checking Station available data for "+ ... | public void run() { Station station; while ( ! quitThread) { logger.debug("in station checker"); station = null; try { station = getToCheck(); logger.debug("Checking Station available data for "+ ... | 1,118,919 |
public void run() { Station station; while ( ! quitThread) { logger.debug("in station checker"); station = null; try { station = getToCheck(); logger.debug("Checking Station available data for "+ ... | public void run() { Station station; while ( ! quitThread) { logger.debug("in station checker"); station = null; try { station = getToCheck(); logger.debug("Checking Station available data for "+ ... | 1,118,920 |
public void run() { Station station; while ( ! quitThread) { logger.debug("in station checker"); station = null; try { station = getToCheck(); logger.debug("Checking Station available data for "+ ... | public void run() { Station station; while ( ! quitThread) { logger.debug("in station checker"); station = null; try { station = getToCheck(); logger.debug("Checking Station available data for "+ ... | 1,118,921 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.