bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public Any to_any() { try { Streamable memberHolder = holderFactory.createHolder(official_components); if (memberHolder == null) memberHolder = holderFactory.createHolder(final_components); Class memberHolderClass = memberHolder.getClass(); Class memberClass = me... | public Any to_any() { try { Streamable memberHolder = holderFactory.createHolder(official_components); if (memberHolder == null) memberHolder = HolderLocator.createHolder(final_components); Class memberHolderClass = memberHolder.getClass(); Class memberClass = me... | 21,299 |
public Any to_any() { try { Streamable memberHolder = holderFactory.createHolder(official_components); if (memberHolder == null) memberHolder = holderFactory.createHolder(final_components); Class memberHolderClass = memberHolder.getClass(); Class memberClass = me... | public Any to_any() { try { Streamable memberHolder = holderFactory.createHolder(official_components); if (memberHolder == null) memberHolder = holderFactory.createHolder(final_components); Class memberHolderClass = memberHolder.getClass(); Class memberClass = me... | 21,300 |
public static final int getPositionAbove(JTextComponent c, int offset, int x) throws BadLocationException { View rootView = c.getUI().getRootView(c); Rectangle r = c.modelToView(offset); int offs = c.viewToModel(new Point(x, r.y)); int pos = rootView.getNextVisualPositionFrom(offs, ... | public static final int getPositionAbove(JTextComponent c, int offset, int x) throws BadLocationException { View rootView = c.getUI().getRootView(c); Rectangle r = c.modelToView(offset); int offs = c.viewToModel(new Point(x, r.y)); int pos = rootView.getNextVisualPositionFrom(offs, ... | 21,301 |
public static final int getPositionBelow(JTextComponent c, int offset, int x) throws BadLocationException { View rootView = c.getUI().getRootView(c); Rectangle r = c.modelToView(offset); int offs = c.viewToModel(new Point(x, r.y)); int pos = rootView.getNextVisualPositionFrom(offs, ... | public static final int getPositionBelow(JTextComponent c, int offset, int x) throws BadLocationException { View rootView = c.getUI().getRootView(c); Rectangle r = c.modelToView(offset); int offs = c.viewToModel(new Point(x, r.y)); int pos = rootView.getNextVisualPositionFrom(offs, ... | 21,302 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 21,303 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { // At the end of the for loop, this holds the requested model location int pos; int current... | 21,304 |
public void nodeChanged(TreeNode node) { TreeNode parent = node.getParent(); int[] childIndices = new int[1]; childIndices[0] = getIndexOfChild(parent, node); Object[] children = new Object[1]; children[0] = node; fireTreeNodesChanged(this, getPathToRoot(parent), childIndices, children); } | public void nodeChanged(TreeNode node) { TreeNode parent = node.getParent(); int[] childIndices = new int[1]; childIndices[0] = getIndexOfChild(parent, node); Object[] children = new Object[1]; children[0] = node; fireTreeNodesChanged(this, getPathToRoot(node), childIndices, children); } | 21,305 |
public void valueForPathChanged(TreePath path, Object newValue) { if (!path.equals(newValue)) { TreeModelEvent event = new TreeModelEvent(this, path); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].tr... | public void valueForPathChanged(TreePath path, Object newValue) { Object node = path.getLastPathComponent(); if (node instanceof MutableTreeNode) { TreeModelEvent event = new TreeModelEvent(this, path); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listene... | 21,306 |
public void valueForPathChanged(TreePath path, Object newValue) { if (!path.equals(newValue)) { TreeModelEvent event = new TreeModelEvent(this, path); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].tr... | public void valueForPathChanged(TreePath path, Object newValue) { if (!path.equals(newValue)) { TreeModelEvent event = new TreeModelEvent(this, path); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].tr... | 21,307 |
public void valueForPathChanged(TreePath path, Object newValue) { if (!path.equals(newValue)) { TreeModelEvent event = new TreeModelEvent(this, path); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].tr... | public void valueForPathChanged(TreePath path, Object newValue) { if (!path.equals(newValue)) { TreeModelEvent event = new TreeModelEvent(this, path); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].tr... | 21,308 |
public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } // TreeModelEvent() | public TreeModelEvent(Object source, Object[] path, int[] childIndices, Object[] children) { super(source); this.path = new TreePath(path); this.childIndices = childIndices; this.children = children; } // TreeModelEvent() | 21,309 |
public abstract Object getChild(Object parent, int index); | Object getChild(Object parent, int index); | 21,310 |
public abstract int getChildCount(Object parent); | int getChildCount(Object parent); | 21,311 |
public abstract int getIndexOfChild(Object parent, Object child); | int getIndexOfChild(Object parent, Object child); | 21,312 |
public abstract void valueForPathChanged(TreePath path, Object newvalue); | void valueForPathChanged(TreePath path, Object newvalue); | 21,313 |
public int depth() { return currentDepth; } | public int depth() { int depth = 0; if (stack != null) depth = stack.size(); return depth; } | 21,315 |
public Element first() { // Reset the iterator. currentElement = root; currentDepth = 0; previousItem = null; return root; } | public Element first() { // Reset the iterator. currentElement = root; currentDepth = 0; previousItem = null; return root; } | 21,316 |
public Element previous() { if (currentElement == null || currentElement == root) return null; return previousItem; } | public Element previous() { if (currentElement == null || currentElement == root) return null; return previousItem; } | 21,317 |
final void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition(lsb != null, "lsb != n... | final void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition(lsb != null, "lsb != n... | 21,318 |
final void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition(lsb != null, "lsb != n... | final void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition(lsb != null, "lsb != n... | 21,319 |
final void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition(lsb != null, "lsb != n... | final void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition(lsb != null, "lsb != n... | 21,320 |
final void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition(lsb != null, "lsb != n... | final void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition(lsb != null, "lsb != n... | 21,321 |
final void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition(lsb != null, "lsb != n... | final void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition(lsb != null, "lsb != n... | 21,322 |
final void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition(lsb != null, "lsb != n... | final void loadTo(EmitterContext ec, Register lsb, Register msb) { AbstractX86Stream os = ec.getStream(); X86RegisterPool pool = ec.getPool(); //os.log("LongItem.log called "+Integer.toString(kind)); assertCondition(lsb != msb, "lsb != msb"); assertCondition(lsb != null, "lsb != n... | 21,323 |
final void spill(EmitterContext ec, Register reg) { notImplemented(); } | final void spill(EmitterContext ec, Register reg) { notImplemented(); } | 21,324 |
private BigInteger[] computeRS(final byte[] digestBytes) { final BigInteger p = ((DSAPrivateKey) privateKey).getParams().getP(); final BigInteger q = ((DSAPrivateKey) privateKey).getParams().getQ(); final BigInteger g = ((DSAPrivateKey) privateKey).getParams().getG(); final BigInteger x = ((DSAPrivateKey... | private BigInteger[] computeRS(final byte[] digestBytes) final BigInteger p = ((DSAPrivateKey) privateKey).getParams().getP(); final BigInteger q = ((DSAPrivateKey) privateKey).getParams().getQ(); final BigInteger g = ((DSAPrivateKey) privateKey).getParams().getG(); final BigInteger x = ((DSAPrivateKey)... | 21,325 |
private BigInteger[] computeRS(final byte[] digestBytes) { final BigInteger p = ((DSAPrivateKey) privateKey).getParams().getP(); final BigInteger q = ((DSAPrivateKey) privateKey).getParams().getQ(); final BigInteger g = ((DSAPrivateKey) privateKey).getParams().getG(); final BigInteger x = ((DSAPrivateKey... | private BigInteger[] computeRS(final byte[] digestBytes) { final BigInteger p = ((DSAPrivateKey) privateKey).getParams().getP(); final BigInteger q = ((DSAPrivateKey) privateKey).getParams().getQ(); final BigInteger g = ((DSAPrivateKey) privateKey).getParams().getG(); final BigInteger x = ((DSAPrivateKey... | 21,326 |
protected void setupForSigning(PrivateKey k) throws IllegalArgumentException { if (!(k instanceof DSAPrivateKey)) { throw new IllegalArgumentException(); } this.privateKey = k; } | protected void setupForSigning(PrivateKey k) throws IllegalArgumentException { if (!(k instanceof DSAPrivateKey)) { throw new IllegalArgumentException(); } this.privateKey = k; } | 21,327 |
protected void setupForSigning(PrivateKey k) throws IllegalArgumentException { if (!(k instanceof DSAPrivateKey)) { throw new IllegalArgumentException(); } this.privateKey = k; } | protected void setupForSigning(PrivateKey k) throws IllegalArgumentException { if (!(k instanceof DSAPrivateKey)) { throw new IllegalArgumentException(); this.privateKey = k; | 21,328 |
protected void setupForVerification(PublicKey k) throws IllegalArgumentException { if (!(k instanceof DSAPublicKey)) { throw new IllegalArgumentException(); } this.publicKey = k; } | protected void setupForVerification(PublicKey k) throws IllegalArgumentException { if (!(k instanceof DSAPublicKey)) { throw new IllegalArgumentException(); } this.publicKey = k; } | 21,329 |
protected void setupForVerification(PublicKey k) throws IllegalArgumentException { if (!(k instanceof DSAPublicKey)) { throw new IllegalArgumentException(); } this.publicKey = k; } | protected void setupForVerification(PublicKey k) throws IllegalArgumentException { if (!(k instanceof DSAPublicKey)) { throw new IllegalArgumentException(); this.publicKey = k; | 21,330 |
protected int getHeightOfTallestLabel() { int tallest = 0; Component label; if (slider.getLabelTable() == null) return 0; for (Enumeration list = slider.getLabelTable().elements(); list.hasMoreElements();) { Object comp = list.nextElement(); if (! (comp instanceof Component)) continue... | protected int getHeightOfTallestLabel() { int tallest = 0; Component label; if (slider.getLabelTable() == null) return 0; for (Enumeration list = slider.getLabelTable().elements(); list.hasMoreElements();) { Object comp = list.nextElement(); if (! (comp instanceof Component)) continue... | 21,332 |
protected int getWidthOfWidestLabel() { int widest = 0; Component label; if (slider.getLabelTable() == null) return 0; for (Enumeration list = slider.getLabelTable().elements(); list.hasMoreElements();) { Object comp = list.nextElement(); if (! (comp instanceof Component)) continue; l... | protected int getWidthOfWidestLabel() { int widest = 0; Component label; if (slider.getLabelTable() == null) return 0; for (Enumeration list = slider.getLabelTable().elements(); list.hasMoreElements();) { Object comp = list.nextElement(); if (! (comp instanceof Component)) continue; l... | 21,333 |
public static void checkPermission(Permission perm) throws AccessControlException, PragmaCheckPermission { if (!Unsafe.getCurrentProcessor().isThreadSwitchActive()) { //getContext().checkPermission(perm); // This is an optimized version of // getContext().checkPerm... | public static void checkPermission(Permission perm) throws AccessControlException, PragmaCheckPermission { if (!Unsafe.getCurrentProcessor().isThreadSwitchActive()) { //getContext().checkPermission(perm); // This is an optimized version of // getContext().checkPerm... | 21,334 |
public Parameter(Any an_argument, ParameterMode a_mode) { argument = an_argument; mode = a_mode; } | public Parameter() { argument = an_argument; mode = a_mode; } | 21,337 |
public Parameter(Any an_argument, ParameterMode a_mode) { argument = an_argument; mode = a_mode; } | public Parameter(Any an_argument, ParameterMode a_mode) { argument = an_argument; mode = a_mode; } | 21,338 |
public static Object anewarray(VmMethod currentMethod, VmType vmClass, int elements) throws PragmaUninterruptible { VmType arrCls; try { AbstractVmClassLoader curLoader = currentMethod.getDeclaringClass().getLoader(); arrCls = curLoader.loadClass(vmClass.getArrayClassName(), true); //Screen.debug("an cls{"); ... | public static Object anewarray(VmMethod currentMethod, VmType vmClass, int elements) throws PragmaUninterruptible { final String arrClsName = vmClass.getArrayClassName(); final VmType arrCls; try { AbstractVmClassLoader curLoader = currentMethod.getDeclaringClass().getLoader(); arrCls = curLoader.loadClass(vmCla... | 21,339 |
public static Object anewarray(VmMethod currentMethod, VmType vmClass, int elements) throws PragmaUninterruptible { VmType arrCls; try { AbstractVmClassLoader curLoader = currentMethod.getDeclaringClass().getLoader(); arrCls = curLoader.loadClass(vmClass.getArrayClassName(), true); //Screen.debug("an cls{"); ... | public static Object anewarray(VmMethod currentMethod, VmType vmClass, int elements) throws PragmaUninterruptible { VmType arrCls; try { AbstractVmClassLoader curLoader = currentMethod.getDeclaringClass().getLoader(); arrCls = curLoader.loadClass(vmClass.getArrayClassName(), true); //Screen.debug("an cls{"); ... | 21,340 |
public static Object anewarray(VmMethod currentMethod, VmType vmClass, int elements) throws PragmaUninterruptible { VmType arrCls; try { AbstractVmClassLoader curLoader = currentMethod.getDeclaringClass().getLoader(); arrCls = curLoader.loadClass(vmClass.getArrayClassName(), true); //Screen.debug("an cls{"); ... | public static Object anewarray(VmMethod currentMethod, VmType vmClass, int elements) throws PragmaUninterruptible { VmType arrCls; try { AbstractVmClassLoader curLoader = currentMethod.getDeclaringClass().getLoader(); arrCls = curLoader.loadClass(vmClass.getArrayClassName(), true); //Screen.debug("an cls{"); ... | 21,341 |
public static VmType resolveClass(VmConstClass classRef) throws PragmaUninterruptible { if (classRef.isResolved()) { return classRef.getResolvedVmClass(); } else { AbstractVmClassLoader curLoader = VmSystem.getContextClassLoader(); String cname = classRef.getClassName(); try { Class cls = curLoader.asClas... | public static VmType resolveClass(VmConstClass classRef) throws PragmaUninterruptible { if (classRef.isResolved()) { return classRef.getResolvedVmClass(); } else { VmClassLoader curLoader = VmSystem.getContextClassLoader(); String cname = classRef.getClassName(); try { Class cls = curLoader.asClassLoader(... | 21,342 |
public static VmMethod resolveMethod(VmMethod currentMethod, VmConstMethodRef methodRef) throws PragmaUninterruptible { if (!methodRef.getConstClass().isResolved()) { resolveClass(methodRef.getConstClass()); } if (methodRef.isResolved()) { return methodRef.getResolvedVmMethod(); } else { VmType vmClass = met... | public static VmMethod resolveMethod(VmMethod currentMethod, VmConstMethodRef methodRef) throws PragmaUninterruptible { if (!methodRef.getConstClass().isResolved()) { resolveClass(methodRef.getConstClass()); } if (methodRef.isResolved()) { return methodRef.getResolvedVmMethod(); } else { VmType vmClass = met... | 21,343 |
addNotify(){ if (peer != null) { // This choice of toolkit seems unsatisfying, but I'm not sure // what else to do. peer = getToolkit().createCheckboxMenuItem(this); } super.addNotify ();} | addNotify(){ if (peer != null) { // This choice of toolkit seems unsatisfying, but I'm not sure // what else to do. peer = getToolkit().createCheckboxMenuItem(this); } super.addNotify ();} | 21,344 |
addNotify(){ if (peer != null) { // This choice of toolkit seems unsatisfying, but I'm not sure // what else to do. peer = getToolkit().createCheckboxMenuItem(this); } super.addNotify ();} | addNotify(){ if (peer != null) { // This choice of toolkit seems unsatisfying, but I'm not sure // what else to do. peer = getToolkit().createCheckboxMenuItem(this); super.addNotify (); | 21,345 |
public final Class getCategory() { return JobName.class; } | public Class getCategory() { return JobName.class; } | 21,346 |
public final String getName() { return "job-name"; } | public String getName() { return "job-name"; } | 21,347 |
protected AccessibleJComboBox(JComboBox component) { super(component); // TODO } // AccessibleJComboBox() | protected AccessibleJComboBox(JComboBox component) { super(component); // TODO } // AccessibleJComboBox() | 21,348 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJComboBox(this); } // if return accessibleContext; } // getAccessibleContext() | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJComboBox(this); } // if return accessibleContext; } // getAccessibleContext() | 21,349 |
public InvalidParameterSpecException(String msg) { super(msg); } | public InvalidParameterSpecException() { super(msg); } | 21,350 |
public InvalidParameterSpecException(String msg) { super(msg); } | public InvalidParameterSpecException(String msg) { } | 21,351 |
public static TypeCode type() { if (typeCode == null) { TypeCode tshort = Restricted_ORB.Singleton.get_primitive_tc(TCKind.tk_short); typeCode = Restricted_ORB.Singleton.create_alias_tc(id(), "Visibility", tshort); } return typeCode; } | public static TypeCode type() { if (typeCode == null) { TypeCode tshort = OrbRestricted.Singleton.get_primitive_tc(TCKind.tk_short); typeCode = Restricted_ORB.Singleton.create_alias_tc(id(), "Visibility", tshort); } return typeCode; } | 21,352 |
public static TypeCode type() { if (typeCode == null) { TypeCode tshort = Restricted_ORB.Singleton.get_primitive_tc(TCKind.tk_short); typeCode = Restricted_ORB.Singleton.create_alias_tc(id(), "Visibility", tshort); } return typeCode; } | public static TypeCode type() { if (typeCode == null) { TypeCode tshort = Restricted_ORB.Singleton.get_primitive_tc(TCKind.tk_short); typeCode = OrbRestricted.Singleton.create_alias_tc(id(), "Visibility", tshort); } return typeCode; } | 21,353 |
public synchronized void abortGrabbing() { if (grabbing == true) { grabbing = false; ip.removeConsumer(this); } } | public synchronized void abortGrabbing() { if (grabbing == true) { grabbing = false; ip.removeConsumer(this); } } | 21,354 |
public synchronized ColorModel getColorModel() { return dstModel; } | public synchronized ColorModel getColorModel() { return dstModel; } | 21,355 |
public synchronized int getHeight() { return dstHeight; } | public synchronized int getHeight() { return dstHeight; } | 21,356 |
public synchronized Object getPixels() { if (intPixels != null) return intPixels; return pixel_bufferb; } | public synchronized Object getPixels() { if (intPixels != null) return intPixels; return pixel_bufferb; } | 21,357 |
public synchronized int getStatus() { return status; } | public synchronized int getStatus() { return status; } | 21,358 |
public synchronized int getWidth() { return dstWidth; } | public synchronized int getWidth() { return dstWidth; } | 21,359 |
public synchronized void imageComplete(int imageStatus) { grabbing = false; switch (imageStatus) { default : case IMAGEERROR : status |= ImageObserver.ERROR | ImageObserver.ABORT; break; case IMAGEABORTED : status |= ImageObserver.ABORT; break; case STATICIMAGEDONE : status |= ImageObserver.AL... | public synchronized void imageComplete(int status) { consumerStatus = status; setObserverStatus (); grabbing = false; switch (imageStatus) { default : case IMAGEERROR : status |= ImageObserver.ERROR | ImageObserver.ABORT; break; case IMAGEABORTED : status |= ImageObserver.ABORT; break; case STATI... | 21,360 |
public synchronized void imageComplete(int imageStatus) { grabbing = false; switch (imageStatus) { default : case IMAGEERROR : status |= ImageObserver.ERROR | ImageObserver.ABORT; break; case IMAGEABORTED : status |= ImageObserver.ABORT; break; case STATICIMAGEDONE : status |= ImageObserver.AL... | public synchronized void imageComplete(int imageStatus) { grabbing = false; switch (imageStatus) { default : case IMAGEERROR : status |= ImageObserver.ERROR | ImageObserver.ABORT; break; case IMAGEABORTED : status |= ImageObserver.ABORT; break; case STATICIMAGEDONE : status |= ImageObserver.AL... | 21,361 |
public void setColorModel(ColorModel model) { this.dstModel = model; } | public void setColorModel(ColorModel model) { this.dstModel = model; } | 21,362 |
public void setDimensions(int width, int height) { System.out.println("setDimension " + width + "," + height); if (dstWidth < 0) { dstWidth = width - dstX; } if (dstHeight < 0) { dstHeight = height - dstY; } if (dstWidth <= 0 || dstHeight <= 0) { imageComplete(STATICIMAGEDONE); } else if (intPixels == nul... | public void setDimensions(int width, int height) { System.out.println("setDimension " + width + "," + height); if (dstWidth < 0) { dstWidth = width - dstX; } if (dstHeight < 0) { dstHeight = height - dstY; } if (dstWidth <= 0 || dstHeight <= 0) { imageComplete(STATICIMAGEDONE); } else if (intPixels == nul... | 21,363 |
public void setHints(int flags) { //hints = flags; // FIXME - DO NOT KNOW WHAT TO DO WITH THE HINTS } | public synchronized void setHints(int flags) { hints = flags; //hints = flags; // FIXME - DO NOT KNOW WHAT TO DO WITH THE HINTS } | 21,364 |
public void setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, byte[] pixels, int srcOffset, int srcScansize) { if (srcY < dstY) { final int diff = dstY - srcY; if (diff >= srcH) { return; } srcOffset += srcScansize * diff; srcY += diff; srcH -= diff; } if (srcY + srcH > dstY + dstHe... | public synchronized void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { ColorModel currentModel; if (model != null) currentModel = model; else currentModel = this.model; if (srcY < dstY) { final int diff = dstY - srcY; if (diff >= srcH) { return; } srcOff... | 21,365 |
public void setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, byte[] pixels, int srcOffset, int srcScansize) { if (srcY < dstY) { final int diff = dstY - srcY; if (diff >= srcH) { return; } srcOffset += srcScansize * diff; srcY += diff; srcH -= diff; } if (srcY + srcH > dstY + dstHe... | public void setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, byte[] pixels, int srcOffset, int srcScansize) { if (srcY < dstY) { final int diff = dstY - srcY; if (diff >= srcH) { return; } srcOffset += srcScansize * diff; srcY += diff; srcH -= diff; } if (srcY + srcH > dstY + dstHe... | 21,366 |
public void setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, byte[] pixels, int srcOffset, int srcScansize) { if (srcY < dstY) { final int diff = dstY - srcY; if (diff >= srcH) { return; } srcOffset += srcScansize * diff; srcY += diff; srcH -= diff; } if (srcY + srcH > dstY + dstHe... | public void setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, byte[] pixels, int srcOffset, int srcScansize) { if (srcY < dstY) { final int diff = dstY - srcY; if (diff >= srcH) { return; } srcOffset += srcScansize * diff; srcY += diff; srcH -= diff; } if (srcY + srcH > dstY + dstHe... | 21,367 |
public void setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, byte[] pixels, int srcOffset, int srcScansize) { if (srcY < dstY) { final int diff = dstY - srcY; if (diff >= srcH) { return; } srcOffset += srcScansize * diff; srcY += diff; srcH -= diff; } if (srcY + srcH > dstY + dstHe... | public void setPixels(int srcX, int srcY, int srcW, int srcH, ColorModel model, byte[] pixels, int srcOffset, int srcScansize) { if (srcY < dstY) { final int diff = dstY - srcY; if (diff >= srcH) { return; } srcOffset += srcScansize * diff; srcY += diff; srcH -= diff; } if (srcY + srcH > dstY + dstHe... | 21,368 |
public void setProperties(Hashtable props) { //this.props = props; //FIXME - DO WE NEED THIS } | public synchronized void setProperties(Hashtable props) { this.props = props; //this.props = props; //FIXME - DO WE NEED THIS } | 21,369 |
public synchronized void startGrabbing() { if (grabbing == false) { grabbing = true; ip.startProduction(this); } } | public synchronized void startGrabbing() { if (grabbing == false) { grabbing = true; grabberThread = new Thread () { public void run () { ip.startProduction (PixelGrabber.this); } }; grabberThread.start (); } } | 21,370 |
private final void dropParameters(VmMethod method, boolean hasSelf) { final int count = method.getNoArguments(); for (int i = count - 1; i >= 0; i--) { final int type = method.getArgumentType(i).getJvmType(); final Item v = vstack.pop(JvmType.TypeToContainingType(type)); v.release1(eContext); } if (hasSelf) ... | private final void dropParameters(VmMethod method, boolean hasSelf) { final int count = method.getNoArguments(); for (int i = count - 1; i >= 0; i--) { final int type = method.getArgumentType(i).getJvmType(); final Item v = vstack.pop(JvmType.TypeToContainingType(type)); v.release1(eContext); } if (hasSelf) ... | 21,371 |
private final void ishift(int operation) { final IntItem shift = vstack.popInt(); final boolean isconst = shift.isConstant(); if (!isconst) { L1AHelper.requestRegister(eContext, ECX, shift); shift.loadTo(eContext, ECX); } // Pop & load final IntItem val = vstack.popInt(); val.loadIf(eContext, ~Item.Kind.LOC... | private final void ishift(int operation) { final IntItem shift = vstack.popInt(); final boolean isconst = shift.isConstant(); if (!isconst) { L1AHelper.requestRegister(eContext, ECX, shift); shift.loadTo(eContext, ECX); } // Pop & load final IntItem val = vstack.popInt(); val.loadIf(eContext, ~Item.Kind.LOC... | 21,372 |
private final void ishift(int operation) { final IntItem shift = vstack.popInt(); final boolean isconst = shift.isConstant(); if (!isconst) { L1AHelper.requestRegister(eContext, ECX, shift); shift.loadTo(eContext, ECX); } // Pop & load final IntItem val = vstack.popInt(); val.loadIf(eContext, ~Item.Kind.LOC... | private final void ishift(int operation) { final IntItem shift = vstack.popInt(); final boolean isconst = shift.isConstant(); if (!isconst) { L1AHelper.requestRegister(eContext, ECX, shift); shift.loadTo(eContext, ECX); } // Pop & load final IntItem val = vstack.popInt(); val.loadIf(eContext, ~Item.Kind.LOC... | 21,373 |
private final void ishift(int operation) { final IntItem shift = vstack.popInt(); final boolean isconst = shift.isConstant(); if (!isconst) { L1AHelper.requestRegister(eContext, ECX, shift); shift.loadTo(eContext, ECX); } // Pop & load final IntItem val = vstack.popInt(); val.loadIf(eContext, ~Item.Kind.LOC... | private final void ishift(int operation) { final IntItem shift = vstack.popInt(); final boolean isconst = shift.isConstant(); if (!isconst) { L1AHelper.requestRegister(eContext, ECX, shift); shift.loadTo(eContext, ECX); } // Pop & load final IntItem val = vstack.popInt(); val.loadIf(eContext, ~Item.Kind.LOC... | 21,374 |
public final void visit_ineg() { final IntItem val = vstack.popInt(); val.loadIf(eContext, ~(Item.Kind.CONSTANT | Item.Kind.LOCAL)); if (val.isConstant()) { vstack.push(IntItem.createConst(-val.getValue())); } else if (val.isLocal()) { os.writeNEG(FP, val.getOffsetToFP()); vstack.push(val); } else { os.wr... | public final void visit_ineg() { final IntItem val = vstack.popInt(); val.loadIf(eContext, ~(Item.Kind.CONSTANT | Item.Kind.LOCAL)); if (val.isConstant()) { vstack.push(IntItem.createConst(-val.getValue())); } else if (val.isLocal()) { os.writeNEG(FP, val.getOffsetToFP()); vstack.push(val); } else { os.wr... | 21,375 |
private final void writeInitializeClass(VmConstFieldRef fieldRef, Register scratch) { // Get fieldRef via constantpool to avoid direct object references in // the native code final VmType declClass = fieldRef.getResolvedVmField() .getDeclaringClass(); if (!declClass.isInitialized()) { // Push all vstac... | private final void writeInitializeClass(VmConstFieldRef fieldRef, Register scratch) { // Get fieldRef via constantpool to avoid direct object references in // the native code final VmType declClass = fieldRef.getResolvedVmField() .getDeclaringClass(); if (!declClass.isInitialized()) { // Push all vstac... | 21,376 |
private final void writeInitializeClass(VmConstFieldRef fieldRef, Register scratch) { // Get fieldRef via constantpool to avoid direct object references in // the native code final VmType declClass = fieldRef.getResolvedVmField() .getDeclaringClass(); if (!declClass.isInitialized()) { // Push all vstac... | private final void writeInitializeClass(VmConstFieldRef fieldRef, Register scratch) { // Get fieldRef via constantpool to avoid direct object references in // the native code final VmType declClass = fieldRef.getResolvedVmField() .getDeclaringClass(); if (!declClass.isInitialized()) { // Push all vstac... | 21,377 |
private final void writeInitializeClass(VmConstFieldRef fieldRef, Register scratch) { // Get fieldRef via constantpool to avoid direct object references in // the native code final VmType declClass = fieldRef.getResolvedVmField() .getDeclaringClass(); if (!declClass.isInitialized()) { // Push all vstac... | private final void writeInitializeClass(VmConstFieldRef fieldRef, Register scratch) { // Get fieldRef via constantpool to avoid direct object references in // the native code final VmType declClass = fieldRef.getResolvedVmField() .getDeclaringClass(); if (!declClass.isInitialized()) { // Push all vstac... | 21,378 |
public ClasspathFontPeer (String name, int style, int size) { setStandardAttributes (name, (String)null, style, (float)size, (AffineTransform)null); } | public ClasspathFontPeer (String name, Map attrs) { setStandardAttributes (name, (String)null, style, (float)size, (AffineTransform)null); } | 21,379 |
public ClasspathFontPeer (String name, int style, int size) { setStandardAttributes (name, (String)null, style, (float)size, (AffineTransform)null); } | public ClasspathFontPeer (String name, int style, int size) { setStandardAttributes (name, (String)null, style, (float)size, (AffineTransform)null); } | 21,380 |
public void menuSelectionChanged(boolean changed) { if (changed) { model.setArmed(true); if (this.getParent() instanceof JPopupMenu) ((JPopupMenu) this.getParent()).setSelected(this); } else { model.setArmed(false); if (this.getParent() instanceof JPopupMenu) ((JPopupMenu) this.get... | public void menuSelectionChanged(boolean changed) { if (changed) { model.setArmed(true); if (this.getParent() instanceof JPopupMenu) ((JPopupMenu) this.getParent()).setSelected(this); } else { model.setArmed(false); if (this.getParent() instanceof JPopupMenu) ((JPopupMenu) this.get... | 21,381 |
public void menuSelectionChanged(boolean changed) { if (changed) { model.setArmed(true); if (this.getParent() instanceof JPopupMenu) ((JPopupMenu) this.getParent()).setSelected(this); } else { model.setArmed(false); if (this.getParent() instanceof JPopupMenu) ((JPopupMenu) this.get... | public void menuSelectionChanged(boolean changed) { if (changed) { model.setArmed(true); if (this.getParent() instanceof JPopupMenu) ((JPopupMenu) this.getParent()).setSelected(this); } else { model.setArmed(false); if (this.getParent() instanceof JPopupMenu) ((JPopupMenu) this.get... | 21,382 |
public AttributeSet getAttributes() { StyleSheet styles = getStyleSheet(); if (styles == null) return super.getAttributes(); else return CombinedAttributes.combine(super.getAttributes(), styles.getViewAttributes(this)); } | public AttributeSet getAttributes() { StyleSheet styles = getStyleSheet(); if (styles == null) return super.getAttributes(); else return CombinedAttributes.combine(super.getAttributes(), styles.getViewAttributes(this)); } | 21,383 |
public Image getImage() { if (imageIcon == null) return null; else return imageIcon.getImage(); } | public Image getImage() { if (imageIcon == null) return null; else return imageIcon.getImage(); } | 21,384 |
public URL getImageURL() { Object url = getAttributes().getAttribute(Attribute.SRC); if (url == null) return null; try { return new URL(url.toString()); } catch (MalformedURLException e) { // The URL is malformed - no image. return null; } } | public URL getImageURL() { Object url = getAttributes().getAttribute(Attribute.SRC); if (url == null) return null; try { return new URL(url.toString()); } catch (MalformedURLException e) { // The URL is malformed - no image. return null; } } | 21,385 |
public URL getImageURL() { Object url = getAttributes().getAttribute(Attribute.SRC); if (url == null) return null; try { return new URL(url.toString()); } catch (MalformedURLException e) { // The URL is malformed - no image. return null; } } | public URL getImageURL() { Object url = getAttributes().getAttribute(Attribute.SRC); if (url == null) return null; try { url = new URL(base, src); } catch (MalformedURLException e) { // The URL is malformed - no image. return null; } } | 21,386 |
public URL getImageURL() { Object url = getAttributes().getAttribute(Attribute.SRC); if (url == null) return null; try { return new URL(url.toString()); } catch (MalformedURLException e) { // The URL is malformed - no image. return null; } } | public URL getImageURL() { Object url = getAttributes().getAttribute(Attribute.SRC); if (url == null) return null; try { return new URL(url.toString()); } catch (MalformedURLException ex) { // The URL is malformed - no image. return null; } } | 21,387 |
public URL getImageURL() { Object url = getAttributes().getAttribute(Attribute.SRC); if (url == null) return null; try { return new URL(url.toString()); } catch (MalformedURLException e) { // The URL is malformed - no image. return null; } } | public URL getImageURL() { Object url = getAttributes().getAttribute(Attribute.SRC); if (url == null) try { return new URL(url.toString()); } catch (MalformedURLException e) { // The URL is malformed - no image. } } | 21,388 |
public float getPreferredSpan(int axis) { AttributeSet attrs = getAttributes(); Image image = getImage(); if (axis == View.X_AXIS) { Object w = attrs.getAttribute(Attribute.WIDTH); if (w != null) return Integer.parseInt(w.toString()); else if (image != null) r... | public float getPreferredSpan(int axis) { AttributeSet attrs = getAttributes(); Image image = getImage(); if (axis == View.X_AXIS) { Object w = attrs.getAttribute(Attribute.WIDTH); if (w != null) return Integer.parseInt(w.toString()); else if (image != null) r... | 21,390 |
public float getPreferredSpan(int axis) { AttributeSet attrs = getAttributes(); Image image = getImage(); if (axis == View.X_AXIS) { Object w = attrs.getAttribute(Attribute.WIDTH); if (w != null) return Integer.parseInt(w.toString()); else if (image != null) r... | public float getPreferredSpan(int axis) { AttributeSet attrs = getAttributes(); Image image = getImage(); if (axis == View.X_AXIS) { Object w = attrs.getAttribute(Attribute.WIDTH); if (w != null) return Integer.parseInt(w.toString()); else if (image != null) r... | 21,391 |
public void paint(Graphics g, Shape bounds) { Rectangle r = bounds.getBounds(); if (imageIcon == null) { // Loading image on demand, rendering the loading icon so far. reloadImage(true); // The reloadImage sets the imageIcon, unless the URL is broken // or malformed. ... | public void paint(Graphics g, Shape bounds) { Rectangle r = bounds.getBounds(); if (imageIcon == null) { // Loading image on demand, rendering the loading icon so far. reloadImage(true); // The reloadImage sets the imageIcon, unless the URL is broken // or malformed. ... | 21,392 |
public void paint(Graphics g, Shape bounds) { Rectangle r = bounds.getBounds(); if (imageIcon == null) { // Loading image on demand, rendering the loading icon so far. reloadImage(true); // The reloadImage sets the imageIcon, unless the URL is broken // or malformed. ... | public void paint(Graphics g, Shape bounds) { Rectangle r = bounds.getBounds(); if (imageIcon == null) { // Loading image on demand, rendering the loading icon so far. reloadImage(true); // The reloadImage sets the imageIcon, unless the URL is broken // or malformed. ... | 21,393 |
public void paint(Graphics g, Shape bounds) { Rectangle r = bounds.getBounds(); if (imageIcon == null) { // Loading image on demand, rendering the loading icon so far. reloadImage(true); // The reloadImage sets the imageIcon, unless the URL is broken // or malformed. ... | public void paint(Graphics g, Shape bounds) { Rectangle r = bounds.getBounds(); if (imageIcon == null) { // Loading image on demand, rendering the loading icon so far. reloadImage(true); // The reloadImage sets the imageIcon, unless the URL is broken // or malformed. ... | 21,394 |
void reloadImage(boolean itsTime) { URL url = getImageURL(); if (url == null) imageState = (byte) MediaTracker.ERRORED; else if (!(loadOnDemand && !itsTime)) imageIcon = new ImageIcon(url); else imageState = (byte) MediaTracker.LOADING; } | private void reloadImage() { URL url = getImageURL(); if (url == null) imageState = (byte) MediaTracker.ERRORED; else if (!(loadOnDemand && !itsTime)) imageIcon = new ImageIcon(url); else imageState = (byte) MediaTracker.LOADING; } | 21,395 |
void reloadImage(boolean itsTime) { URL url = getImageURL(); if (url == null) imageState = (byte) MediaTracker.ERRORED; else if (!(loadOnDemand && !itsTime)) imageIcon = new ImageIcon(url); else imageState = (byte) MediaTracker.LOADING; } | void reloadImage(boolean itsTime) { URL url = getImageURL(); if (url == null) imageState = (byte) MediaTracker.ERRORED; else if (!(loadOnDemand && !itsTime)) imageIcon = new ImageIcon(url); else imageState = (byte) MediaTracker.LOADING; } | 21,396 |
protected void setPropertiesFromAttributes() { // In the current implementation, nothing is cached yet, unless the image // itself. imageIcon = null; } | protected void setPropertiesFromAttributes() { // In the current implementation, nothing is cached yet, unless the image // itself. AttributeSet atts = getAttributes(); StyleSheet ss = getStyleSheet(); float emBase = ss.getEMBase(atts); float exBase = ss.getEXBase(atts); spans[X_AXIS] = (Length) atts.getAtt... | 21,397 |
public void setSize(float width, float height) { if (imageIcon == null) reloadImage(false); } | public void setSize(float width, float height) { if (imageIcon == null) reloadImage(false); } | 21,398 |
public void write(OutputStream out) throws IOException { ByteBuffer buf = ByteBuffer.allocate(SIZE); buf.putShort(0, bfType); // ID buf.putInt(2, (int)(bfSize & (0xFFFFFFFF))); // size buf.putInt(6, 0); // 4 reserved bytes set to zero buf.putInt(2, (int)(bfOffBits & (0xFFFFFFFF))); // size out.write(buf.array()); ... | public void write(ImageOutputStream out) throws IOException { ByteBuffer buf = ByteBuffer.allocate(SIZE); buf.putShort(0, bfType); // ID buf.putInt(2, (int)(bfSize & (0xFFFFFFFF))); // size buf.putInt(6, 0); // 4 reserved bytes set to zero buf.putInt(2, (int)(bfOffBits & (0xFFFFFFFF))); // size out.write(buf.array(... | 21,399 |
public void write(OutputStream out) throws IOException { ByteBuffer buf = ByteBuffer.allocate(SIZE); buf.putShort(0, bfType); // ID buf.putInt(2, (int)(bfSize & (0xFFFFFFFF))); // size buf.putInt(6, 0); // 4 reserved bytes set to zero buf.putInt(2, (int)(bfOffBits & (0xFFFFFFFF))); // size out.write(buf.array()); ... | public void write(OutputStream out) throws IOException { ByteBuffer buf = ByteBuffer.allocate(SIZE); buf.putShort(0, bfType); // ID buf.putInt(2, (int)(bfSize & (0xFFFFFFFF))); // size buf.putInt(6, 0); // 4 reserved bytes set to zero buf.putInt(7, (int)(bfOffBits & (0xFFFFFFFF))); // size out.write(buf.array()); ... | 21,400 |
static Object getValue(Attribute att, String v) { Object o; if (att == Attribute.FONT_SIZE) o = new FontSize(v); else if (att == Attribute.FONT_WEIGHT) o = new FontWeight(v); else if (att == Attribute.FONT_STYLE) o = new FontStyle(v); else if (att == Attribute.COLOR || att == Attribute.... | static Object getValue(Attribute att, String v) { Object o; if (att == Attribute.FONT_SIZE) o = new FontSize(v); else if (att == Attribute.FONT_WEIGHT) o = new FontWeight(v); else if (att == Attribute.FONT_STYLE) o = new FontStyle(v); else if (att == Attribute.COLOR || att == Attribute.... | 21,401 |
static Object getValue(Attribute att, String v) { Object o; if (att == Attribute.FONT_SIZE) o = new FontSize(v); else if (att == Attribute.FONT_WEIGHT) o = new FontWeight(v); else if (att == Attribute.FONT_STYLE) o = new FontStyle(v); else if (att == Attribute.COLOR || att == Attribute.... | static Object getValue(Attribute att, String v) { Object o; if (att == Attribute.FONT_SIZE) o = new FontSize(v); else if (att == Attribute.FONT_WEIGHT) o = new FontWeight(v); else if (att == Attribute.FONT_STYLE) o = new FontStyle(v); else if (att == Attribute.COLOR || att == Attribute.... | 21,402 |
public String toString() { Iterator itr = iterator(); StringBuffer r = new StringBuffer("["); for (int pos = size(); pos > 0; pos--) { r.append(itr.next()); if (pos > 1) r.append(", "); } r.append("]"); return r.toString(); } | public String toString() { Iterator itr = iterator(); StringBuffer r = new StringBuffer("["); boolean hasNext = itr.hasNext(); while (hasNext) { r.append(itr.next()); if (pos > 1) r.append(", "); } r.append("]"); return r.toString(); } | 21,405 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.