bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
protected BeanContextSupport.BCSChild createBCSChild (Object targetChild, Object peer) throws NotImplementedException { throw new Error ("Not implemented"); } | protected BeanContextSupport.BCSChild createBCSChild (Object targetChild, Object peer) { throw new Error ("Not implemented"); } | 31,183 |
protected BeanContextSupport.BCSChild createBCSChild (Object targetChild, Object peer) throws NotImplementedException { throw new Error ("Not implemented"); } | protected BeanContextSupport.BCSChild createBCSChild (Object targetChild, Object peer) throws NotImplementedException { return new BCSChild(targetChild, peer); } | 31,184 |
protected final void fireChildrenAdded (BeanContextMembershipEvent bcme) throws NotImplementedException { throw new Error ("Not implemented"); } | protected final void fireChildrenAdded (BeanContextMembershipEvent bcme) { throw new Error ("Not implemented"); } | 31,185 |
protected final void fireChildrenAdded (BeanContextMembershipEvent bcme) throws NotImplementedException { throw new Error ("Not implemented"); } | protected final void fireChildrenAdded (BeanContextMembershipEvent bcme) throws NotImplementedException { synchronized (bcmListeners) { Iterator it = bcmListeners.iterator(); while (it.hasNext()) { BeanContextMembershipListener l = (BeanContextMembershipListener) it.next(); l.childrenAdded(bcme); } } } | 31,186 |
protected final void fireChildrenRemoved (BeanContextMembershipEvent bcme) throws NotImplementedException { throw new Error ("Not implemented"); } | protected final void fireChildrenRemoved (BeanContextMembershipEvent bcme) { throw new Error ("Not implemented"); } | 31,187 |
protected final void fireChildrenRemoved (BeanContextMembershipEvent bcme) throws NotImplementedException { throw new Error ("Not implemented"); } | protected final void fireChildrenRemoved (BeanContextMembershipEvent bcme) throws NotImplementedException { synchronized (bcmListeners) { Iterator it = bcmListeners.iterator(); while (it.hasNext()) { BeanContextMembershipListener l = (BeanContextMembershipListener) it.next(); l.childrenRemoved(bcme); } } } | 31,188 |
public URL getResource (String name, BeanContextChild bcc) throws NotImplementedException { throw new Error ("Not implemented"); } | public URL getResource (String name, BeanContextChild bcc) { throw new Error ("Not implemented"); } | 31,189 |
public URL getResource (String name, BeanContextChild bcc) throws NotImplementedException { throw new Error ("Not implemented"); } | public URL getResource (String name, BeanContextChild bcc) throws NotImplementedException { if (! contains(bcc)) throw new IllegalArgumentException("argument not a child"); ClassLoader loader = bcc.getClass().getClassLoader(); return (loader == null ? ClassLoader.getSystemResource(name) : loader.getResource(na... | 31,190 |
public InputStream getResourceAsStream (String name, BeanContextChild bcc) throws NotImplementedException { throw new Error ("Not implemented"); } | public InputStream getResourceAsStream (String name, BeanContextChild bcc) { throw new Error ("Not implemented"); } | 31,191 |
public InputStream getResourceAsStream (String name, BeanContextChild bcc) throws NotImplementedException { throw new Error ("Not implemented"); } | public InputStream getResourceAsStream (String name, BeanContextChild bcc) throws NotImplementedException { if (! contains(bcc)) throw new IllegalArgumentException("argument not a child"); ClassLoader loader = bcc.getClass().getClassLoader(); return (loader == null ? ClassLoader.getSystemResourceAsStream(name)... | 31,192 |
public boolean isDesignTime () throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean isDesignTime () { throw new Error ("Not implemented"); } | 31,193 |
public boolean isDesignTime () throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean isDesignTime () throws NotImplementedException { return designTime; } | 31,194 |
public boolean isEmpty () throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean isEmpty () { throw new Error ("Not implemented"); } | 31,195 |
public boolean isEmpty () throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean isEmpty () throws NotImplementedException { synchronized (children) { return children.isEmpty(); } } | 31,196 |
public void removeBeanContextMembershipListener (BeanContextMembershipListener bcml) throws NotImplementedException { throw new Error ("Not implemented"); } | public void removeBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); } | 31,198 |
public void removeBeanContextMembershipListener (BeanContextMembershipListener bcml) throws NotImplementedException { throw new Error ("Not implemented"); } | public void removeBeanContextMembershipListener (BeanContextMembershipListener bcml) throws NotImplementedException { synchronized (bcmListeners) { bcmListeners.remove(bcml); } } | 31,199 |
public void setDesignTime (boolean dtime) throws NotImplementedException { throw new Error ("Not implemented"); } | public void setDesignTime (boolean dtime) { throw new Error ("Not implemented"); } | 31,200 |
public void setDesignTime (boolean dtime) throws NotImplementedException { throw new Error ("Not implemented"); } | public void setDesignTime (boolean dtime) throws NotImplementedException { boolean save = designTime; designTime = dtime; firePropertyChange(DesignMode.PROPERTYNAME, Boolean.valueOf(save), Boolean.valueOf(dtime)); } | 31,201 |
public void setLocale (Locale newLocale) throws PropertyVetoException, NotImplementedException { throw new Error ("Not implemented"); } | public void setLocale (Locale newLocale) throws PropertyVetoException { throw new Error ("Not implemented"); } | 31,202 |
public void setLocale (Locale newLocale) throws PropertyVetoException, NotImplementedException { throw new Error ("Not implemented"); } | public void setLocale (Locale newLocale) throws PropertyVetoException, NotImplementedException { if (newLocale == null || locale == newLocale) return; fireVetoableChange("locale", locale, newLocale); Locale oldLocale = locale; locale = newLocale; firePropertyChange("locale", oldLocale, newLocale); } | 31,203 |
public int size () throws NotImplementedException { throw new Error ("Not implemented"); } | public int size () { throw new Error ("Not implemented"); } | 31,204 |
public int size () throws NotImplementedException { throw new Error ("Not implemented"); } | public int size () throws NotImplementedException { synchronized (children) { return children.size(); } } | 31,205 |
protected boolean validatePendingAdd (Object targetChild) throws NotImplementedException { throw new Error ("Not implemented"); } | protected boolean validatePendingAdd (Object targetChild) { throw new Error ("Not implemented"); } | 31,207 |
protected boolean validatePendingAdd (Object targetChild) throws NotImplementedException { throw new Error ("Not implemented"); } | protected boolean validatePendingAdd (Object targetChild) throws NotImplementedException { return true; } | 31,208 |
protected boolean validatePendingRemove (Object targetChild) throws NotImplementedException { throw new Error ("Not implemented"); } | protected boolean validatePendingRemove (Object targetChild) { throw new Error ("Not implemented"); } | 31,209 |
protected boolean validatePendingRemove (Object targetChild) throws NotImplementedException { throw new Error ("Not implemented"); } | protected boolean validatePendingRemove (Object targetChild) throws NotImplementedException { return true; } | 31,210 |
public BeanContextMembershipEvent(BeanContext context, Object[] children) { super(context); this.children = Arrays.asList(children); } | public BeanContextMembershipEvent(BeanContext context, Collection children) { super(context); this.children = Arrays.asList(children); } | 31,211 |
public BeanContextMembershipEvent(BeanContext context, Object[] children) { super(context); this.children = Arrays.asList(children); } | public BeanContextMembershipEvent(BeanContext context, Object[] children) { super(context); this.children = children; } | 31,212 |
public static void generateAbsoluteBox(LayoutContext c, Content content, LineBox currentLine) { Rectangle oe = c.getExtents();// copy the extents for safety c.setExtents(new Rectangle(oe)); Box box = Boxing.layout(c, content); box.setContainingBlock(c.getLayer().getMaster()); box.... | public static void generateAbsoluteBox(LayoutContext c, Content content, LineBox currentLine) { Rectangle oe = c.getExtents();// copy the extents for safety c.setExtents(new Rectangle(oe)); Box box = Boxing.layout(c, content); box.setContainingBlock(c.getLayer().getMaster()); box.... | 31,213 |
public static CellBox layoutCell(Context c, CellBox block, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | public static CellBox layoutCell(Context c, CellBox block, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 31,215 |
public static CellBox layoutCell(Context c, CellBox block, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | public static CellBox layoutCell(Context c, CellBox block, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 31,216 |
public ConsumerState(SessionState parent, ConsumerDelegate delegate, Destination dest, String selector, boolean noLocal, String consumerID, boolean isCC) { super(parent, delegate); children = Collections.EMPTY_SET; this.destination = dest; this.selector = selector; t... | public ConsumerState(SessionState parent, ConsumerDelegate delegate, Destination dest, String selector, boolean noLocal, int consumerID, boolean isCC) { super(parent, delegate); children = Collections.EMPTY_SET; this.destination = dest; this.selector = selector; this... | 31,219 |
public String getConsumerID() { return consumerID; } | public int getConsumerID() { return consumerID; } | 31,220 |
public void setUp() throws Exception { super.setUp(); ms = new PagingMessageStore("in-memory-store0"); ref = ms.reference(MessageFactory.createCoreMessage(0)); observer = new SimpleDeliveryObserver(); } | public void setUp() throws Exception { super.setUp(); ms = new SimpleMessageStore("in-memory-store0"); ref = ms.reference(MessageFactory.createCoreMessage(0)); observer = new SimpleDeliveryObserver(); } | 31,221 |
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | 31,223 |
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | 31,224 |
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | 31,225 |
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | 31,226 |
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | 31,227 |
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | 31,228 |
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | 31,229 |
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | 31,230 |
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("b... | public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("b... | 31,231 |
public static void paintBackground(Context c, Box box, Rectangle bounds) { Box block = box; // cache the background color //no sense getBackgroundColor(c); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty(CSS... | public static void paintBackground(Context c, Box box, Rectangle bounds) { Box block = box; // cache the background color //no sense getBackgroundColor(c); // get the css properties CalculatedStyle style = box.getStyle().getCalculatedStyle(); String back_image = style.getSt... | 31,232 |
public static void paintBackground(Context c, Box box, Rectangle bounds) { Box block = box; // cache the background color //no sense getBackgroundColor(c); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty(CSS... | public static void paintBackground(Context c, Box box, Rectangle bounds) { Box block = box; // cache the background color //no sense getBackgroundColor(c); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty(CSS... | 31,233 |
public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box.DONE) { height += c.getCanvas().getHeight(); } Border margin = block.getMarginWidth(); Rectangle boun... | public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box.DONE) { height += c.getCanvas().getHeight(); } Border margin = block.getStyle().getMarginWidth(); Rec... | 31,234 |
public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box.DONE) { height += c.getCanvas().getHeight(); } Border margin = block.getMarginWidth(); Rectangle boun... | public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box.DONE) { height += c.getCanvas().getHeight(); } Border margin = block.getMarginWidth(); Rectangle boun... | 31,235 |
public static void paintRelative(Context ctx, Box block, boolean restyle) { Relative.translateRelative(ctx, true); paintNormal(ctx, block, restyle); Relative.untranslateRelative(ctx, true); } | public static void paintRelative(Context ctx, Box block, boolean restyle) { Relative.translateRelative(ctx, block.getStyle().getCalculatedStyle(), true); paintNormal(ctx, block, restyle); Relative.untranslateRelative(ctx, true); } | 31,236 |
public static void paintRelative(Context ctx, Box block, boolean restyle) { Relative.translateRelative(ctx, true); paintNormal(ctx, block, restyle); Relative.untranslateRelative(ctx, true); } | public static void paintRelative(Context ctx, Box block, boolean restyle) { Relative.translateRelative(ctx, true); paintNormal(ctx, block, restyle); Relative.untranslateRelative(ctx, block.getStyle().getCalculatedStyle(), true); } | 31,237 |
protected Document createDefaultModel() { return new PlainDocument(); } | protected Document createDefaultModel() { PlainDocument doc = new PlainDocument(); doc.putProperty("filterNewlines", Boolean.TRUE); return doc; } | 31,238 |
public void putProperty(Object key, Object value) { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); properties.put(key, value); } | public final void putProperty(Object key, Object value) { // FIXME: make me thread-safe if (properties == null) properties = new Hashtable(); properties.put(key, value); } | 31,239 |
public void createPDF(OutputStream os) throws DocumentException { List pages = _root.getLayer().getPages(); RenderingContext c = newRenderingContext(); PageBox firstPage = (PageBox)pages.get(0); com.lowagie.text.Rectangle firstPageSize = new com.lowagie.text.Rectangle( ... | public void createPDF(OutputStream os) throws DocumentException { List pages = _root.getLayer().getPages(); RenderingContext c = newRenderingContext(); PageBox firstPage = (PageBox)pages.get(0); com.lowagie.text.Rectangle firstPageSize = new com.lowagie.text.Rectangle( ... | 31,240 |
void setEscapeProcessing(boolean enable) throws SQLException; | void setEscapeProcessing(boolean escape) throws SQLException; | 31,241 |
void setFetchSize(int rows) throws SQLException; | void setFetchSize(int numRows) throws SQLException; | 31,242 |
void setMaxFieldSize(int max) throws SQLException; | void setMaxFieldSize(int maxSize) throws SQLException; | 31,243 |
void setMaxRows(int max) throws SQLException; | void setMaxRows(int maxRows) throws SQLException; | 31,244 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("ul { background... | 31,245 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | 31,246 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | 31,247 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | 31,248 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | 31,249 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | 31,250 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | 31,251 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | 31,252 |
public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | public static String list(File file) { StringBuffer sb = new StringBuffer(); sb.append("<html>"); sb.append("<head>"); sb.append("<title>Directory listing of "); sb.append(file.getPath()); sb.append("</title>"); sb.append("<style>"); sb.append("table { backgro... | 31,253 |
public void tearDown() throws Exception { producerConnection.close(); consumerConnection.close(); ServerManagement.undeployQueue("Queue"); ServerManagement.deInit(); super.tearDown(); } | public void tearDown() throws Exception { producerConnection.close(); consumerConnection.close(); ServerManagement.undeployQueue("Queue"); super.tearDown(); } | 31,255 |
public void stateChanged(ChangeEvent event) { JScrollBar vsb = scrollpane.getVerticalScrollBar(); JViewport vp = scrollpane.getViewport(); Point viewPosition = vp.getViewPosition(); int ypos = vsb.getValue(); if (ypos != viewPosition.x) { viewPosition.y = ypos; v... | public void stateChanged(ChangeEvent event) { JScrollBar vsb = scrollpane.getVerticalScrollBar(); JViewport vp = scrollpane.getViewport(); Point viewPosition = vp.getViewPosition(); int ypos = vsb.getValue(); if (ypos != viewPosition.y) { viewPosition.y = ypos; v... | 31,256 |
public void stateChanged(ChangeEvent event) { JViewport vp = scrollpane.getViewport(); JScrollBar hsb = scrollpane.getHorizontalScrollBar(); JScrollBar vsb = scrollpane.getVerticalScrollBar(); Dimension extents = vp.getExtentSize(); if (extents.width != hsb.getModel().getExtent() ... | public void stateChanged(ChangeEvent event) { JViewport vp = scrollpane.getViewport(); JScrollBar hsb = scrollpane.getHorizontalScrollBar(); JScrollBar vsb = scrollpane.getVerticalScrollBar(); Dimension extents = vp.getExtentSize(); if (extents.width != hsb.getModel().getExtent() ... | 31,257 |
protected void syncScrollPaneWithViewport() { JViewport vp = scrollpane.getViewport(); JScrollBar vsb = scrollpane.getVerticalScrollBar(); JScrollBar hsb = scrollpane.getHorizontalScrollBar(); hsb.getModel().setExtent(vp.getExtentSize().width); vsb.getModel().setExtent(vp.getExtentSize().height); } | protected void syncScrollPaneWithViewport() { JViewport vp = scrollpane.getViewport(); JScrollBar vsb = scrollpane.getVerticalScrollBar(); JScrollBar hsb = scrollpane.getHorizontalScrollBar(); hsb.getModel().setExtent(vp.getExtentSize().width); vsb.getModel().setExtent(vp.getExtentSize().height); } | 31,259 |
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String ejbLocation = (String) args.get(AbstractWorkflow.EJB_LOCATION); Register sessionBean = null; try { EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(n... | public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args, PropertySet ps) throws WorkflowException { String ejbLocation = (String) args.get(AbstractWorkflow.EJB_LOCATION); Register sessionBean = null; try { EJBLocalHome home = (EJBLocalHome) PortableRemot... | 31,261 |
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String ejbLocation = (String) args.get(AbstractWorkflow.EJB_LOCATION); Register sessionBean = null; try { EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(n... | public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String ejbLocation = (String) args.get(AbstractWorkflow.EJB_LOCATION); Register sessionBean; try { EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(new Init... | 31,262 |
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String ejbLocation = (String) args.get(AbstractWorkflow.EJB_LOCATION); Register sessionBean = null; try { EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(n... | public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException { String ejbLocation = (String) args.get(AbstractWorkflow.EJB_LOCATION); Register sessionBean = null; try { EJBLocalHome home = (EJBLocalHome) PortableRemoteObject.narrow(n... | 31,263 |
private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil... | private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil... | 31,264 |
private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil... | private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil... | 31,265 |
private static Box layout(LayoutContext c, Box block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } Rectangle oe = c.getE... | private static Box layout(LayoutContext c, Box block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } Rectangle oe = c.getE... | 31,266 |
protected BrowserJob createDefaultBrowserJob(String destName) { return new BrowserJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, numMessages, System.currentTimeMillis() + 10000, null); } | protected BrowserJob createDefaultBrowserJob(String destName) { return new BrowserJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, numMessages, null); } | 31,267 |
protected ReceiverJob createDefaultReceiverJob(String destName) { return new ReceiverJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, false, 0, numMessages, System.currentTimeMillis() + 10000, Session.AUTO_ACKNOWLEDGE, null, null, false, false, null); } | protected ReceiverJob createDefaultReceiverJob(String destName) { return new ReceiverJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, false, 0, numMessages, Session.AUTO_ACKNOWLEDGE, null, null, false, false, null); } | 31,268 |
protected SenderJob createDefaultSenderJob(String destName) { return new SenderJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, false, 0, numMessages, System.currentTimeMillis() + 20000, false, standardMessageSize, new TextMessageMessageFactory(), ... | protected SenderJob createDefaultSenderJob(String destName) { return new SenderJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, false, 0, numMessages, false, standardMessageSize, new TextMessageMessageFactory(), DeliveryMode.NON_PERSISTENT, 0); ... | 31,269 |
protected SenderJob createDefaultSenderJob(String destName) { return new SenderJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, false, 0, numMessages, System.currentTimeMillis() + 20000, false, standardMessageSize, new TextMessageMessageFactory(), ... | protected SenderJob createDefaultSenderJob(String destName) { return new SenderJob(slaveURLs[0], jndiProperties, destName, connectionFactoryJndiName, 1, 1, false, 0, numMessages, System.currentTimeMillis() + 20000, false, standardMessageSize, new TextMessageMessageFactory(), ... | 31,270 |
protected boolean drainQueue(String queueName) { Job drainJob = createDefaultDrainJob(queueName); JobResult res = runJob(drainJob); if (res.failed) { log.error("Failed to drain queue", res.throwables[0]); return false; } return true; } | protected void drainQueue(String queueName) throws PerfException { Job drainJob = createDefaultDrainJob(queueName); JobResult res = runJob(drainJob); if (res.failed) { log.error("Failed to drain queue", res.throwables[0]); return false; } return true; } | 31,271 |
protected boolean drainQueue(String queueName) { Job drainJob = createDefaultDrainJob(queueName); JobResult res = runJob(drainJob); if (res.failed) { log.error("Failed to drain queue", res.throwables[0]); return false; } return true; } | protected boolean drainQueue(String queueName) { Job drainJob = createDefaultDrainJob(queueName); JobResult res = runJob(drainJob); if (res.failed) { log.error("Failed to drain queue", res.throwables[0]); return false; } return true; } | 31,272 |
protected boolean drainSubscription(String topicName, String subName, String clientID) { DrainJob drainJob = createDefaultDrainJob(topicName); drainJob.setClientID(clientID); drainJob.setSubName(subName); JobResult res = runJob(drainJob); if (res.failed) { log.error("Fai... | protected void drainSubscription(String topicName, String subName, String clientID) throws PerfException { DrainJob drainJob = createDefaultDrainJob(topicName); drainJob.setClientID(clientID); drainJob.setSubName(subName); JobResult res = runJob(drainJob); if (res.failed) { ... | 31,273 |
protected boolean drainSubscription(String topicName, String subName, String clientID) { DrainJob drainJob = createDefaultDrainJob(topicName); drainJob.setClientID(clientID); drainJob.setSubName(subName); JobResult res = runJob(drainJob); if (res.failed) { log.error("Fai... | protected boolean drainSubscription(String topicName, String subName, String clientID) { DrainJob drainJob = createDefaultDrainJob(topicName); drainJob.setClientID(clientID); drainJob.setSubName(subName); JobResult res = runJob(drainJob); if (res.failed) { log.error("Fai... | 31,274 |
public static void main(String[] args) { new PerfRunner().run(); } | public static void main(String[] args) { try { new PerfRunner().run(); } catch (PerfException e) { log.error("Failed to run perf tests", e.getCause()); } } | 31,275 |
public void run() { setUp(); //Only need to do once - junit does for every test testQueue1(); testQueue2(); testQueue3(); testQueue4(); testQueue5(); testQueue6(); testQueue7(); testQueue8(); testQueue9(); testQueue10(); testQueue11(); testQueu... | public void run() throws PerfException { setUp(); //Only need to do once - junit does for every test testQueue1(); testQueue2(); testQueue3(); testQueue4(); testQueue5(); testQueue6(); testQueue7(); testQueue8(); testQueue9(); testQueue10(); testQue... | 31,276 |
public void run() { setUp(); //Only need to do once - junit does for every test testQueue1(); testQueue2(); testQueue3(); testQueue4(); testQueue5(); testQueue6(); testQueue7(); testQueue8(); testQueue9(); testQueue10(); testQueue11(); testQueu... | public void run() { setUp(); //Only need to do once - junit does for every test testQueue1(); testQueue2(); testQueue3(); testQueue4(); testQueue5(); testQueue6(); testQueue7(); testQueue8(); testQueue9(); testQueue10(); testQueue11(); testQueu... | 31,277 |
protected JobResult runJob(Job job) { if (local) { job.run(); return job.getResult(); } else { return sendRequestToSlave(job.getSlaveURL(), new RunRequest(job)); } } | protected JobResult runJob(Job job) throws PerfException { if (local) { job.run(); return job.getResult(); } else { return sendRequestToSlave(job.getSlaveURL(), new RunRequest(job)); } } | 31,279 |
protected JobResult runJob(Job job) { if (local) { job.run(); return job.getResult(); } else { return sendRequestToSlave(job.getSlaveURL(), new RunRequest(job)); } } | protected JobResult runJob(Job job) { if (local) { job.run(); return job.getResult(); } else { return sendRequestToSlave(job.getSlaveURL(), new RunRequest(job)); } } | 31,280 |
protected JobResult runJob(Job job) { if (local) { job.run(); return job.getResult(); } else { return sendRequestToSlave(job.getSlaveURL(), new RunRequest(job)); } } | protected JobResult runJob(Job job) { if (local) { job.run(); return job.getResult(); } else { sendRequestToSlave(job.getSlaveURL(), new SubmitJobRequest(job)); return sendRequestToSlave(job.getSlaveURL(), new ExecuteJobRequest(job.getId())); } } | 31,281 |
protected JobResult[] runJobs(Job[] jobs) { JobRunner[] runners = new JobRunner[jobs.length]; for (int i = 0; i < jobs.length; i++) { runners[i] = new JobRunner(jobs[i]); Thread t = new Thread(runners[i]); runners[i].thread = t; t.start(); } for ... | protected JobResult[] runJobs(Job[] jobs) throws PerfException { JobRunner[] runners = new JobRunner[jobs.length]; for (int i = 0; i < jobs.length; i++) { runners[i] = new JobRunner(jobs[i]); Thread t = new Thread(runners[i]); runners[i].thread = t; t.start(); ... | 31,282 |
protected JobResult[] runJobs(Job[] jobs) { JobRunner[] runners = new JobRunner[jobs.length]; for (int i = 0; i < jobs.length; i++) { runners[i] = new JobRunner(jobs[i]); Thread t = new Thread(runners[i]); runners[i].thread = t; t.start(); } for ... | protected JobResult[] runJobs(Job[] jobs) { JobInitializer[] initializers = new JobInitializer[jobs.length]; for (int i = 0; i < jobs.length; i++) { runners[i] = new JobRunner(jobs[i]); Thread t = new Thread(runners[i]); runners[i].thread = t; t.start(); } ... | 31,283 |
protected JobResult[] runJobs(Job[] jobs) { JobRunner[] runners = new JobRunner[jobs.length]; for (int i = 0; i < jobs.length; i++) { runners[i] = new JobRunner(jobs[i]); Thread t = new Thread(runners[i]); runners[i].thread = t; t.start(); } for ... | protected JobResult[] runJobs(Job[] jobs) { JobRunner[] runners = new JobRunner[jobs.length]; for (int i = 0; i < jobs.length; i++) { initializers[i] = new JobInitializer(jobs[i]); Thread t = new Thread(initializers[i]); initializers[i].thread = t; t.start(); } for (int i = 0; i < job... | 31,284 |
protected void runMessageTypeJob(Execution execution, MessageFactory mf, String messageType, int type) { SenderJob sender = createDefaultSenderJob(queueName); sender.setNumMessages(numMessages); sender.setMsgSize(4096); sender.setMf(mf); sender.setTransacted(false); sender.setDe... | protected void runMessageTypeJob(Execution execution, MessageFactory mf, String messageType, int type) throws PerfException { SenderJob sender = createDefaultSenderJob(queueName); sender.setNumMessages(numMessages); sender.setMsgSize(4096); sender.setMf(mf); sender.setTransacted(fals... | 31,285 |
protected void runMessageTypeJob(Execution execution, MessageFactory mf, String messageType, int type) { SenderJob sender = createDefaultSenderJob(queueName); sender.setNumMessages(numMessages); sender.setMsgSize(4096); sender.setMf(mf); sender.setTransacted(false); sender.setDe... | protected void runMessageTypeJob(Execution execution, MessageFactory mf, String messageType, int type) { SenderJob sender = createDefaultSenderJob(queueName); sender.setNumMessages(numMessages); sender.setMsgSize(4096); sender.setMf(mf); sender.setTransacted(false); sender.setDe... | 31,286 |
protected JobResult sendRequestToSlave(String slaveURL, ServerRequest request) { try { InvokerLocator locator = new InvokerLocator(slaveURL); Client client = new Client(locator, "perftest"); Object res = client.invoke(request); return (JobResult)... | protected JobResult sendRequestToSlave(String slaveURL, ServerRequest request) throws PerfException { try { InvokerLocator locator = new InvokerLocator(slaveURL); Client client = new Client(locator, "perftest"); Object res = client.invoke(request); ... | 31,287 |
protected JobResult sendRequestToSlave(String slaveURL, ServerRequest request) { try { InvokerLocator locator = new InvokerLocator(slaveURL); Client client = new Client(locator, "perftest"); Object res = client.invoke(request); return (JobResult)... | protected JobResult sendRequestToSlave(String slaveURL, ServerRequest request) { try { InvokerLocator locator = new InvokerLocator(slaveURL); Client client = new Client(locator, "perftest"); Object res = client.invoke(request); return (JobResult)... | 31,288 |
protected JobResult sendRequestToSlave(String slaveURL, ServerRequest request) { try { InvokerLocator locator = new InvokerLocator(slaveURL); Client client = new Client(locator, "perftest"); Object res = client.invoke(request); return (JobResult)... | protected JobResult sendRequestToSlave(String slaveURL, ServerRequest request) { try { InvokerLocator locator = new InvokerLocator(slaveURL); Client client = new Client(locator, "perftest"); Object res = client.invoke(request); return (JobResult)... | 31,289 |
public void testMessageTypes() { log.info("Running test MessageTypes"); Execution execution = createExecution("MessageTypes"); runMessageTypeJob(execution, new MessageMessageFactory(), "javax.jms.Message", 1); runMessageTypeJob(execution, new BytesMessageMessageFactory(), "javax.jms... | public void testMessageTypes() throws PerfException { log.info("Running test MessageTypes"); Execution execution = createExecution("MessageTypes"); runMessageTypeJob(execution, new MessageMessageFactory(), "javax.jms.Message", 1); runMessageTypeJob(execution, new BytesMessageMessage... | 31,290 |
public void testQueue1() { try { log.info("Running test Queue1"); SenderJob sender = createDefaultSenderJob(queueName); sender.setNumMessages(numMessages); sender.setMsgSize(standardMessageSize); sender.setMf(new TextMessageMessageFactory()); sende... | public void testQueue1() throws PerfException { try { log.info("Running test Queue1"); SenderJob sender = createDefaultSenderJob(queueName); sender.setNumMessages(numMessages); sender.setMsgSize(standardMessageSize); sender.setMf(new TextMessageMessageFact... | 31,291 |
public void testQueue1() { try { log.info("Running test Queue1"); SenderJob sender = createDefaultSenderJob(queueName); sender.setNumMessages(numMessages); sender.setMsgSize(standardMessageSize); sender.setMf(new TextMessageMessageFactory()); sende... | public void testQueue1() { try { log.info("Running test Queue1"); SenderJob sender = createDefaultSenderJob(queueName); sender.setNumMessages(numMessages); sender.setMsgSize(standardMessageSize); sender.setMf(new TextMessageMessageFactory()); sende... | 31,292 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.