bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ... | void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ... | 32,232 |
public DragSourceContext(DragSourceContextPeer peer, DragGestureEvent dge, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) { } | public DragSourceContext(DragSourceContextPeer peer, DragGestureEvent dge, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) { } | 32,233 |
public void addDragSourceListener(DragSourceListener l) throws TooManyListenersException { } | public void addDragSourceListener (DragSourceListener dsl) throws TooManyListenersException { } | 32,235 |
public Component getComponent() { return null; } | public Component getComponent() { return trigger.getComponent (); } | 32,237 |
public Cursor getCursor() { return null; } | public Cursor getCursor() { return cursor; } | 32,238 |
public DragSource getDragSource() { return null; } | public DragSource getDragSource() { return trigger.getDragSource (); } | 32,239 |
public int getSourceActions() { return 0; } | public int getSourceActions() { return trigger.getSourceAsDragGestureRecognizer ().getSourceActions (); } | 32,240 |
public Transferable getTransferable() { return null; } | public Transferable getTransferable() { return transferable; } | 32,241 |
public DragGestureEvent getTrigger() { return null; } | public DragGestureEvent getTrigger() { return trigger; } | 32,242 |
public void removeDragSourceListener(DragSourceListener l) { } | public void removeDragSourceListener (DragSourceListener dsl) { } | 32,243 |
public void setCursor(Cursor c) { } | public void setCursor (Cursor cursor) { } | 32,245 |
protected String getText(Element elt) throws BadLocationException { if (! elt.isLeaf()) throw new BadLocationException("Element is not a leaf", elt.getStartOffset()); return document.getText(elt.getStartOffset(), elt.getEndOffset()); } | protected String getText(Element elt) throws BadLocationException { if (! elt.isLeaf()) throw new BadLocationException("Element is not a leaf", elt.getStartOffset()); return document.getText(elt.getStartOffset(), elt.getEndOffset() - elt.getStartOffset()); } | 32,247 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then current ... | 32,248 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. for (int i = 0; i < minSize; i++) { minSize = selectedPath.size(); // if new selected path contains more elements then curre... | 32,249 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 32,250 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 32,251 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 32,252 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 32,253 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 32,254 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 32,255 |
public boolean equals(Object obj) { if (! (obj instanceof Inet6Address)) return false; // this.ipaddress is never set in this class except to // the value of the super class' addr. The super classes // equals(Object) will do the compare. return super.equals(obj); } | public boolean equals(Object obj) { if (! (obj instanceof Inet6Address)) return false; // this.ipaddress is never set in this class except to // the value of the super class' addr. The super classes // equals(Object) will do the compare. return super.equals(obj); } | 32,257 |
public VMWareCore(VMWareDriver driver, PCIDevice device) throws ResourceNotFreeException, DriverException { super(640, 480); this.driver = driver; final int basePort; if (device.getConfig().getDeviceID() == PCI_DEVICE_ID_VMWARE_SVGA) { basePort = SVGA_LEGACY_BASE_PORT; this.indexPort = SVGA_LEGACY_BASE_PORT + ... | public VMWareCore(VMWareDriver driver, PCIDevice device) throws ResourceNotFreeException, DriverException { super(640, 480); this.driver = driver; final int basePort; if (device.getConfig().getDeviceID() == PCI_DEVICE_ID_VMWARE_SVGA) { basePort = SVGA_LEGACY_BASE_PORT; this.indexPort = SVGA_LEGACY_BASE_PORT + ... | 32,259 |
public static BitmapGraphics create8bppInstance(MemoryResource mem, int width, int height, int bytesPerLine, int offset) { return new BitmapGraphics8bpp(mem, width, height, offset, bytesPerLine); } | public static BitmapGraphics create8bppInstance(MemoryResource mem, int width, int height, int bytesPerLine, int offset) { return new BitmapGraphics8bpp(mem, width, height, offset, bytesPerLine); } | 32,260 |
public static BitmapGraphics create16bppInstance(MemoryResource mem, int width, int height, int bytesPerLine, int offset) { return new BitmapGraphics16bpp(mem, width, height, offset, bytesPerLine); } | public static BitmapGraphics create16bppInstance(MemoryResource mem, int width, int height, int bytesPerLine, int offset) { return new BitmapGraphics16bpp(mem, width, height, offset, bytesPerLine); } | 32,261 |
public static BitmapGraphics create24bppInstance(MemoryResource mem, int width, int height, int bytesPerLine, int offset) { return new BitmapGraphics24bpp(mem, width, height, offset, bytesPerLine); } | public static BitmapGraphics create24bppInstance(MemoryResource mem, int width, int height, int bytesPerLine, int offset) { return new BitmapGraphics24bpp(mem, width, height, offset, bytesPerLine); } | 32,262 |
public static BitmapGraphics create32bppInstance(MemoryResource mem, int width, int height, int bytesPerLine, int offset) { return new BitmapGraphics32bpp(mem, width, height, offset, bytesPerLine); } | public static BitmapGraphics create32bppInstance(MemoryResource mem, int width, int height, int bytesPerLine, int offset) { return new BitmapGraphics32bpp(mem, width, height, offset, bytesPerLine); } | 32,263 |
protected AccessibleJComponent() { changeSupport = new SwingPropertyChangeSupport(this); } | protected AccessibleJComponent() { changeSupport = new PropertyChangeSupport(this); } | 32,264 |
public void addPropertyChangeListener(PropertyChangeListener listener) { if (changeSupport == null) changeSupport = new SwingPropertyChangeSupport(this); changeSupport.addPropertyChangeListener(listener); } | public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) { if (changeSupport == null) changeSupport = new SwingPropertyChangeSupport(this); changeSupport.addPropertyChangeListener(listener); } | 32,265 |
public void addPropertyChangeListener(PropertyChangeListener listener) { if (changeSupport == null) changeSupport = new SwingPropertyChangeSupport(this); changeSupport.addPropertyChangeListener(listener); } | public void addPropertyChangeListener(PropertyChangeListener listener) { if (changeSupport == null) changeSupport = new SwingPropertyChangeSupport(this); changeSupport.addPropertyChangeListener(listener); } | 32,266 |
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null || newParent instanceof Wind... | 32,267 |
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | 32,268 |
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | 32,269 |
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | 32,270 |
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I... | 32,271 |
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, Boolean.valueOf(oldValue), Boolean.valueOf(newValue)); } | public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, Boolean.valueOf(oldValue), Boolean.valueOf(newValue)); } | 32,272 |
public void printBorder(Graphics g) { paintBorder(g); } | protected void printBorder(Graphics g) { paintBorder(g); } | 32,273 |
public void printChildren(Graphics g) { paintChildren(g); } | protected void printChildren(Graphics g) { paintChildren(g); } | 32,274 |
public void printComponent(Graphics g) { paintComponent(g); } | protected void printComponent(Graphics g) { paintComponent(g); } | 32,275 |
public short getBitCount() { return biBitCount; } | public short getBitCount() { return biBitCount; } | 32,276 |
public int getCompression(){ return biCompression; } | public int getCompression(){ return biCompression; } | 32,277 |
public int getNumberOfPaletteEntries(){ if(biClrUsed == 0) switch(biBitCount){ case 1: return 2; case 4: return 16; case 8: return 256; default: // should not happen return 0; } return biClrUsed; } | public int getNumberOfPaletteEntries(){ if(biClrUsed == 0) switch(biBitCount){ case 1: return 2; case 4: return 16; case 8: return 256; default: // should not happen return 0; } return biClrUsed; } | 32,278 |
public Dimension getSize(){ return new Dimension(biWidth, biHeight); } | public Dimension getSize(){ return new Dimension(biWidth, biHeight); } | 32,279 |
public void setBitCount(short bitcount) throws BMPException { switch(bitcount){ case 1: case 4: case 8: case 16: case 24: case 32: biBitCount = bitcount; break; default: throw new BMPException("Invalid number of bits per pixel: "+ bitcount); } } | public void setBitCount(short bitcount) throws BMPException { switch(bitcount){ case 1: case 4: case 8: case 16: case 24: case 32: biBitCount = bitcount; break; default: throw new BMPException("Invalid number of bits per pixel: "+ bitcount); } } | 32,280 |
public void setBitCount(short bitcount) throws BMPException { switch(bitcount){ case 1: case 4: case 8: case 16: case 24: case 32: biBitCount = bitcount; break; default: throw new BMPException("Invalid number of bits per pixel: "+ bitcount); } } | public void setBitCount(short bitcount) throws BMPException { switch(bitcount){ case 1: case 4: case 8: case 16: case 24: case 32: biBitCount = bitcount; break; default: throw new BMPException("Invalid number of bits per pixel: "+ bitcount); } } | 32,281 |
public void setCompression(int compression) throws BMPException { switch(compression){ case BI_RLE8: if(getBitCount() != 8) throw new BMPException("Invalid number of bits per pixel."); biCompression = compression; break; case BI_RLE4: if(getBitCount() != 4) throw new BMPException("Invalid number o... | public void setCompression(int compression) throws BMPException { switch(compression){ case BI_RLE8: if(getBitCount() != 8) throw new BMPException("Invalid number of bits per pixel."); biCompression = compression; break; case BI_RLE4: if(getBitCount() != 4) throw new BMPException("Invalid number o... | 32,282 |
public void setCompression(int compression) throws BMPException { switch(compression){ case BI_RLE8: if(getBitCount() != 8) throw new BMPException("Invalid number of bits per pixel."); biCompression = compression; break; case BI_RLE4: if(getBitCount() != 4) throw new BMPException("Invalid number o... | public void setCompression(int compression) throws BMPException { switch(compression){ case BI_RLE8: if(getBitCount() != 8) throw new BMPException("Invalid number of bits per pixel."); biCompression = compression; break; case BI_RLE4: if(getBitCount() != 4) throw new BMPException("Invalid number o... | 32,283 |
public void setCompression(int compression) throws BMPException { switch(compression){ case BI_RLE8: if(getBitCount() != 8) throw new BMPException("Invalid number of bits per pixel."); biCompression = compression; break; case BI_RLE4: if(getBitCount() != 4) throw new BMPException("Invalid number o... | public void setCompression(int compression) throws BMPException { switch(compression){ case BI_RLE8: if(getBitCount() != 8) throw new BMPException("Invalid number of bits per pixel."); biCompression = compression; break; case BI_RLE4: if(getBitCount() != 4) throw new BMPException("Invalid number o... | 32,284 |
public void setSize(Dimension d){ biWidth = (int)d.getWidth(); biHeight = (int)d.getHeight(); } | public void setSize(Dimension d){ biWidth = (int)d.getWidth(); biHeight = (int)d.getHeight(); } | 32,285 |
protected ActivationGroup(ActivationGroupID groupID) throws RemoteException { throw new Error("Not implemented");} | protected ActivationGroup(ActivationGroupID groupID) throws RemoteException { throw new Error("Not implemented");} | 32,286 |
public abstract void activeObject(ActivationID id, Remote obj) throws ActivationException, UnknownObjectException, RemoteException; | public abstract void activeObject(ActivationID id, Remote obj) throws ActivationException, UnknownObjectException, RemoteException; | 32,287 |
public static ActivationGroup createGroup(ActivationGroupID id, ActivationGroupDesc desc, long incarnation) throws ActivationException { throw new Error("Not implemented");} | public static ActivationGroup createGroup(ActivationGroupID id, ActivationGroupDesc desc, long incarnation) throws ActivationException { throw new Error("Not implemented");} | 32,288 |
public static ActivationSystem getSystem() throws ActivationException { throw new Error("Not implemented");} | public static ActivationSystem getSystem() throws ActivationException { throw new Error("Not implemented");} | 32,289 |
protected void inactiveGroup() throws UnknownGroupException, RemoteException { throw new Error("Not implemented");} | protected void inactiveGroup() throws UnknownGroupException, RemoteException { throw new Error("Not implemented");} | 32,290 |
public boolean inactiveObject(ActivationID id) throws ActivationException, UnknownObjectException, RemoteException { throw new Error("Not implemented");} | public boolean inactiveObject(ActivationID id) throws ActivationException, UnknownObjectException, RemoteException { throw new Error("Not implemented");} | 32,291 |
public static void setSystem(ActivationSystem system) throws ActivationException { throw new Error("Not implemented");} | public static void setSystem(ActivationSystem system) throws ActivationException { throw new Error("Not implemented");} | 32,292 |
private int readLength() throws IOException { int i = in.read(); if (i == -1) throw new EOFException(); encBuf.write(i); if ((i & ~0x7F) == 0) { return i; } else if (i < 0xFF) { byte[] octets = new byte[i & 0x7F]; in.read(octets); encBuf.write(octets); ... | protected int readLength() throws IOException { int i = in.read(); if (i == -1) throw new EOFException(); encBuf.write(i); if ((i & ~0x7F) == 0) { return i; } else if (i < 0xFF) { byte[] octets = new byte[i & 0x7F]; in.read(octets); encBuf.write(octets);... | 32,293 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | publicKeyPairgenerate(){log.entering(this.getClass().getName(),"generate");BigIntegerp,q,n,d;//1.Generateaprimepintheinterval[2**(M-1),2**M-1],where//M=CEILING(L/2),andsuchthatGCD(p,e)=1intM=(L+1)/2;BigIntegerlower=TWO.pow(M-1);BigIntegerupper=TWO.pow(M).subtract(ONE);byte[]kb=newbyte[(M+7)/8];//enoughbytestoframeMbits... | 32,295 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | publicKeyPairgenerate(){log.entering(this.getClass().getName(),"generate");BigIntegerp,q,n,d;//1.Generateaprimepintheinterval[2**(M-1),2**M-1],where//M=CEILING(L/2),andsuchthatGCD(p,e)=1intM=(L+1)/2;BigIntegerlower=TWO.pow(M-1);BigIntegerupper=TWO.pow(M).subtract(ONE);byte[]kb=newbyte[(M+7)/8];//enoughbytestoframeMbits... | 32,296 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | 32,297 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | 32,298 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | 32,299 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | 32,300 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | publicKeyPairgenerate(){log.entering(this.getClass().getName(),"generate");BigIntegerp,q,n,d;//1.Generateaprimepintheinterval[2**(M-1),2**M-1],where//M=CEILING(L/2),andsuchthatGCD(p,e)=1intM=(L+1)/2;BigIntegerlower=TWO.pow(M-1);BigIntegerupper=TWO.pow(M).subtract(ONE);byte[]kb=newbyte[(M+7)/8];//enoughbytestoframeMbits... | 32,301 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | publicKeyPairgenerate(){log.entering(this.getClass().getName(),"generate");BigIntegerp,q,n,d;//1.Generateaprimepintheinterval[2**(M-1),2**M-1],where//M=CEILING(L/2),andsuchthatGCD(p,e)=1intM=(L+1)/2;BigIntegerlower=TWO.pow(M-1);BigIntegerupper=TWO.pow(M).subtract(ONE);byte[]kb=newbyte[(M+7)/8];//enoughbytestoframeMbits... | 32,302 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | publicKeyPairgenerate(){log.entering(this.getClass().getName(),"generate");BigIntegerp,q,n,d;//1.Generateaprimepintheinterval[2**(M-1),2**M-1],where//M=CEILING(L/2),andsuchthatGCD(p,e)=1intM=(L+1)/2;BigIntegerlower=TWO.pow(M-1);BigIntegerupper=TWO.pow(M).subtract(ONE);byte[]kb=newbyte[(M+7)/8];//enoughbytestoframeMbits... | 32,303 |
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =... | publicKeyPairgenerate(){log.entering(this.getClass().getName(),"generate");BigIntegerp,q,n,d;//1.Generateaprimepintheinterval[2**(M-1),2**M-1],where//M=CEILING(L/2),andsuchthatGCD(p,e)=1intM=(L+1)/2;BigIntegerlower=TWO.pow(M-1);BigIntegerupper=TWO.pow(M).subtract(ONE);byte[]kb=newbyte[(M+7)/8];//enoughbytestoframeMbits... | 32,304 |
private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else getDefaultPRNG().nextBytes(buffer); } | private void nextRandomBytes(byte[] buffer) if (rnd != null) rnd.nextBytes(buffer); } else getDefaultPRNG().nextBytes(buffer); } | 32,306 |
private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); } else getDefaultPRNG().nextBytes(buffer); } | private void nextRandomBytes(byte[] buffer) { if (rnd != null) { rnd.nextBytes(buffer); else getDefaultPRNG().nextBytes(buffer); } | 32,307 |
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param... | publicvoidsetup(Mapattributes){log.entering(this.getClass().getName(),"setup",attributes);//dowehaveaSecureRandom,orshouldweuseourown?rnd=(SecureRandom)attributes.get(SOURCE_OF_RANDOMNESS);//arewegivenasetofRSAparamsorweshalluseourown?RSAKeyGenParameterSpecparams=(RSAKeyGenParameterSpec)attributes.get(RSA_PARAMETERS);/... | 32,308 |
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param... | publicvoidsetup(Mapattributes){log.entering(this.getClass().getName(),"setup",attributes);//dowehaveaSecureRandom,orshouldweuseourown?rnd=(SecureRandom)attributes.get(SOURCE_OF_RANDOMNESS);//arewegivenasetofRSAparamsorweshalluseourown?RSAKeyGenParameterSpecparams=(RSAKeyGenParameterSpec)attributes.get(RSA_PARAMETERS);/... | 32,309 |
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param... | publicvoidsetup(Mapattributes){log.entering(this.getClass().getName(),"setup",attributes);//dowehaveaSecureRandom,orshouldweuseourown?rnd=(SecureRandom)attributes.get(SOURCE_OF_RANDOMNESS);//arewegivenasetofRSAparamsorweshalluseourown?RSAKeyGenParameterSpecparams=(RSAKeyGenParameterSpec)attributes.get(RSA_PARAMETERS);/... | 32,310 |
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param... | publicvoidsetup(Mapattributes){log.entering(this.getClass().getName(),"setup",attributes);//dowehaveaSecureRandom,orshouldweuseourown?rnd=(SecureRandom)attributes.get(SOURCE_OF_RANDOMNESS);//arewegivenasetofRSAparamsorweshalluseourown?RSAKeyGenParameterSpecparams=(RSAKeyGenParameterSpec)attributes.get(RSA_PARAMETERS);/... | 32,311 |
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param... | public void setup(Map attributes) log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec params ... | 32,312 |
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param... | public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param... | 32,313 |
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param... | if (Configuration.DEBUG) if (Configuration.DEBUG) publicif (Configuration.DEBUG) voidif (Configuration.DEBUG) setup(Mapif (Configuration.DEBUG) attributes)if (Configuration.DEBUG) if (Configuration.DEBUG) {if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) if (Configuration.DEBUG) log.entering(t... | 32,314 |
public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va... | private static int gcd(int a, int b) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return v... | 32,315 |
public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va... | public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va... | 32,316 |
public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va... | public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va... | 32,317 |
public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va... | public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va... | 32,318 |
public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va... | public BigInteger gcd(BigInteger y) { int xval = ival; int yval = y.ival; if (words == null) { if (xval == 0) return abs(y); if (y.words == null && xval != Integer.MIN_VALUE && yval != Integer.MIN_VALUE) { if (xval < 0) xval = -xval; if (yval < 0) yval = -yval; return va... | 32,319 |
public PixelGrabber(Image img, int x, int y, int w, int h, int pix[], int off, int scansize) { this(img.getSource(), x, y, w, h, pix, off, scansize); } | public PixelGrabber(Image img, int x, int y, int w, int h, int pix[], int off, int scansize) { this(img.getSource(), x, y, w, h, pix, off, scansize); } | 32,320 |
public boolean grabPixels() throws InterruptedException { return grabPixels(0); } | public boolean grabPixels() throws InterruptedException { return grabPixels(0); } | 32,321 |
public Insets getBorderInsets(Component c, Insets insets) { Insets borderInsets; if (insets == null) insets = new Insets (0,0,0,0); else insets.left = insets.right = insets.top = insets.bottom = 0; // If there is an outside border, add it to insets. if (outsideBorder != null) { borde... | public Insets getBorderInsets(Component c, Insets insets) { Insets borderInsets; if (insets == null) insets = new Insets(0, 0, 0, 0); else insets.left = insets.right = insets.top = insets.bottom = 0; // If there is an outside border, add it to insets. if (outsideBorder != null) { bor... | 32,322 |
public void addHelpMenu(Menu helpMenu) { helpMenu.addNotify(); jComponent.setHelpMenu(((SwingMenuPeer) helpMenu.getPeer()).jComponent); } | public void addHelpMenu(Menu helpMenu) { helpMenu.addNotify(); jComponent.add(((SwingMenuPeer) helpMenu.getPeer()).jComponent); } | 32,323 |
public JMenuBar() { selectionModel = new DefaultSingleSelectionModel(); paintBorder = true; updateUI(); } | public JMenuBar() { selectionModel = new DefaultSingleSelectionModel(); borderPainted = true; updateUI(); } | 32,324 |
public abstract void addHelpMenu(Menu menu); | public abstract void addHelpMenu(Menu menu); | 32,325 |
public abstract void addMenu(Menu menu); | public abstract void addMenu(Menu menu); | 32,326 |
public abstract void delMenu(int index); | public abstract void delMenu(int index); | 32,327 |
public static long UTC(int year, int month, int date, int hrs, int min, int sec) { Date d = new Date(year, month, date, hrs, min, sec); d.isGMT = true; return d.getTime(); } | public static long UTC(int year, int month, int date, int hrs, int min, int sec) { Date d = new Date(year, month, date, hrs, min, sec); d.isGMT = true; return d.getTime(); } | 32,328 |
public boolean after(Date when) { return getTime() > when.getTime(); } | public boolean after(Date when) { return getTime() > when.getTime(); } | 32,329 |
public boolean before(Date when) { return getTime() < when.getTime(); } | public boolean before(Date when) { return getTime() < when.getTime(); } | 32,330 |
public int getDate() { refresh_components(); return date; } | public int getDate() { refresh_components(); return date; } | 32,331 |
public int getDay() { refresh_components(); return day; } | public int getDay() { refresh_components(); return day; } | 32,332 |
public int getHours() { refresh_components(); return hrs; } | public int getHours() { refresh_components(); return hrs; } | 32,333 |
public int getMinutes() { refresh_components(); return min; } | public int getMinutes() { refresh_components(); return min; } | 32,334 |
public int getMonth() { refresh_components(); return month; } | public int getMonth() { refresh_components(); return month; } | 32,335 |
public int getSeconds() { refresh_components(); return sec; } | public int getSeconds() { refresh_components(); return sec; } | 32,336 |
public int getTimezoneOffset() { if (isGMT) return 0; refresh_millis(); return timezone + (isdst ? 60 : 0); } | public int getTimezoneOffset() { if (isGMT) return 0; refresh_millis(); return timezone + (isdst ? 60 : 0); } | 32,337 |
public int getYear() { refresh_components(); return year; } | public int getYear() { refresh_components(); return year; } | 32,338 |
public int hashCode() { refresh_millis(); return (int) (millis ^ (millis >>> 32)); } | public int hashCode() { refresh_millis(); return (int) (millis ^ (millis >>> 32)); } | 32,339 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.