bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void paint(Graphics graphics); | public void paint(Graphics graphics); | 27,868 |
public Dimension getPreferredSize(); | public Dimension getPreferredSize(); | 27,869 |
public boolean prepareImage(Image img, int width, int height, ImageObserver ob); | public boolean prepareImage(Image img, int width, int height, ImageObserver ob); | 27,870 |
public void dispose(); | public void dispose(); | 27,871 |
public void repaint(long tm, int x, int y, int width, int height); | public void repaint(long tm, int x, int y, int width, int height); | 27,872 |
public void requestFocus(); | public void requestFocus(); | 27,873 |
public Window getFocusedWindow() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusedWindow(); } catch (SecurityException e) { return null; } } | public Window getFocusedWindow() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusedWindow(); } catch (SecurityException e) { return null; } } | 27,874 |
public Window getFocusedWindow() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusedWindow(); } catch (SecurityException e) { return null; } } | public Window getFocusedWindow() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusedWindow(); } catch (SecurityException e) { return null; } } | 27,875 |
public void setBackground(Color color); | public void setBackground(Color color); | 27,876 |
public void setCursor(Cursor cursor); | public void setCursor(Cursor cursor); | 27,877 |
public void setFont(Font font); | public void setFont(Font font); | 27,878 |
public void setForeground(Color color); | public void setForeground(Color color); | 27,879 |
public String getString(int where, int len) throws BadLocationException { return buf.toString(); } | public String getString(int where, int len) throws BadLocationException { return buf.substring(where, where+len); } | 27,880 |
private static final VmType decodeClass( byte[] data, int offset, int class_image_length, boolean rejectNatives, AbstractVmClassLoader clc, SelectorMap selectorMap, VmStatics statics) throws ClassFormatError { if (data == null) { throw new ClassFormatError("ClassDecoder.decodeClass: data==null"); } final ... | private static final VmType decodeClass( byte[] data, int offset, int class_image_length, boolean rejectNatives, AbstractVmClassLoader clc, SelectorMap selectorMap, VmStatics statics) throws ClassFormatError { if (data == null) { throw new ClassFormatError("ClassDecoder.decodeClass: data==null"); } final ... | 27,881 |
public ClassFormatError(String s) { super(s); } | public ClassFormatError() { super(s); } | 27,882 |
public ClassFormatError(String s) { super(s); } | public ClassFormatError(String s) { } | 27,883 |
public VmInterfaceClass( String name, String superClassName, AbstractVmClassLoader loader, int accessFlags) { super(name, superClassName, loader, accessFlags); if (!superClassName.equals("java.lang.Object")) { throw new RuntimeException("Not a valid interface class, super class must be java.lang.Object"); } ... | public VmInterfaceClass( String name, String superClassName, AbstractVmClassLoader loader, int accessFlags) { super(name, superClassName, loader, accessFlags); if (!superClassName.equals("java.lang.Object")) { throw new RuntimeException("Not a valid interface class, super class must be java.lang.Object"); } ... | 27,884 |
public VmNormalClass( String name, String superClassName, AbstractVmClassLoader loader, int accessFlags) { super(name, superClassName, loader, accessFlags); testClassType(); } | public VmNormalClass( String name, String superClassName, AbstractVmClassLoader loader, int accessFlags) { super(name, superClassName, loader, accessFlags); testClassType(); } | 27,885 |
protected void setObjectSize(int objectSize) { if (this.objectSize == 0) { this.objectSize = objectSize; } else { throw new IllegalArgumentException("Cannot overwrite object size"); } } | protected void setObjectSize(int objectSize) { if (this.objectSize == 0) { this.objectSize = objectSize; } else { throw new IllegalArgumentException("Cannot overwrite object size"); } } | 27,886 |
public boolean hasNext() { if (knownMod != modCount) throw new ConcurrentModificationException(); return count > 0; } | public boolean hasNext() { if (knownMod != modCount) throw new ConcurrentModificationException(); return count > 0; } | 27,887 |
public int getModifiers() { return vmField.getModifiers(); } | public int getModifiers() { return vmField.getModifiers(); } | 27,888 |
public GLightweightPeer(Component comp) { this.comp = comp; } | public GLightweightPeer() { this.comp = comp; } | 27,889 |
public GLightweightPeer(Component comp) { this.comp = comp; } | public GLightweightPeer(Component comp) { } | 27,890 |
public void cancelPendingPaint(int x, int y, int width, int height) { } | public void cancelPendingPaint(int x, int y, int width, int height) { } | 27,894 |
public int checkImage(Image img, int width, int height, ImageObserver o) { return comp.getToolkit().checkImage(img, width, height, o); } | public int checkImage(Image img, int width, int height, ImageObserver o) { return -1; } | 27,895 |
public void coalescePaintEvent(PaintEvent e) { } | public void coalescePaintEvent(PaintEvent e) { } | 27,896 |
public void createBuffers(int x, BufferCapabilities capabilities) throws AWTException { } | public void createBuffers(int x, BufferCapabilities capabilities) throws AWTException { } | 27,897 |
public Image createImage(ImageProducer prod) { return comp.getToolkit().createImage(prod); } | public Image createImage(ImageProducer prod) { return null; } | 27,898 |
public void destroyBuffers() { } | public void destroyBuffers() { } | 27,900 |
public void disable() {} | public void disable() {} | 27,901 |
public void dispose() {} | public void dispose() {} | 27,902 |
public void enable() {} | public void enable() {} | 27,903 |
public void flip(BufferCapabilities.FlipContents contents) { } | public void flip(BufferCapabilities.FlipContents contents) { } | 27,906 |
public ColorModel getColorModel () { return comp.getColorModel (); } | public ColorModel getColorModel() { return comp.getColorModel (); } | 27,909 |
public ColorModel getColorModel () { return comp.getColorModel (); } | public ColorModel getColorModel () { return null; } | 27,910 |
public FontMetrics getFontMetrics(Font f) { return comp.getToolkit().getFontMetrics(f); } | public FontMetrics getFontMetrics(Font f) { return null; } | 27,911 |
public Insets getInsets() { if (containerInsets == null) containerInsets = new Insets (0,0,0,0); return containerInsets; } | public Insets getInsets() { if (containerInsets == null) containerInsets = new Insets (0,0,0,0); return containerInsets; } | 27,914 |
public Point getLocationOnScreen() { Point parentLocation = comp.getParent().getLocationOnScreen(); return new Point (parentLocation.x + comp.getX(), parentLocation.y + comp.getY()); } | public Point getLocationOnScreen() { Point parentLocation = comp.getParent().getLocationOnScreen(); return new Point (parentLocation.x + comp.getX(), parentLocation.y + comp.getY()); } | 27,915 |
public Dimension getMinimumSize() { return new Dimension(comp.getWidth(), comp.getHeight()); } | public Dimension getMinimumSize() { return minimumSize(); } | 27,916 |
public Dimension getPreferredSize() { return new Dimension(comp.getWidth(), comp.getHeight()); } | public Dimension getPreferredSize() { return preferredSize(); } | 27,917 |
public void handleEvent(AWTEvent e) {} | public void handleEvent(AWTEvent e) {} | 27,919 |
public void hide() {} | public void hide() {} | 27,921 |
public Insets insets() { return getInsets (); } | public Insets insets() { return null; } | 27,922 |
public boolean isReparentSupported() { return false; } | public boolean isReparentSupported() { return true; } | 27,927 |
public void layout() { } | public void layout() { } | 27,929 |
public Dimension minimumSize() { return getMinimumSize(); } | public Dimension minimumSize() { return new Dimension(0, 0); } | 27,930 |
public void paint(Graphics graphics) {} | public void paint(Graphics graphics) {} | 27,931 |
public Dimension preferredSize() { return getPreferredSize(); } | public Dimension preferredSize() { return new Dimension(0, 0); } | 27,932 |
public boolean prepareImage(Image img, int width, int height, ImageObserver o) { return comp.getToolkit().prepareImage(img, width, height, o); } | public boolean prepareImage(Image img, int width, int height, ImageObserver o) { return false; } | 27,933 |
public void print(Graphics graphics) {} | public void print(Graphics graphics) {} | 27,934 |
public void repaint(long tm, int x, int y, int width, int height) { Component p = comp.getParent(); if (p != null) p.repaint(tm, x + comp.getX(), y + comp.getY(), width, height); } | public void repaint(long tm, int x, int y, int width, int height) { Component p = comp.getParent(); if (p != null) p.repaint(tm, x + comp.getX(), y + comp.getY(), width, height); } | 27,935 |
public void reparent(ContainerPeer parent) { } | public void reparent(ContainerPeer parent) { } | 27,936 |
public void requestFocus() {} | public void requestFocus() {} | 27,937 |
public void reshape(int x, int y, int width, int height) {} | public void reshape(int x, int y, int width, int height) {} | 27,938 |
public void restack() { } | public void restack() { } | 27,939 |
public void setBackground(Color color) {} | public void setBackground(Color color) {} | 27,940 |
public void setBounds(int x, int y, int width, int height) {} | public void setBounds(int x, int y, int width, int height) {} | 27,941 |
public void setCursor(Cursor cursor) { Component p = comp.getParent(); while (p != null && p.isLightweight()) p = p.getParent(); if (p != null) { // Don't actually change the cursor of the component // otherwise other childs inherit this cursor. ComponentPeer peer = p.getPeer(); if (peer != null) ... | public void setCursor(Cursor cursor) { Component p = comp.getParent(); while (p != null && p.isLightweight()) p = p.getParent(); if (p != null) { // Don't actually change the cursor of the component // otherwise other childs inherit this cursor. ComponentPeer peer = p.getPeer(); if (peer != null) ... | 27,942 |
public void setEnabled(boolean enabled) {} | public void setEnabled(boolean enabled) {} | 27,943 |
public void setEventMask(long eventMask) {} | public void setEventMask(long eventMask) {} | 27,944 |
public void setFont(Font font) {} | public void setFont(Font font) {} | 27,945 |
public void setForeground(Color color) {} | public void setForeground(Color color) {} | 27,946 |
public void setVisible(boolean visible) {} | public void setVisible(boolean visible) {} | 27,947 |
public void show() {} | public void show() {} | 27,948 |
public void updateCursorImmediately() { } | public void updateCursorImmediately() { } | 27,949 |
public void disable(); | public void disable(); | 27,950 |
public void enable(); | public void enable(); | 27,951 |
public ColorModel getColorModel(); | public ColorModel getColorModel(); | 27,952 |
public void hide(); | public void hide(); | 27,953 |
public Dimension minimumSize(); | public Dimension minimumSize(); | 27,954 |
public Dimension preferredSize(); | public Dimension preferredSize(); | 27,955 |
public void print(Graphics graphics); | public void print(Graphics graphics); | 27,956 |
public void reshape(int x, int y, int width, int height); | public void reshape(int x, int y, int width, int height); | 27,957 |
public void show(); | public void show(); | 27,958 |
public Box(int axis) { setLayout(new BoxLayout(this, axis)); } | public Box(int axis) { setLayout(new BoxLayout(this, axis)); } | 27,959 |
public static Box createHorizontalBox() { return null; } | public static Box createHorizontalBox() { return new Box(BoxLayout.X_AXIS); } | 27,960 |
public static Component createRigidArea(Dimension d) { return null; } | public static Component createRigidArea(Dimension d) { return new Filler(d, d, d); } | 27,961 |
public static Box createVerticalBox() { return null; } | public static Box createVerticalBox() { return new Box(BoxLayout.Y_AXIS); } | 27,962 |
public GeneralNames(final byte[] encoded) throws IOException { names = new LinkedList(); DERReader der = new DERReader(encoded); DERValue nameList = der.read(); if (!nameList.isConstructed()) throw new IOException("malformed GeneralNames"); int len = 0; int i = 0; while (len < nameList.getL... | public GeneralNames(final byte[] encoded) throws IOException { names = new LinkedList(); DERReader der = new DERReader(encoded); DERValue nameList = der.read(); if (!nameList.isConstructed()) throw new IOException("malformed GeneralNames"); int len = 0; int i = 0; while (len < nameList.getL... | 27,963 |
public synchronized void transmit(SocketBuffer buf, long timeout) throws InterruptedException, TimeoutException { // Set the source address hwAddress.writeTo(buf, 6); // debug dump for investigating VWWare 3 network problems //dumpDebugInfo(); // ask buffer manager to send out the data bufferManager.transmit(bu... | publicdumpDebugInfo(); synchronizeddumpDebugInfo(); voiddumpDebugInfo(); transmit(SocketBufferdumpDebugInfo(); buf,dumpDebugInfo(); longdumpDebugInfo(); timeout) throwsdumpDebugInfo(); InterruptedException,dumpDebugInfo(); TimeoutExceptiondumpDebugInfo(); { //dumpDebugInfo(); SetdumpDebugInfo(); thedumpDebugInfo(); ... | 27,964 |
public void dumpData(PrintStream out) { initBlock.dumpData(out); rxRing.dumpData(out); txRing.dumpData(out); } | public void dumpData(PrintStream out) { initBlock.dumpData(out); rxRing.dumpData(out); txRing.dumpData(out); } | 27,965 |
public static void paintComponent(Graphics g, Component c, Container p, Rectangle r) { paintComponent(g, c, p, r.x, r.y, r.width, r.height); } | public static void paintComponent(Graphics g, Component c, Container p, Rectangle r) { paintComponent(g, c, p, r.x, r.y, r.width, r.height); } | 27,967 |
public byte[] lastUpdate(byte[] in, int offset, int length) throws TransformerException { byte[] result = update(in, offset, length); byte[] rest = lastUpdate(); if (rest.length > 0) { byte[] newResult = new byte[result.length + rest.length]; System.arraycopy(result, 0, newResult, 0,... | public byte[] lastUpdate(byte[] in, int offset, int length) throws TransformerException { byte[] result = update(in, offset, length); byte[] rest = lastUpdate(); if (rest.length > 0) { byte[] newResult = new byte[result.length + rest.length]; System.arraycopy(result, 0, newResult, 0,... | 27,968 |
public byte[] lastUpdate(byte[] in, int offset, int length) throws TransformerException { byte[] result = update(in, offset, length); byte[] rest = lastUpdate(); if (rest.length > 0) { byte[] newResult = new byte[result.length + rest.length]; System.arraycopy(result, 0, newResult, 0,... | public byte[] lastUpdate(byte[] in, int offset, int length) throws TransformerException { byte[] result = update(in, offset, length); byte[] rest = lastUpdate(); if (rest.length > 0) { byte[] newResult = new byte[result.length + rest.length]; System.arraycopy(result, 0, newResult, 0,... | 27,969 |
public byte[] update(byte[] in, int offset, int length) throws TransformerException { if (wired == null) { throw new IllegalStateException(); } byte[] result = (wired == Direction.FORWARD ? forwardUpdate(in, offset, length) ... | public byte[] update(byte[] in, int offset, int length) throws TransformerException { if (wired == null) { throw new IllegalStateException(); } byte[] result = (wired == Direction.FORWARD ? forwardUpdate(in, offset, length) ... | 27,970 |
public byte[] update(byte[] in, int offset, int length) throws TransformerException { if (wired == null) { throw new IllegalStateException(); } byte[] result = (wired == Direction.FORWARD ? forwardUpdate(in, offset, length) ... | public byte[] update(byte[] in, int offset, int length) throws TransformerException { if (wired == null) { throw new IllegalStateException(); } byte[] result = (wired == Direction.FORWARD ? forwardUpdate(in, offset, length) ... | 27,971 |
public BigDecimal (BigInteger num) { this (num, 0); } | public BigDecimal (int val) { this (num, 0); } | 27,972 |
public BigDecimal (BigInteger num) { this (num, 0); } | public BigDecimal (BigInteger num) { this.intVal = BigInteger.valueOf(val); this.scale = 0; } | 27,973 |
public BigDecimal add (BigDecimal val) { // For addition, need to line up decimals. Note that the movePointRight // method cannot be used for this as it might return a BigDecimal with // scale == 0 instead of the scale we need. BigInteger op1 = intVal; BigInteger op2 = val.intVal; if (scale < val... | public BigDecimal add (BigDecimal val) { // For addition, need to line up decimals. Note that the movePointRight // method cannot be used for this as it might return a BigDecimal with // scale == 0 instead of the scale we need. BigInteger op1 = intVal; BigInteger op2 = val.intVal; if (scale < val... | 27,974 |
public BigDecimal add (BigDecimal val) { // For addition, need to line up decimals. Note that the movePointRight // method cannot be used for this as it might return a BigDecimal with // scale == 0 instead of the scale we need. BigInteger op1 = intVal; BigInteger op2 = val.intVal; if (scale < val... | public BigDecimal add (BigDecimal val) { // For addition, need to line up decimals. Note that the movePointRight // method cannot be used for this as it might return a BigDecimal with // scale == 0 instead of the scale we need. BigInteger op1 = intVal; BigInteger op2 = val.intVal; if (scale < val... | 27,975 |
public int compareTo (BigDecimal val) { if (scale == val.scale) return intVal.compareTo (val.intVal); BigInteger thisParts[] = intVal.divideAndRemainder (BigInteger.valueOf (10).pow (scale)); BigInteger valParts[] = val.intVal.divideAndRemainder (BigInteger.valueOf (10).pow (val.scale)); ... | public int compareTo (Object obj) { if (scale == val.scale) return intVal.compareTo (val.intVal); BigInteger thisParts[] = intVal.divideAndRemainder (BigInteger.valueOf (10).pow (scale)); BigInteger valParts[] = val.intVal.divideAndRemainder (BigInteger.valueOf (10).pow (val.scale)); ... | 27,976 |
public int compareTo (BigDecimal val) { if (scale == val.scale) return intVal.compareTo (val.intVal); BigInteger thisParts[] = intVal.divideAndRemainder (BigInteger.valueOf (10).pow (scale)); BigInteger valParts[] = val.intVal.divideAndRemainder (BigInteger.valueOf (10).pow (val.scale)); ... | public int compareTo (BigDecimal val) { if (scale == val.scale) return intVal.compareTo (val.intVal); BigInteger thisParts[] = intVal.divideAndRemainder (BigInteger.valueOf (10).pow (scale)); BigInteger valParts[] = val.intVal.divideAndRemainder (BigInteger.valueOf (10).pow (val.scale)); ... | 27,977 |
public BigDecimal movePointRight (int n) { if (n < 0) return movePointLeft (-n); if (scale >= n) return new BigDecimal (intVal, scale - n); return new BigDecimal (intVal.multiply (BigInteger.valueOf (10).pow (n - scale)), 0); } | public BigDecimal movePointRight (int n) { if (n < 0) return movePointLeft (-n); if (scale >= n) return new BigDecimal (intVal, scale - n); return new BigDecimal (intVal.multiply (BigInteger.TEN.pow (n - scale)), 0); } | 27,978 |
public BigInteger toBigInteger () { return scale == 0 ? intVal : intVal.divide (BigInteger.valueOf (10).pow (scale)); } | public BigInteger toBigInteger () { return scale == 0 ? intVal : intVal.divide (BigInteger.valueOf (10).pow (scale)); } | 27,979 |
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | public String toString() { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0)... | 27,980 |
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | 27,981 |
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | publicStringtoString(){StringbigStr=intVal.toString();if(scale==0)returnbigStr;booleannegative=(bigStr.charAt(0)=='-');intpoint=bigStr.length()-scale-(negative?1:0);StringBuffersb=newStringBuffer(bigStr.length()+2+ (point<=0?(-point+1):0));if(point<=0){if(negative)sb.append('-');sb.append('0').append('.');while(poin... | 27,982 |
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | 27,983 |
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | 27,984 |
public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | public String toString () { String bigStr = intVal.toString(); if (scale == 0) return bigStr; boolean negative = (bigStr.charAt(0) == '-'); int point = bigStr.length() - scale - (negative ? 1 : 0); StringBuffer sb = new StringBuffer(bigStr.length() + 2 + (point <= 0 ? (-point + 1) : 0... | 27,985 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.