bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public final void enableReschedule(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (releaseSchedulerLock) { scheduler.unlock(otherLock); } lockCount--; if (lockCount == 0) { getTSIAddress() .atomicAnd(Word.fromIntSignExtend(~TSI_BLOCK_... | public final void enableReschedule(boolean releaseSchedulerLock) { if (releaseSchedulerLock) { scheduler.unlock(otherLock); } lockCount--; if (lockCount == 0) { getTSIAddress() .atomicAnd(Word.fromIntSignExtend(~TSI_BLOCK_SWITCH)); } } | 32,784 |
public final void enableReschedule(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (releaseSchedulerLock) { scheduler.unlock(otherLock); } lockCount--; if (lockCount == 0) { getTSIAddress() .atomicAnd(Word.fromIntSignExtend(~TSI_BLOCK_... | public final void enableReschedule(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (releaseSchedulerLock) { scheduler.unlock(); } lockCount--; if (lockCount == 0) { getTSIAddress() .atomicAnd(Word.fromIntSignExtend(~TSI_BLOCK_SWITCH));... | 32,785 |
final void reschedule() { // Unsafe.debug("R"); this.nextThread = null; try { // Get the current thread final VmThread current = currentThread; this.nextThread = current; // Process kernel debugger data if (Unsafe.isKdbEnabled()) { ... | final void reschedule() { // Unsafe.debug("R"); this.nextThread = null; try { // Get the current thread final VmThread current = currentThread; this.nextThread = current; // Process kernel debugger data if (Unsafe.isKdbEnabled()) { ... | 32,786 |
final void reschedule() { // Unsafe.debug("R"); this.nextThread = null; try { // Get the current thread final VmThread current = currentThread; this.nextThread = current; // Process kernel debugger data if (Unsafe.isKdbEnabled()) { ... | final void reschedule() { // Unsafe.debug("R"); this.nextThread = null; try { // Get the current thread final VmThread current = currentThread; this.nextThread = current; // Process kernel debugger data if (Unsafe.isKdbEnabled()) { ... | 32,787 |
final void reschedule() { // Unsafe.debug("R"); this.nextThread = null; try { // Get the current thread final VmThread current = currentThread; this.nextThread = current; // Process kernel debugger data if (Unsafe.isKdbEnabled()) { ... | newThread.wakeUpByScheduler(); newThread.wakeUpByScheduler(); newThread.wakeUpByScheduler(); newThread.wakeUpByScheduler(); finalnewThread.wakeUpByScheduler(); voidnewThread.wakeUpByScheduler(); reschedule()newThread.wakeUpByScheduler(); {newThread.wakeUpByScheduler(); newThread.wakeUpByScheduler(); newThread.wakeUpByS... | 32,788 |
final void suspend(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (lockCount != 1) { Unsafe.debug("Suspend with invalid lockCount: "); Unsafe.debug(lockCount); architecture.getStackReader().debugStackTrace(); Unsafe.die("suspend"); } fina... | final void suspend(boolean releaseSchedulerLock) { if (lockCount != 1) { Unsafe.debug("Suspend with invalid lockCount: "); Unsafe.debug(lockCount); architecture.getStackReader().debugStackTrace(); Unsafe.die("suspend"); } final VmThread t = this.curre... | 32,789 |
final void suspend(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (lockCount != 1) { Unsafe.debug("Suspend with invalid lockCount: "); Unsafe.debug(lockCount); architecture.getStackReader().debugStackTrace(); Unsafe.die("suspend"); } fina... | final void suspend(boolean releaseSchedulerLock, ProcessorLock otherLock) { if (lockCount != 1) { Unsafe.debug("Suspend with invalid lockCount: "); Unsafe.debug(lockCount); architecture.getStackReader().debugStackTrace(); Unsafe.die("suspend"); } fina... | 32,790 |
final void yield() { threadSwitchIndicator = threadSwitchIndicator.or(Word .fromIntZeroExtend(TSI_SWITCH_NEEDED)); if (threadSwitchIndicator.NE(Word .fromIntZeroExtend(TSI_SWITCH_REQUESTED))) { Unsafe.debug("Yield with invalid tsi: " + threadSwitchIndicator); ... | final void yield(boolean ignorePriority) { final VmThread t = this.currentThread; t.setYieldingState(); scheduler.addToReadyQueue(t, ignorePriority, "proc.yield"); threadSwitchIndicator = threadSwitchIndicator.or(Word .fromIntZeroExtend(TSI_SWITCH_NEEDED)); if (threadSwitchIndicator.NE(... | 32,791 |
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); } | protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); } | 32,793 |
public JRootPane createRootPane() { return new JRootPane(); } | public JRootPane createRootPane() { return new JRootPane(); } | 32,794 |
public AccessibleContext getAccessibleContext() { return null; } | public AccessibleContext getAccessibleContext() { return null; } | 32,795 |
public Container getContentPane() { return getRootPane().getContentPane(); } | public Container getContentPane() { return getRootPane().getContentPane(); } | 32,796 |
int getDefaultCloseOperation() { return close_action; } | int getDefaultCloseOperation() { return close_action; } | 32,797 |
public Component getGlassPane() { return getRootPane().getGlassPane(); } | public Component getGlassPane() { return getRootPane().getGlassPane(); } | 32,798 |
public JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); } | public JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); } | 32,799 |
public JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); } | public JLayeredPane getLayeredPane() { return getRootPane().getLayeredPane(); } | 32,800 |
public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); System.out.println("JFrame.getPrefSize(): " + d + " , comp="+ getComponentCount () + ", layout=" + getLayout()); return d; } | public Dimension getPreferredSize() { Dimension d = super.getPreferredSize(); System.out.println("JFrame.getPrefSize(): " + d + " , comp=" + getComponentCount() + ", layout=" + getLayout()); return d; } | 32,801 |
protected boolean isRootPaneCheckingEnabled() { return checking; } | protected boolean isRootPaneCheckingEnabled() { return checking; } | 32,802 |
protected String paramString() { return "JFrame"; } | protected String paramString() { return "JFrame"; } | 32,803 |
protected void processKeyEvent(KeyEvent e) { super.processKeyEvent(e); } | protected void processKeyEvent(KeyEvent e) { super.processKeyEvent(e); } | 32,804 |
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: {... | protectedvoidprocessWindowEvent(WindowEvente){//System.out.println("PROCESS_WIN_EV-1:"+e); //super.processWindowEvent(e);//System.out.println("PROCESS_WIN_EV-2:"+e);switch(e.getID()){caseWindowEvent.WINDOW_CLOSING:{switch(close_action){caseEXIT_ON_CLOSE:{System.out.println("userrequestedexitonclose");System.exit(1);bre... | 32,805 |
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: {... | protectedvoidprocessWindowEvent(WindowEvente){//System.out.println("PROCESS_WIN_EV-1:"+e); //super.processWindowEvent(e);//System.out.println("PROCESS_WIN_EV-2:"+e);switch(e.getID()){caseWindowEvent.WINDOW_CLOSING:{switch(close_action){caseEXIT_ON_CLOSE:{System.out.println("userrequestedexitonclose");System.exit(1);bre... | 32,806 |
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: {... | protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: {... | 32,807 |
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: {... | protectedvoidprocessWindowEvent(WindowEvente){//System.out.println("PROCESS_WIN_EV-1:"+e); //super.processWindowEvent(e);//System.out.println("PROCESS_WIN_EV-2:"+e);switch(e.getID()){caseWindowEvent.WINDOW_CLOSING:{switch(close_action){caseEXIT_ON_CLOSE:{System.out.println("userrequestedexitonclose");System.exit(1);bre... | 32,808 |
protected void processWindowEvent(WindowEvent e) { // System.out.println("PROCESS_WIN_EV-1: " + e); // super.processWindowEvent(e); // System.out.println("PROCESS_WIN_EV-2: " + e); switch (e.getID()) { case WindowEvent.WINDOW_CLOSING: {... | protectedvoidprocessWindowEvent(WindowEvente){//System.out.println("PROCESS_WIN_EV-1:"+e); //super.processWindowEvent(e);//System.out.println("PROCESS_WIN_EV-2:"+e);switch(e.getID()){caseWindowEvent.WINDOW_CLOSING:{switch(close_action){caseEXIT_ON_CLOSE:{System.out.println("userrequestedexitonclose");System.exit(1);bre... | 32,809 |
public void remove(Component comp) { getContentPane().remove(comp); } | public void remove(Component comp) { getContentPane().remove(comp); } | 32,810 |
public void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); } | public void setContentPane(Container contentPane) { getRootPane().setContentPane(contentPane); } | 32,811 |
void setDefaultCloseOperation(int operation) { close_action = operation; } | void setDefaultCloseOperation(int operation) { close_action = operation; } | 32,812 |
public void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | public void setGlassPane(Component glassPane) { getRootPane().setGlassPane(glassPane); } | 32,813 |
public void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); } | public void setJMenuBar(JMenuBar menubar) { getRootPane().setJMenuBar(menubar); } | 32,814 |
public void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); } | public void setLayeredPane(JLayeredPane layeredPane) { getRootPane().setLayeredPane(layeredPane); } | 32,815 |
public void setLayout(LayoutManager manager) { super.setLayout(manager); } | public void setLayout(LayoutManager manager) { super.setLayout(manager); } | 32,816 |
protected void setRootPaneCheckingEnabled(boolean enabled) { checking = enabled; } | protected void setRootPaneCheckingEnabled(boolean enabled) { checking = enabled; } | 32,817 |
public void update(Graphics g) { paint(g); } | public void update(Graphics g) { paint(g); } | 32,818 |
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i; i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++; } } | public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i; i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++; } } | 32,819 |
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i; i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++; } } | public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i; i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++; } } | 32,820 |
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i; i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++; } } | public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp, i; i = 0; for( xp = x; xp < ( x + w); xp++ ) for( yp = y; yp < (y + h); yp++ ) { pixels[i] = filterRGB( xp, yp, pixels[i] ); i++; } } | 32,821 |
public Dimension getPreferredSize() { return super.getPreferredSize(); } | public Dimension getPreferredSize() { Dimension pref = super.getPreferredSize(); if (getScrollableTracksViewportWidth()) pref.width = getUI().getMinimumSize(this).width; if (getScrollableTracksViewportHeight()) pref.height = getUI().getMinimumSize(this).height; return pref; } | 32,822 |
public boolean getScrollableTracksViewportHeight() { /* Container parent = getParent(); return (parent instanceof JViewport && parent.isValid());*/ return isValid(); } | public boolean getScrollableTracksViewportHeight() { /* Container parent = getParent(); return (parent instanceof JViewport && parent.isValid());*/ return isValid(); } | 32,823 |
public boolean getScrollableTracksViewportWidth() { /*Container parent = getParent(); return (parent instanceof JViewport && parent.isValid());*/ return isValid(); } | public boolean getScrollableTracksViewportWidth() { /*Container parent = getParent(); return (parent instanceof JViewport && parent.isValid());*/ return isValid(); } | 32,824 |
public void setText(String t) { try { // Remove the current content. Document doc = getDocument(); doc.remove(0, doc.getLength()); if (t == null || t == "") return; // Let the EditorKit read the text into the Document. getEditorKit().read(new StringReader(t), doc... | public void setText(String t) { try { // Remove the current content. Document doc = getDocument(); doc.remove(0, doc.getLength()); if (t == null || t.equals("")) return; // Let the EditorKit read the text into the Document. getEditorKit().read(new StringReader(t)... | 32,825 |
public AccessibleJTabbedPane(JTabbedPane c) { super(c); } | public AccessibleJTabbedPane() { super(c); } | 32,826 |
public AccessibleJTabbedPane(JTabbedPane c) { super(c); } | public AccessibleJTabbedPane(JTabbedPane c) { super(); } | 32,827 |
public void addTab(String title, Icon icon, Component component) { insertTab(title, icon, component, null, tabs.size()); } | public void addTab(String title, Icon icon, Component component, String tip) { insertTab(title, icon, component, null, tabs.size()); } | 32,829 |
public void addTab(String title, Icon icon, Component component) { insertTab(title, icon, component, null, tabs.size()); } | public void addTab(String title, Icon icon, Component component) { insertTab(title, icon, component, tip, tabs.size()); } | 32,830 |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJTabbedPane(this); return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJTabbedPane(); return accessibleContext; } | 32,831 |
public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = jarfile.getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(ja... | public Object nextElement() { ZipEntry zip = (ZipEntry) entries.nextElement(); JarEntry jar = new JarEntry(zip); Manifest manifest; try { manifest = jarfile.getManifest(); } catch (IOException ioe) { manifest = null; } if (manifest != null) { jar.attr = manifest.getAttributes(ja... | 32,833 |
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should... | public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent t) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should... | 32,834 |
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should... | public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should... | 32,835 |
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should... | public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should... | 32,836 |
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should... | public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) { Rectangle r0 = null; Rectangle r1 = null; Rectangle rect = bounds.getBounds(); try { r0 = c.modelToView(p0); r1 = c.modelToView(p1); } catch (BadLocationException e) { // This should... | 32,837 |
private int f4(int x6, int x5, int x4, int x3, int x2, int x1, int x0) { return x4 & (x5 & ~x2 ^ x3 & ~x6 ^ x1 ^ x6 ^ x0) ^ x3 & (x1 & x2 ^ x5 ^ x6) ^ x2 & x6 ^ x0; } | private int f4(int x6, int x5, int x4, int x3, int x2, int x1, int x0) { return x4 & (x5 & ~x2 ^ x3 & ~x6 ^ x1 ^ x6 ^ x0) ^ x3 & (x1 & x2 ^ x5 ^ x6) ^ x2 & x6 ^ x0; } | 32,838 |
protected byte[] getResult() { tailorDigestBits(); // tailor context for the designated output size // cast enough top context values into an array of hashSize bytes byte[] result = new byte[hashSize]; if (hashSize >= HAVAL_256_BIT) { result[31] = (byte) (h7 >>> 24); result[30] = (byte... | protected byte[] getResult() { tailorDigestBits(); // tailor context for the designated output size // cast enough top context values into an array of hashSize bytes byte[] result = new byte[hashSize]; if (hashSize >= HAVAL_256_BIT) { result[31] = (byte) (h7 >>> 24); result[30] = (byte... | 32,839 |
protected byte[] getResult() { tailorDigestBits(); // tailor context for the designated output size // cast enough top context values into an array of hashSize bytes byte[] result = new byte[hashSize]; if (hashSize >= HAVAL_256_BIT) { result[31] = (byte) (h7 >>> 24); result[30] = (byte... | protected byte[] getResult() { tailorDigestBits(); // tailor context for the designated output size // cast enough top context values into an array of hashSize bytes byte[] result = new byte[hashSize]; if (hashSize >= HAVAL_256_BIT) { result[31] = (byte) (h7 >>> 24); result[30] = (byte... | 32,840 |
protected byte[] getResult() { tailorDigestBits(); // tailor context for the designated output size // cast enough top context values into an array of hashSize bytes byte[] result = new byte[hashSize]; if (hashSize >= HAVAL_256_BIT) { result[31] = (byte) (h7 >>> 24); result[30] = (byte... | protected byte[] getResult() { tailorDigestBits(); // tailor context for the designated output size // cast enough top context values into an array of hashSize bytes byte[] result = new byte[hashSize]; if (hashSize >= HAVAL_256_BIT) { result[31] = (byte) (h7 >>> 24); result[30] = (byte... | 32,841 |
protected byte[] getResult() { tailorDigestBits(); // tailor context for the designated output size // cast enough top context values into an array of hashSize bytes byte[] result = new byte[hashSize]; if (hashSize >= HAVAL_256_BIT) { result[31] = (byte) (h7 >>> 24); result[30] = (byte... | protected byte[] getResult() { tailorDigestBits(); // tailor context for the designated output size // cast enough top context values into an array of hashSize bytes byte[] result = new byte[hashSize]; if (hashSize >= HAVAL_256_BIT) { result[31] = (byte) (h7 >>> 24); result[30] = (byte... | 32,842 |
protected byte[] getResult() { tailorDigestBits(); // tailor context for the designated output size // cast enough top context values into an array of hashSize bytes byte[] result = new byte[hashSize]; if (hashSize >= HAVAL_256_BIT) { result[31] = (byte) (h7 >>> 24); result[30] = (byte... | protected byte[] getResult() { tailorDigestBits(); // tailor context for the designated output size // cast enough top context values into an array of hashSize bytes byte[] result = new byte[hashSize]; if (hashSize >= HAVAL_256_BIT) { result[31] = (byte) (h7 >>> 24); result[30] = (byte... | 32,843 |
protected byte[] getResult() { tailorDigestBits(); // tailor context for the designated output size // cast enough top context values into an array of hashSize bytes byte[] result = new byte[hashSize]; if (hashSize >= HAVAL_256_BIT) { result[31] = (byte) (h7 >>> 24); result[30] = (byte... | protected byte[] getResult() { tailorDigestBits(); // tailor context for the designated output size // cast enough top context values into an array of hashSize bytes byte[] result = new byte[hashSize]; if (hashSize >= HAVAL_256_BIT) { result[31] = (byte) (h7 >>> 24); result[30] = (byte... | 32,844 |
protected byte[] padBuffer() { // pad out to 118 mod 128. other 10 bytes have special use. int n = (int) (count % BLOCK_SIZE); int padding = (n < 118) ? (118 - n) : (246 - n); byte[] result = new byte[padding + 10]; result[0] = (byte) 0x01; // save the version number (LSB 3), the number of rounds ... | protected byte[] padBuffer() { // pad out to 118 mod 128. other 10 bytes have special use. int n = (int)(count % BLOCK_SIZE); int padding = (n < 118) ? (118 - n) : (246 - n); byte[] result = new byte[padding + 10]; result[0] = (byte) 0x01; // save the version number (LSB 3), the number of rounds (... | 32,845 |
protected byte[] padBuffer() { // pad out to 118 mod 128. other 10 bytes have special use. int n = (int) (count % BLOCK_SIZE); int padding = (n < 118) ? (118 - n) : (246 - n); byte[] result = new byte[padding + 10]; result[0] = (byte) 0x01; // save the version number (LSB 3), the number of rounds ... | protectedbyte[]padBuffer(){//padoutto118mod128.other10byteshavespecialuse.intn=(int)(count%BLOCK_SIZE);intpadding=(n<118)?(118-n):(246-n);byte[]result=newbyte[padding+10];result[0]=(byte)0x01;//savetheversionnumber(LSB3),thenumberofrounds(3bitsinthe//middle),thefingerprintlength(MSB2bitsandnextbyte)andthe//numberofbits... | 32,846 |
protected byte[] padBuffer() { // pad out to 118 mod 128. other 10 bytes have special use. int n = (int) (count % BLOCK_SIZE); int padding = (n < 118) ? (118 - n) : (246 - n); byte[] result = new byte[padding + 10]; result[0] = (byte) 0x01; // save the version number (LSB 3), the number of rounds ... | protected byte[] padBuffer() { // pad out to 118 mod 128. other 10 bytes have special use. int n = (int) (count % BLOCK_SIZE); int padding = (n < 118) ? (118 - n) : (246 - n); byte[] result = new byte[padding + 10]; result[0] = (byte) 0x01; // save the version number (LSB 3), the number of rounds ... | 32,847 |
protected byte[] padBuffer() { // pad out to 118 mod 128. other 10 bytes have special use. int n = (int) (count % BLOCK_SIZE); int padding = (n < 118) ? (118 - n) : (246 - n); byte[] result = new byte[padding + 10]; result[0] = (byte) 0x01; // save the version number (LSB 3), the number of rounds ... | protected byte[] padBuffer() { // pad out to 118 mod 128. other 10 bytes have special use. int n = (int) (count % BLOCK_SIZE); int padding = (n < 118) ? (118 - n) : (246 - n); byte[] result = new byte[padding + 10]; result[0] = (byte) 0x01; // save the version number (LSB 3), the number of rounds ... | 32,848 |
public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new Haval().digest()))); } return valid.booleanValue(); } | public boolean selfTest() { if (valid == null) { String d = Util.toString(new Haval().digest()); valid = Boolean.valueOf(DIGEST0.equals(d)); } return valid.booleanValue(); } | 32,849 |
private void tailorDigestBits() { int t; switch (hashSize) { case HAVAL_128_BIT: t = (h7 & 0x000000FF) | (h6 & 0xFF000000) | (h5 & 0x00FF0000) | (h4 & 0x0000FF00); h0 += t >>> 8 | t << 24; t = (h7 & 0x0000FF00) | (h6 & 0x000000FF) | (h5 & 0xFF000000) | (h4 &... | private void tailorDigestBits() { int t; switch (hashSize) { case HAVAL_128_BIT: t = (h7 & 0x000000FF) | (h6 & 0xFF000000) | (h5 & 0x00FF0000) | (h4 & 0x0000FF00); h0 += t >>> 8 | t << 24; t = (h7 & 0x0000FF00) | (h6 & 0x000000FF) | (h5 & 0xFF000000) | (h4 &... | 32,850 |
private void tailorDigestBits() { int t; switch (hashSize) { case HAVAL_128_BIT: t = (h7 & 0x000000FF) | (h6 & 0xFF000000) | (h5 & 0x00FF0000) | (h4 & 0x0000FF00); h0 += t >>> 8 | t << 24; t = (h7 & 0x0000FF00) | (h6 & 0x000000FF) | (h5 & 0xFF000000) | (h4 &... | private void tailorDigestBits() { int t; switch (hashSize) { case HAVAL_128_BIT: t = (h7 & 0x000000FF) | (h6 & 0xFF000000) | (h5 & 0x00FF0000) | (h4 & 0x0000FF00); h0 += t >>> 8 | t << 24; t = (h7 & 0x0000FF00) | (h6 & 0x000000FF) | (h5 & 0xFF000000) | (h4 &... | 32,851 |
private void tailorDigestBits() { int t; switch (hashSize) { case HAVAL_128_BIT: t = (h7 & 0x000000FF) | (h6 & 0xFF000000) | (h5 & 0x00FF0000) | (h4 & 0x0000FF00); h0 += t >>> 8 | t << 24; t = (h7 & 0x0000FF00) | (h6 & 0x000000FF) | (h5 & 0xFF000000) | (h4 &... | private void tailorDigestBits() { int t; switch (hashSize) { case HAVAL_128_BIT: t = (h7 & 0x000000FF) | (h6 & 0xFF000000) | (h5 & 0x00FF0000) | (h4 & 0x0000FF00); h0 += t >>> 8 | t << 24; t = (h7 & 0x0000FF00) | (h6 & 0x000000FF) | (h5 & 0xFF000000) | (h4 &... | 32,852 |
private void tailorDigestBits() { int t; switch (hashSize) { case HAVAL_128_BIT: t = (h7 & 0x000000FF) | (h6 & 0xFF000000) | (h5 & 0x00FF0000) | (h4 & 0x0000FF00); h0 += t >>> 8 | t << 24; t = (h7 & 0x0000FF00) | (h6 & 0x000000FF) | (h5 & 0xFF000000) | (h4 &... | private void tailorDigestBits() { int t; switch (hashSize) { case HAVAL_128_BIT: t = (h7 & 0x000000FF) | (h6 & 0xFF000000) | (h5 & 0x00FF0000) | (h4 & 0x0000FF00); h0 += t >>> 8 | t << 24; t = (h7 & 0x0000FF00) | (h6 & 0x000000FF) | (h5 & 0xFF000000) | (h4 &... | 32,853 |
protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X2 = (in[i++] & 0xFF... | protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X2 = (in[i++] & 0xFF... | 32,854 |
protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X2 = (in[i++] & 0xFF... | protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X2 = (in[i++] & 0xFF... | 32,855 |
protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X2 = (in[i++] & 0xFF... | protectedsynchronizedvoidtransform(byte[]in,inti){intX0=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|(in[i++]&0xFF)<<24;intX1=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|(in[i++]&0xFF)<<24;intX2=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|(in[i++]&0xFF)<<24;intX3=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|... | 32,856 |
protected synchronized void transform(byte[] in, int i) { int X0 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X1 = (in[i++] & 0xFF) | (in[i++] & 0xFF) << 8 | (in[i++] & 0xFF) << 16 | (in[i++] & 0xFF) << 24; int X2 = (in[i++] & 0xFF... | protectedsynchronizedvoidtransform(byte[]in,inti){intX0=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|(in[i++]&0xFF)<<24;intX1=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|(in[i++]&0xFF)<<24;intX2=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|(in[i++]&0xFF)<<16|(in[i++]&0xFF)<<24;intX3=(in[i++]&0xFF)|(in[i++]&0xFF)<<8|... | 32,857 |
public MarshalledObject(Object obj) throws java.io.IOException { ByteArrayOutputStream objStream = new ByteArrayOutputStream(); RMIMarshalledObjectOutputStream stream = new RMIMarshalledObjectOutputStream(objStream); stream.writeObject(obj); stream.flush(); objBytes = objStream.toByteArray(); locBy... | public MarshalledObject(Object obj) throws IOException { ByteArrayOutputStream objStream = new ByteArrayOutputStream(); RMIMarshalledObjectOutputStream stream = new RMIMarshalledObjectOutputStream(objStream); stream.writeObject(obj); stream.flush(); objBytes = objStream.toByteArray(); locBytes = st... | 32,858 |
public MarshalledObject(Object obj) throws java.io.IOException { ByteArrayOutputStream objStream = new ByteArrayOutputStream(); RMIMarshalledObjectOutputStream stream = new RMIMarshalledObjectOutputStream(objStream); stream.writeObject(obj); stream.flush(); objBytes = objStream.toByteArray(); locBy... | public MarshalledObject(Object obj) throws java.io.IOException { ByteArrayOutputStream objStream = new ByteArrayOutputStream(); RMIMarshalledObjectOutputStream stream = new RMIMarshalledObjectOutputStream(objStream); stream.writeObject(obj); stream.flush(); objBytes = objStream.toByteArray(); locBy... | 32,859 |
public MarshalledObject(Object obj) throws java.io.IOException { ByteArrayOutputStream objStream = new ByteArrayOutputStream(); RMIMarshalledObjectOutputStream stream = new RMIMarshalledObjectOutputStream(objStream); stream.writeObject(obj); stream.flush(); objBytes = objStream.toByteArray(); locBy... | public MarshalledObject(Object obj) throws java.io.IOException { ByteArrayOutputStream objStream = new ByteArrayOutputStream(); RMIMarshalledObjectOutputStream stream = new RMIMarshalledObjectOutputStream(objStream); stream.writeObject(obj); stream.flush(); objBytes = objStream.toByteArray(); locBy... | 32,860 |
public MarshalledObject(Object obj) throws java.io.IOException { ByteArrayOutputStream objStream = new ByteArrayOutputStream(); RMIMarshalledObjectOutputStream stream = new RMIMarshalledObjectOutputStream(objStream); stream.writeObject(obj); stream.flush(); objBytes = objStream.toByteArray(); locBy... | public MarshalledObject(Object obj) throws java.io.IOException { ByteArrayOutputStream objStream = new ByteArrayOutputStream(); RMIMarshalledObjectOutputStream stream = new RMIMarshalledObjectOutputStream(objStream); stream.writeObject(obj); stream.flush(); objBytes = objStream.toByteArray(); locBy... | 32,861 |
public static boolean isClassInitializeNeeded(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType cls = method.getDeclaringClass(); if (!cls.isInitialized()) ... | public static boolean isClassInitializeNeeded(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType cls = method.getDeclaringClass(); if (!cls.isInitialized()) ... | 32,862 |
public static Class getCallingClass() { Class[] ctx = getClassContext(); if (ctx.length < 3) return null; return ctx[2]; } | public static Class getCallingClass() { Class[] ctx = getClassContext(); if (ctx.length < 3) return null; return ctx[2]; } | 32,863 |
public static Class getCallingClass() { Class[] ctx = getClassContext(); if (ctx.length < 3) return null; return ctx[2]; } | public static Class getCallingClass() { Class[] ctx = getClassContext(); if (ctx.length < 3) return null; return ctx[2]; } | 32,864 |
protected Object parse(String number) throws AssemblyException { if (number.equals("true")) return new Boolean(true); if (number.equals("false")) return new Boolean(false); throw new AssemblyException(new IllegalArgumentException("Element contained no valid boolean value.")); } | protected Object parse(String number) throws AssemblyException { if (number.equals("true")) return Boolean.TRUE; if (number.equals("false")) return new Boolean(false); throw new AssemblyException(new IllegalArgumentException("Element contained no valid boolean value.")); } | 32,865 |
protected Object parse(String number) throws AssemblyException { if (number.equals("true")) return new Boolean(true); if (number.equals("false")) return new Boolean(false); throw new AssemblyException(new IllegalArgumentException("Element contained no valid boolean value.")); } | protected Object parse(String number) throws AssemblyException { if (number.equals("true")) return new Boolean(true); if (number.equals("false")) return Boolean.FALSE; throw new AssemblyException(new IllegalArgumentException("Element contained no valid boolean value.")); } | 32,866 |
public abstract Context create_child(String parm1); | public abstract Context create_child(String parm1); | 32,867 |
protected boolean arePathsContiguous(TreePath[] paths) { return false; // TODO } | protected boolean arePathsContiguous(TreePath[] paths) { return false; // TODO } | 32,868 |
protected boolean canPathsBeAdded(TreePath[] paths) { return false; // TODO } | protected boolean canPathsBeAdded(TreePath[] paths) { return false; // TODO } | 32,869 |
protected boolean canPathsBeRemoved(TreePath[] paths) { return false; // TODO } | protected boolean canPathsBeRemoved(TreePath[] paths) { return false; // TODO } | 32,870 |
public Object clone() throws CloneNotSupportedException { return null; // TODO } | public Object clone() throws CloneNotSupportedException, NotImplementedException { return null; // TODO } | 32,871 |
protected void notifyPathChange(Vector value0, TreePath value1) { // TODO } | protected void notifyPathChange(Vector value0, TreePath value1) { // TODO } | 32,875 |
protected void updateLeadIndex() { // TODO } | protected void updateLeadIndex() { // TODO } | 32,880 |
public TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath) { super(source);//TODO this.paths = new TreePath[1]{path};//TODO this.areNew = new boolean[1]{isNew}; this.oldLeadSelectionPath = oldLeadSelectionPath; this.newLeadSel... | public TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath) { super(source);//TODO this.paths = new TreePath[1]{path};//TODO this.areNew = new boolean[1]{isNew}; this.oldLeadSelectionPath = oldLeadSelectionPath; this.newLeadSel... | 32,881 |
public TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath) { super(source);//TODO this.paths = new TreePath[1]{path};//TODO this.areNew = new boolean[1]{isNew}; this.oldLeadSelectionPath = oldLeadSelectionPath; this.newLeadSel... | public TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath) { super(source);//TODO this.paths = new TreePath[1]{path};//TODO this.areNew = new boolean[1]{isNew}; this.oldLeadSelectionPath = oldLeadSelectionPath; this.newLeadSel... | 32,882 |
public BufferedImage filter(BufferedImage src, BufferedImage dst) { // TODO Make sure premultiplied alpha is handled correctly. // TODO See that color conversion is handled. // TODO figure out how to use rendering hints. if (scale.length != offsets.length) throw new IllegalArgumentException(); Co... | public final BufferedImage filter(BufferedImage src, BufferedImage dst) { // TODO Make sure premultiplied alpha is handled correctly. // TODO See that color conversion is handled. // TODO figure out how to use rendering hints. if (scale.length != offsets.length) throw new IllegalArgumentException();... | 32,883 |
public Rectangle2D getBounds2D(BufferedImage src) { return src.getRaster().getBounds(); } | public final Rectangle2D getBounds2D(BufferedImage src) { return src.getRaster().getBounds(); } | 32,884 |
public Point2D getPoint2D(Point2D src, Point2D dst) { if (dst == null) dst = (Point2D) src.clone(); else dst.setLocation(src); return dst; } | public final Point2D getPoint2D(Point2D src, Point2D dst) { if (dst == null) dst = (Point2D) src.clone(); else dst.setLocation(src); return dst; } | 32,885 |
private synchronized static long allocateSeqNum() { lastSeqNum += 1; return lastSeqNum; } | private static synchronized long allocateSeqNum() { lastSeqNum += 1; return lastSeqNum; } | 32,886 |
public void setMaximumFractionDigits (int newValue) { maximumFractionDigits = newValue; if (getMinimumFractionDigits () > maximumFractionDigits) setMinimumFractionDigits (maximumFractionDigits); } | public void setMaximumFractionDigits (int digits) { maximumFractionDigits = newValue; if (getMinimumFractionDigits () > maximumFractionDigits) setMinimumFractionDigits (maximumFractionDigits); } | 32,887 |
public void setMaximumFractionDigits (int newValue) { maximumFractionDigits = newValue; if (getMinimumFractionDigits () > maximumFractionDigits) setMinimumFractionDigits (maximumFractionDigits); } | public void setMaximumFractionDigits (int newValue) { maximumFractionDigits = digits; if (getMinimumFractionDigits () > maximumFractionDigits) setMinimumFractionDigits (maximumFractionDigits); } | 32,888 |
public void setMaximumIntegerDigits (int newValue) { maximumIntegerDigits = newValue; if (getMinimumIntegerDigits () > maximumIntegerDigits) setMinimumIntegerDigits (maximumIntegerDigits); } | public void setMaximumIntegerDigits (int digits) { maximumIntegerDigits = newValue; if (getMinimumIntegerDigits () > maximumIntegerDigits) setMinimumIntegerDigits (maximumIntegerDigits); } | 32,889 |
public void setMaximumIntegerDigits (int newValue) { maximumIntegerDigits = newValue; if (getMinimumIntegerDigits () > maximumIntegerDigits) setMinimumIntegerDigits (maximumIntegerDigits); } | public void setMaximumIntegerDigits (int newValue) { maximumIntegerDigits = digits; if (getMinimumIntegerDigits () > maximumIntegerDigits) setMinimumIntegerDigits (maximumIntegerDigits); } | 32,890 |
public void setMinimumFractionDigits (int newValue) { minimumFractionDigits = newValue; if (getMaximumFractionDigits () < minimumFractionDigits) setMaximumFractionDigits (minimumFractionDigits); } | public void setMinimumFractionDigits (int digits) { minimumFractionDigits = newValue; if (getMaximumFractionDigits () < minimumFractionDigits) setMaximumFractionDigits (minimumFractionDigits); } | 32,891 |
public void setMinimumFractionDigits (int newValue) { minimumFractionDigits = newValue; if (getMaximumFractionDigits () < minimumFractionDigits) setMaximumFractionDigits (minimumFractionDigits); } | public void setMinimumFractionDigits (int newValue) { minimumFractionDigits = digits; if (getMaximumFractionDigits () < minimumFractionDigits) setMaximumFractionDigits (minimumFractionDigits); } | 32,892 |
public void setMinimumIntegerDigits (int newValue) { minimumIntegerDigits = newValue; if (getMaximumIntegerDigits () < minimumIntegerDigits) setMaximumIntegerDigits (minimumIntegerDigits); } | public void setMinimumIntegerDigits (int digits) { minimumIntegerDigits = newValue; if (getMaximumIntegerDigits () < minimumIntegerDigits) setMaximumIntegerDigits (minimumIntegerDigits); } | 32,893 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.