bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
BCSIterator() { } | BCSIterator(Iterator child) { } | 48,217 |
public boolean hasNext () throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean hasNext () { throw new Error ("Not implemented"); } | 48,219 |
public boolean hasNext () throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean hasNext () throws NotImplementedException { return child.hasNext(); } | 48,220 |
public Object next () throws NotImplementedException { throw new Error ("Not implemented"); } | public Object next () { throw new Error ("Not implemented"); } | 48,221 |
public Object next () throws NotImplementedException { throw new Error ("Not implemented"); } | public Object next () throws NotImplementedException { return child.next(); } | 48,222 |
public boolean add (Object targetChild) { if (targetChild == null) throw new IllegalArgumentException(); if (children.containsKey(targetChild)) return false; // FIXME: The second argument is surely wrong. children.put(targetChild, targetChild); return true; } | public boolean add (Object targetChild) { if (targetChild == null) throw new IllegalArgumentException(); BCSChild child; synchronized (children) { if (children.containsKey(targetChild) || ! validatePendingAdd(targetChild)) return false; // FIXME: The second argument is surely wrong. children.pu... | 48,223 |
public boolean add (Object targetChild) { if (targetChild == null) throw new IllegalArgumentException(); if (children.containsKey(targetChild)) return false; // FIXME: The second argument is surely wrong. children.put(targetChild, targetChild); return true; } | public boolean add (Object targetChild) { if (targetChild == null) throw new IllegalArgumentException(); if (children.containsKey(targetChild)) return false; // FIXME: The second argument is surely wrong. child = createBCSChild(targetChild, beanContextChildPeer); children.put(targetChild, child);... | 48,224 |
protected Iterator bcsChildren () throws NotImplementedException { throw new Error ("Not implemented"); } | protected Iterator bcsChildren () { throw new Error ("Not implemented"); } | 48,227 |
protected Iterator bcsChildren () throws NotImplementedException { throw new Error ("Not implemented"); } | protected Iterator bcsChildren () throws NotImplementedException { synchronized (children) { return new BCSIterator(children.values().iterator()); } } | 48,228 |
protected void childJustAddedHook (Object child, BeanContextSupport.BCSChild bcsc) throws NotImplementedException { throw new Error ("Not implemented"); } | protected void childJustAddedHook (Object child, BeanContextSupport.BCSChild bcsc) { throw new Error ("Not implemented"); } | 48,229 |
protected void childJustAddedHook (Object child, BeanContextSupport.BCSChild bcsc) throws NotImplementedException { throw new Error ("Not implemented"); } | protected void childJustAddedHook (Object child, BeanContextSupport.BCSChild bcsc) throws NotImplementedException { } | 48,230 |
protected void childJustRemovedHook (Object child, BeanContextSupport.BCSChild bcsc) throws NotImplementedException { throw new Error ("Not implemented"); } | protected void childJustRemovedHook (Object child, BeanContextSupport.BCSChild bcsc) { throw new Error ("Not implemented"); } | 48,231 |
protected void childJustRemovedHook (Object child, BeanContextSupport.BCSChild bcsc) throws NotImplementedException { throw new Error ("Not implemented"); } | protected void childJustRemovedHook (Object child, BeanContextSupport.BCSChild bcsc) throws NotImplementedException { } | 48,232 |
protected static final boolean classEquals (Class first, Class second) throws NotImplementedException { throw new Error ("Not implemented"); } | protected static final boolean classEquals (Class first, Class second) { throw new Error ("Not implemented"); } | 48,233 |
protected static final boolean classEquals (Class first, Class second) throws NotImplementedException { throw new Error ("Not implemented"); } | protected static final boolean classEquals (Class first, Class second) throws NotImplementedException { return (first == second || first.getName().equals(second.getName())); } | 48,234 |
public void clear () { // This is probably the right thing to do. // The JDK docs are really bad here. throw new UnsupportedOperationException(); } | public void clear () { // This is probably the right thing to do. // The JDK docs are really bad here. throw new UnsupportedOperationException(); } | 48,235 |
public boolean contains (Object o) throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean contains (Object o) { throw new Error ("Not implemented"); } | 48,236 |
public boolean contains (Object o) throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean contains (Object o) throws NotImplementedException { synchronized (children) { return children.containsKey(o); } } | 48,237 |
public boolean containsAll (Collection c) throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean containsAll (Collection c) { throw new Error ("Not implemented"); } | 48,238 |
public boolean containsAll (Collection c) throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean containsAll (Collection c) throws NotImplementedException { synchronized (children) { Iterator it = c.iterator(); while (it.hasNext()) if (! children.containsKey(it.next())) return false; } return true; } | 48,239 |
public boolean containsKey (Object o) throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean containsKey (Object o) { throw new Error ("Not implemented"); } | 48,240 |
public boolean containsKey (Object o) throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean containsKey (Object o) throws NotImplementedException { synchronized (children) { return children.containsKey(o); } } | 48,241 |
protected final Object[] copyChildren () throws NotImplementedException { throw new Error ("Not implemented"); } | protected final Object[] copyChildren () { throw new Error ("Not implemented"); } | 48,242 |
protected final Object[] copyChildren () throws NotImplementedException { throw new Error ("Not implemented"); } | protected final Object[] copyChildren () throws NotImplementedException { synchronized (children) { return children.keySet().toArray(); } } | 48,243 |
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"); } | 48,244 |
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); } | 48,245 |
protected final void fireChildrenAdded (BeanContextMembershipEvent bcme) throws NotImplementedException { throw new Error ("Not implemented"); } | protected final void fireChildrenAdded (BeanContextMembershipEvent bcme) { throw new Error ("Not implemented"); } | 48,246 |
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); } } } | 48,247 |
protected final void fireChildrenRemoved (BeanContextMembershipEvent bcme) throws NotImplementedException { throw new Error ("Not implemented"); } | protected final void fireChildrenRemoved (BeanContextMembershipEvent bcme) { throw new Error ("Not implemented"); } | 48,248 |
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); } } } | 48,249 |
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"); } | 48,250 |
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... | 48,251 |
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"); } | 48,252 |
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)... | 48,253 |
public boolean isDesignTime () throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean isDesignTime () { throw new Error ("Not implemented"); } | 48,254 |
public boolean isDesignTime () throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean isDesignTime () throws NotImplementedException { return designTime; } | 48,255 |
public boolean isEmpty () throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean isEmpty () { throw new Error ("Not implemented"); } | 48,256 |
public boolean isEmpty () throws NotImplementedException { throw new Error ("Not implemented"); } | public boolean isEmpty () throws NotImplementedException { synchronized (children) { return children.isEmpty(); } } | 48,257 |
public void removeBeanContextMembershipListener (BeanContextMembershipListener bcml) throws NotImplementedException { throw new Error ("Not implemented"); } | public void removeBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); } | 48,260 |
public void removeBeanContextMembershipListener (BeanContextMembershipListener bcml) throws NotImplementedException { throw new Error ("Not implemented"); } | public void removeBeanContextMembershipListener (BeanContextMembershipListener bcml) throws NotImplementedException { synchronized (bcmListeners) { bcmListeners.remove(bcml); } } | 48,261 |
public void setDesignTime (boolean dtime) throws NotImplementedException { throw new Error ("Not implemented"); } | public void setDesignTime (boolean dtime) { throw new Error ("Not implemented"); } | 48,263 |
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)); } | 48,264 |
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"); } | 48,265 |
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); } | 48,266 |
public int size () throws NotImplementedException { throw new Error ("Not implemented"); } | public int size () { throw new Error ("Not implemented"); } | 48,267 |
public int size () throws NotImplementedException { throw new Error ("Not implemented"); } | public int size () throws NotImplementedException { synchronized (children) { return children.size(); } } | 48,268 |
protected boolean validatePendingAdd (Object targetChild) throws NotImplementedException { throw new Error ("Not implemented"); } | protected boolean validatePendingAdd (Object targetChild) { throw new Error ("Not implemented"); } | 48,270 |
protected boolean validatePendingAdd (Object targetChild) throws NotImplementedException { throw new Error ("Not implemented"); } | protected boolean validatePendingAdd (Object targetChild) throws NotImplementedException { return true; } | 48,271 |
protected boolean validatePendingRemove (Object targetChild) throws NotImplementedException { throw new Error ("Not implemented"); } | protected boolean validatePendingRemove (Object targetChild) { throw new Error ("Not implemented"); } | 48,272 |
protected boolean validatePendingRemove (Object targetChild) throws NotImplementedException { throw new Error ("Not implemented"); } | protected boolean validatePendingRemove (Object targetChild) throws NotImplementedException { return true; } | 48,273 |
public BeanContextMembershipEvent(BeanContext context, Object[] children) { super(context); this.children = Arrays.asList(children); } | public BeanContextMembershipEvent(BeanContext context, Object[] children) { super(context); this.children = Arrays.asList(children); } | 48,274 |
public BeanContextMembershipEvent(BeanContext context, Object[] children) { super(context); this.children = Arrays.asList(children); } | public BeanContextMembershipEvent(BeanContext context, Object[] children) { super(context); this.children = Arrays.asList(children); } | 48,275 |
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.... | 48,276 |
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 ... | 48,278 |
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 ... | 48,279 |
Item(int kind, int offsetToFP) { assertCondition(kind > 0, "Invalid kind"); this.kind = kind; this.offsetToFP = offsetToFP; } | Item(int kind, int offsetToFP) { assertCondition(kind > 0, "Invalid kind"); this.kind = kind; this.offsetToFP = offsetToFP; } | 48,283 |
static void assertCondition(boolean cond, String message) { if (!cond) { throw new Error("Assertion failure: " + message); } } | static void assertCondition(boolean cond, String message) { if (!cond) { throw new Error("Assertion failure: " + message); } } | 48,284 |
int getCategory() { return 1; } | int getCategory() { return 1; } | 48,285 |
final int getKind() { return kind; } | final int getKind() { return kind; } | 48,286 |
int getOffsetToFP() { assertCondition(kind == Kind.LOCAL, "kind == Kind.LOCAL"); return offsetToFP; } | int getOffsetToFP() { assertCondition(kind == Kind.LOCAL, "kind == Kind.LOCAL"); return offsetToFP; } | 48,287 |
boolean isAtOffset(int offset) { assertCondition(kind == Kind.LOCAL, "kind == Kind.LOCAL"); return (offsetToFP == offset); } | boolean isAtOffset(int offset) { assertCondition(kind == Kind.LOCAL, "kind == Kind.LOCAL"); return (offsetToFP == offset); } | 48,288 |
final boolean isConstant() { return (kind == Kind.CONSTANT); } | final boolean isConstant() { return (kind == Kind.CONSTANT); } | 48,289 |
final boolean isFPUStack() { return (kind == Kind.FPUSTACK); } | final boolean isFPUStack() { return (kind == Kind.FPUSTACK); } | 48,290 |
final boolean isLocal() { return (kind == Kind.LOCAL); } | final boolean isLocal() { return (kind == Kind.LOCAL); } | 48,291 |
final boolean isRegister() { return (kind == Kind.REGISTER); } | final boolean isRegister() { return (kind == Kind.REGISTER); } | 48,292 |
final boolean isStack() { return (kind == Kind.STACK); } | final boolean isStack() { return (kind == Kind.STACK); } | 48,293 |
final void loadIf(EmitterContext eContext, int mask) { if ((kind & mask) > 0) load(eContext); } | final void loadIf(EmitterContext eContext, int mask) { if ((kind & mask) > 0) load(eContext); } | 48,294 |
static void notImplemented() { throw new Error("NotImplemented"); } | static void notImplemented() { throw new Error("NotImplemented"); } | 48,295 |
final void release1(EmitterContext ec) { if (VirtualStack.checkOperandStack) { VirtualStack vs = ec.getVStack(); vs.operandStack.pop(this); } release(ec); } | final void release1(EmitterContext ec) { if (VirtualStack.checkOperandStack) { VirtualStack vs = ec.getVStack(); vs.operandStack.pop(this); } release(ec); } | 48,296 |
final void spillIfUsing(EmitterContext ec, Register reg) { if (uses(reg)) { spill(ec, reg); } } | final void spillIfUsing(EmitterContext ec, Register reg) { if (uses(reg)) { spill(ec, reg); } } | 48,297 |
public String toString() { return getType() + "," + getKind() + " (" + System.identityHashCode(this) + ")"; } | public String toString() { return getType() + "," + getKind() + " (" + System.identityHashCode(this) + ")"; } | 48,298 |
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... | 48,299 |
public String getConsumerID() { return consumerID; } | public int getConsumerID() { return consumerID; } | 48,300 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes... | 48,301 |
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(); } | 48,302 |
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... | 48,304 |
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... | 48,305 |
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... | 48,306 |
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... | 48,307 |
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... | 48,308 |
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... | 48,309 |
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... | 48,310 |
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... | 48,311 |
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... | 48,312 |
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... | 48,313 |
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... | 48,314 |
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... | 48,315 |
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... | 48,316 |
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); } | 48,317 |
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); } | 48,318 |
protected Document createDefaultModel() { return new PlainDocument(); } | protected Document createDefaultModel() { PlainDocument doc = new PlainDocument(); doc.putProperty("filterNewlines", Boolean.TRUE); return doc; } | 48,319 |
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); } | 48,320 |
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( ... | 48,321 |
void setEscapeProcessing(boolean enable) throws SQLException; | void setEscapeProcessing(boolean enable) throws SQLException; | 48,322 |
void setFetchSize(int rows) throws SQLException; | void setFetchSize(int rows) throws SQLException; | 48,323 |
void setMaxFieldSize(int max) throws SQLException; | void setMaxFieldSize(int max) throws SQLException; | 48,324 |
void setMaxRows(int max) throws SQLException; | void setMaxRows(int max) throws SQLException; | 48,325 |
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... | 48,326 |
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... | 48,327 |
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... | 48,328 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.