bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
private void sendPicture ( ImageConsumer ic ) { ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); } ic.setDimensions(width, height); ic.setColorModel(cm); if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ... | private void sendPicture ( ImageConsumer ic ) { ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); } ic.setDimensions(width, height); ic.setColorModel(cm); if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ... | 25,149 |
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } } | public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } } | 25,150 |
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } } | public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } } | 25,151 |
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } } | public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } } | 25,152 |
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } } | public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } } | 25,153 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ChooseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new ChooseNode(); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; } | 25,154 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ChooseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ChooseNode(); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; } | 25,155 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ChooseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new ChooseNode(); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; } | 25,156 |
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ChooseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ChooseNode(); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret; } | 25,157 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, ne... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException if (children != null) children.apply(stylesheet, mode, context, pos, len, parent, nextSi... | 25,158 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, ne... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, ne... | 25,159 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, ne... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException if (children != null) children.apply(stylesheet, mode, context, pos, len, parent, nextSi... | 25,160 |
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, ne... | void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { if (children != null) { children.apply(stylesheet, mode, context, pos, len, parent, ne... | 25,161 |
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); } | public String toString() { StringBuffer buf = new StringBuffer("choose"); buf.append('['); buf.append(']'); return buf.toString(); } | 25,162 |
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | 25,163 |
public final VmType loadClass(String className, boolean resolve) throws ClassNotFoundException, PrivilegedActionPragma { final VmType<?> cls; if (className.charAt(0) == '[') { cls = loadArrayClass(className, resolve); addLoadedClass(className, cls); } else { ... | public final VmType loadClass(String className, boolean resolve) throws ClassNotFoundException, PrivilegedActionPragma { final VmType<?> cls; if (className.charAt(0) == '[') { cls = loadArrayClass(className, resolve); addLoadedClass(className, cls); } else { ... | 25,164 |
public SelectorImpl (SelectorProvider provider) { super (provider); keys = new HashSet (); selected = new HashSet (); } | public SelectorImpl (SelectorProvider provider) { super (provider); keys = new HashSet (); selected = new HashSet (); } | 25,165 |
private final void deregisterCancelledKeys() { Set ckeys = cancelledKeys (); synchronized (ckeys) { Iterator it = ckeys.iterator(); while (it.hasNext ()) { keys.remove ((SelectionKeyImpl) it.next ()); it.remove (); } } } | private final void deregisterCancelledKeys() { Set<SelectionKey> ckeys = cancelledKeys (); synchronized (ckeys) { Iterator it = ckeys.iterator(); while (it.hasNext ()) { keys.remove ((SelectionKeyImpl) it.next ()); it.remove (); } } } | 25,166 |
private final void deregisterCancelledKeys() { Set ckeys = cancelledKeys (); synchronized (ckeys) { Iterator it = ckeys.iterator(); while (it.hasNext ()) { keys.remove ((SelectionKeyImpl) it.next ()); it.remove (); } } } | private final void deregisterCancelledKeys() { Set ckeys = cancelledKeys (); synchronized (ckeys) { Iterator<SelectionKey> it = ckeys.iterator(); while (it.hasNext ()) { keys.remove ((SelectionKeyImpl) it.next ()); it.remove (); } } } | 25,167 |
private final int[] getFDsAsArray (int ops) { int[] result; int counter = 0; Iterator it = keys.iterator (); // Count the number of file descriptors needed while (it.hasNext ()) { SelectionKeyImpl key = (SelectionKeyImpl) it.next (); if ((key.interestOps () & ops) != 0) { ... | private final int[] getFDsAsArray (int ops) { int[] result; int counter = 0; Iterator<SelectionKey> it = keys.iterator (); // Count the number of file descriptors needed while (it.hasNext ()) { SelectionKeyImpl key = (SelectionKeyImpl) it.next (); if ((key.interestOps () & ops) != 0)... | 25,168 |
public final Set keys() { if (!isOpen()) throw new ClosedSelectorException(); return Collections.unmodifiableSet (keys); } | public final Set<SelectionKey> keys() { if (!isOpen()) throw new ClosedSelectorException(); return Collections.unmodifiableSet (keys); } | 25,169 |
public final Set selectedKeys() { if (!isOpen()) throw new ClosedSelectorException(); return selected; } | public final Set<SelectionKey> selectedKeys() { if (!isOpen()) throw new ClosedSelectorException(); return selected; } | 25,170 |
protected IOR createIOR(cObject ref) throws BAD_OPERATION { IOR ior = super.createIOR(ref); if (iIor != null) { AOM.Obj obj = rootPOA.findIorKey(ior.key); POA poa; // Null means that the object was connected to the ORB directly. if (obj == null) poa = rootPOA; ... | protected IOR createIOR(cObject ref) throws BAD_OPERATION { IOR ior = super.createIOR(ref); if (iIor != null) { AOM.Obj obj = rootPOA.findIorKey(ior.key); gnuPOA poa; // Null means that the object was connected to the ORB directly. if (obj == null) poa = rootPOA; ... | 25,171 |
protected DomIterator(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) { if (!root.isSupported("MutationEvents", "2.0")) { throw new DomEx(DomEx.NOT_SUPPORTED_ERR, "Iterator need... | protected DomIterator(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) { if (!root.isSupported("MutationEvents", "2.0")) { throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR, ... | 25,173 |
public Node nextNode() { if (done) { throw new DomEx(DomEx.INVALID_STATE_ERR); } right = true; return walk(true); } | public Node nextNode() { if (done) { throw new DomDOMException(DOMException.INVALID_STATE_ERR); } right = true; return walk(true); } | 25,174 |
public Node previousNode() { if (done) { throw new DomEx(DomEx.INVALID_STATE_ERR); } Node previous = reference; right = false; walk(false); return previous; } | public Node previousNode() { if (done) { throw new DomDOMException(DOMException.INVALID_STATE_ERR); } Node previous = reference; right = false; walk(false); return previous; } | 25,175 |
private final void addBranch(int target, byte flags) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(flags); } | private final void addBranch(int target, byte flags) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(flags); } | 25,176 |
public static Throwable systemException(int nr, int address) throws UninterruptiblePragma, LoadStaticsPragma, PrivilegedActionPragma { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); if (false) { Unsafe.debug(nr); Unsafe.debug(address); Unsafe.die("System exception"); ... | public static Throwable systemException(int nr, int address) throws UninterruptiblePragma, LoadStaticsPragma, PrivilegedActionPragma { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); if (false) { Unsafe.debug(nr); Unsafe.debug(address); Unsafe.die(... | 25,178 |
public static Throwable systemException(int nr, int address) throws UninterruptiblePragma, LoadStaticsPragma, PrivilegedActionPragma { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); if (false) { Unsafe.debug(nr); Unsafe.debug(address); Unsafe.die("System exception"); ... | public static Throwable systemException(int nr, int address) throws UninterruptiblePragma, LoadStaticsPragma, PrivilegedActionPragma { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); if (false) { Unsafe.debug(nr); Unsafe.debug(address); Unsafe.die("System exception"); ... | 25,179 |
public boolean nameAndTypeEquals(Node other) { if (other == this) { return true; } // node types must match if (nodeType != other.getNodeType()) { return false; } // if both have namespaces, do a "full" comparision // this is a "global" partition String ns1 = this.... | public boolean nameAndTypeEquals(Node other) { if (other == this) { return true; } // node types must match if (nodeType != other.getNodeType()) { return false; } // if both have namespaces, do a "full" comparision // this is a "global" partition String ns1 = this.... | 25,180 |
public Class getUIClass(String id, ClassLoader loader) { String className = (String) get (id); if (className == null) return null; try { if (loader != null) return loader.loadClass (className); return Class.forName (className); } catch (Exception e) { ... | public Class getUIClass(String id, ClassLoader loader) { String className = (String) get (id); if (className == null) return null; try { if (loader == null) loader = ClassLoader.getSystemClassLoader(); return loader.loadClass (className); return Class.forName (className... | 25,181 |
public Class getUIClass(String id, ClassLoader loader) { String className = (String) get (id); if (className == null) return null; try { if (loader != null) return loader.loadClass (className); return Class.forName (className); } catch (Exception e) { ... | public Class getUIClass(String id, ClassLoader loader) { String className = (String) get (id); if (className == null) return null; try { if (loader != null) return loader.loadClass (className); } catch (Exception e) { return null; } } | 25,182 |
protected void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listener... | protected void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listener... | 25,183 |
protected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listen... | protected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listen... | 25,184 |
protected void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listener... | protected void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listener... | 25,185 |
protected void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = ... | protected void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = ... | 25,186 |
public Object getChild(Object node, int idx) { if (node instanceof TreeNode) return ((TreeNode)node).getChildAt(idx); else return null; } | public Object getChild(Object node, int idx) { if (node instanceof TreeNode) return ((TreeNode) node).getChildAt(idx); else return null; } | 25,187 |
public int getChildCount(Object node) { if (node instanceof TreeNode) return ((TreeNode)node).getChildCount(); else return 0; } | public int getChildCount(Object node) { if (node instanceof TreeNode) return ((TreeNode) node).getChildCount(); else return 0; } | 25,188 |
public TreeModelListener[] getTreeModelListeners() { return (TreeModelListener[]) listenerList.getListeners(TreeModelListener.class); } | public TreeModelListener[] getTreeModelListeners() { return (TreeModelListener[]) listenerList .getListeners(TreeModelListener.class); } | 25,189 |
public boolean isLeaf(Object node) { if (node instanceof TreeNode) return ((TreeNode)node).isLeaf(); else return true; } | public boolean isLeaf(Object node) { if (node instanceof TreeNode) return ((TreeNode) node).isLeaf(); else return true; } | 25,190 |
private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException { // TODO } | private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException { // TODO } | 25,191 |
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | 25,192 |
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | 25,193 |
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | 25,194 |
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | 25,195 |
layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | layoutContainer(Container target){ synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; Component my_... | 25,196 |
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "fb0"; final int count = (args.length > 1) ? Integer.parseInt(args[1]) : 100; final String tests = (args.length > 2) ? args[2] : "plrREQ"; Surface g = null; try { ... | public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "fb0"; final int count = (args.length > 1) ? Integer.parseInt(args[1]) : 100; final String tests = (args.length > 2) ? args[2] : "plrREQ"; Surface g = null; try { ... | 25,198 |
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha... | protected void perform() { log.info("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawShapeLineTest... | 25,200 |
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha... | protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha... | 25,201 |
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha... | protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha... | 25,202 |
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha... | protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha... | 25,203 |
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha... | protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha... | 25,204 |
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha... | protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha... | 25,205 |
public void finish() throws IOException { super.finish(); int totalin = def.getTotalIn(); int crcval = (int) (crc.getValue() & 0xffffffff); // System.err.println("CRC val is " + Integer.toHexString( crcval ) + " and length " + Integer.toHexString(totalin)); byte[] gzipFooter = { ... | publicvoidfinish()throwsIOException{super.finish();inttotalin=def.getTotalIn();intcrcval=(int)(crc.getValue()&0xffffffff);//System.err.println("CRCvalis"+Integer.toHexString(crcval) +"andlength"+Integer.toHexString(totalin));byte[]gzipFooter={ (byte)crcval,(byte)(crcval>>8), (byte)(crcval>>16),(byte)(crcval>>24), (byt... | 25,206 |
public void write(byte[] buf, int off, int len) throws IOException { crc.update(buf, off, len); super.write(buf, off, len); } | public synchronized void write(byte[] buf, int off, int len) throws IOException { crc.update(buf, off, len); super.write(buf, off, len); } | 25,207 |
public void write(byte[] buf, int off, int len) throws IOException { crc.update(buf, off, len); super.write(buf, off, len); } | public void write(byte[] buf, int off, int len) throws IOException { crc.update(buf, off, len); } | 25,208 |
public static ComponentUI createUI(JComponent c) { return new MetalButtonUI(); } | public static ComponentUI createUI(JComponent c) { return new MetalButtonUI(); } | 25,209 |
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { if (b.isEnabled() && b.hasFocus() && b.isFocusPainted()) { Color savedColor = g.getColor(); g.setColor(getFocusColor()); Rectangle focusRect = iconRect.union(textRect); ... | protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { if (b.isEnabled() && b.hasFocus() && b.isFocusPainted()) { Color savedColor = g.getColor(); g.setColor(getFocusColor()); Rectangle focusRect = iconRect.union(textRect); ... | 25,210 |
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() ... | public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() instanceof UIResource)) {... | 25,211 |
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() ... | public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && b.isEnabled() && (b.getBackground() instanceof UIResource)) { ... | 25,212 |
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() ... | public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() ... | 25,213 |
public void addChangeListener(ChangeListener listener) { // TODO } // addChangeListener() | public void addChangeListener(ChangeListener listener) { // TODO } // addChangeListener() | 25,214 |
protected void fireStateChanged() { // TODO } // fireStateChanged() | protected void fireStateChanged() { // TODO } // fireStateChanged() | 25,215 |
public Color getSelectedColor() { return null; // TODO } // getSelectedColor() | public Color getSelectedColor() { return null; // TODO } // getSelectedColor() | 25,216 |
public void removeChangeListener(ChangeListener listener) { // TODO } // removeChangeListener() | public void removeChangeListener(ChangeListener listener) { // TODO } // removeChangeListener() | 25,217 |
public void setSelectedColor(Color color) { // TODO } // setSelectedColor() | public void setSelectedColor(Color color) { // TODO } // setSelectedColor() | 25,218 |
public InetAddress(byte[] ipaddr) { this(ipaddr, null, null); } | public InetAddress(byte[] ipaddr) { this(ipaddr, null, null); } | 25,219 |
private static synchronized void addToCache(String hostname, Object obj) { if (cache_size == 0) return; // Check to see if hash table is full if (cache_size != -1) if (cache.size() == cache_size) { //*** Add code to purge later. } cache.put(hostname, obj); } | private static synchronized void addToCache(String hostname, Object obj) { if (cache_size == 0) return; // Check to see if hash table is full if (cache_size != -1) if (cache.size() == cache_size) { //*** Add code to purge later. } cache.put(hostname, obj); } | 25,220 |
private static synchronized void addToCache(String hostname, Object obj) { if (cache_size == 0) return; // Check to see if hash table is full if (cache_size != -1) if (cache.size() == cache_size) { //*** Add code to purge later. } cache.put(hostname, obj); } | private static synchronized void addToCache(String hostname, Object obj) { if (cache_size == 0) return; // Check to see if hash table is full if (cache_size != -1) if (cache.size() == cache_size) { //*** Add code to purge later. } cache.put(hostname, obj); } | 25,221 |
private static synchronized void addToCache(String hostname, Object obj) { if (cache_size == 0) return; // Check to see if hash table is full if (cache_size != -1) if (cache.size() == cache_size) { //*** Add code to purge later. } cache.put(hostname, obj); } | private static synchronized void addToCache(String hostname, Object obj) { if (cache_size == 0) return; // Check to see if hash table is full if (cache_size != -1) if (cache.size() == cache_size) { //*** Add code to purge later. } cache.put(hostname, obj); } | 25,222 |
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | 25,223 |
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return null; Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | 25,224 |
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | 25,225 |
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | 25,226 |
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | 25,227 |
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | 25,228 |
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ... | 25,229 |
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ... | public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ... | 25,230 |
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ... | public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] addr2 = ((InetAddress) obj).addr; if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ... | 25,231 |
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ... | public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (addr.length != addr2.length) return false; for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ... | 25,232 |
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ... | public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (addr[i] != addr2[i]) return false; return... | 25,233 |
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ... | public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ... | 25,234 |
public byte[] getAddress() { byte[] ipaddr = new byte[ addr.length]; for (int i = 0; i < addr.length; i++) { ipaddr[ i] = (byte) addr[ i]; } return ipaddr; } | public byte[] getAddress() { byte[] ipaddr = new byte[ addr.length]; for (int i = 0; i < addr.length; i++) { ipaddr[ i] = (byte) addr[ i]; } return ipaddr; } | 25,235 |
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ... | public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ... | 25,236 |
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ... | public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ... | 25,237 |
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ... | public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ... | 25,238 |
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ... | public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ... | 25,239 |
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ... | public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ... | 25,240 |
public static InetAddress getByAddress(byte[] addr) throws UnknownHostException { if (addr.length != 4 && addr.length != 16) throw new UnknownHostException("IP address has illegal length"); if (addr.length == 4) // return new Inet4Address(null,addr); ... | public static InetAddress getByAddress(byte[] addr) throws UnknownHostException { if (addr.length != 4 && addr.length != 16) throw new UnknownHostException("IP address has illegal length"); if (addr.length == 4) // return new Inet4Address(null,addr); ... | 25,241 |
public static InetAddress getByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) return getLocalHost(); // First, check to see if it is an IP address. If so, then don't // do a DNS lookup. StringTokenizer s... | public static InetAddress getByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) return getLocalHost(); // First, check to see if it is an IP address. If so, then don't // do a DNS lookup. StringTokenizer s... | 25,242 |
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); } | public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); } | 25,243 |
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); } | public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); } | 25,244 |
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); } | public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } for ( ; ; ) { sb.append(addr[i] & 0xff); i++; if (i == len) break; sb.append('.'... | 25,245 |
public String getHostName() { if (hostName != null) return (hostName); try { hostName = getHostByAddr(addr); return (hostName); } catch (UnknownHostException e) { if (hostname_alias != null) return (hostname_alias); else ... | public String getHostName() { if (hostName != null) return (hostName); try { hostName = getHostByAddr(addr); return (hostName); } catch (UnknownHostException e) { if (hostname_alias != null) return (hostname_alias); else ... | 25,247 |
public String getHostName() { if (hostName != null) return (hostName); try { hostName = getHostByAddr(addr); return (hostName); } catch (UnknownHostException e) { if (hostname_alias != null) return (hostname_alias); else ... | public String getHostName() { if (hostName != null) return (hostName); try { hostName = getHostByAddr(addr); return (hostName); } catch (UnknownHostException e) { if (hostname_alias != null) return (hostname_alias); else ... | 25,248 |
static InetAddress getInaddrAny() throws UnknownHostException { if (inaddr_any == null) { byte[] tmp = new byte[] { 0, 0, 0, 0}; inaddr_any = new InetAddress(tmp); } return (inaddr_any); } | static InetAddress getInaddrAny() throws UnknownHostException { if (inaddr_any == null) { byte[] tmp = new byte[] { 0, 0, 0, 0}; inaddr_any = new InetAddress(tmp); } return (inaddr_any); } | 25,249 |
static InetAddress getInaddrAny() throws UnknownHostException { if (inaddr_any == null) { byte[] tmp = new byte[] { 0, 0, 0, 0}; inaddr_any = new InetAddress(tmp); } return (inaddr_any); } | static InetAddress getInaddrAny() throws UnknownHostException { if (inaddr_any == null) { byte[] tmp = new byte[] { 0, 0, 0, 0}; inaddr_any = new InetAddress(tmp); } return (inaddr_any); } | 25,250 |
public static InetAddress getLocalHost() throws UnknownHostException { return VMNetUtils.getAPI().getLocalAddress(); // return Ifconfig.getLocalAddress().toInetAddress(); /* * String hostname = getLocalHostName(); */ } | public static InetAddress getLocalHost() throws UnknownHostException { return VMNetUtils.getAPI().getLocalAddress(); // return Ifconfig.getLocalAddress().toInetAddress(); /* * String hostname = getLocalHostName(); */ } | 25,251 |
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =... | public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =... | 25,252 |
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =... | public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =... | 25,253 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.