bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void setValue(Object event) { // TODO } // setValue() | public void setValue(Object event) { // TODO } // setValue() | 31,787 |
protected void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.IN... | protected void formatInternal (double number, FormatBuffer dest, FieldPosition fieldPos) { // A very special case. if (Double.isNaN(number)) { dest.append(symbols.getNaN()); if (fieldPos != null && (fieldPos.getField() == INTEGER_FIELD || fieldPos.getFieldAttribute() == NumberFormat.Field.IN... | 31,788 |
public FileLockImpl (FileChannelImpl channel, long position, long size, boolean shared) { super (channel, position, size, shared); ch = channel; } | public FileLockImpl (FileChannelImpl channel, long position, long size, boolean shared) { super (channel, position, size, shared); valid = true; } | 31,789 |
public static double getFlatnessSq(double[] coords, int offset) { return Line2D.ptSegDistSq(coords[offset], coords[offset + 1], coords[offset + 4], coords[offset + 5], coords[offset + 2], coords[offset + 3]); } | public static double getFlatnessSq(double x1, double y1, double cx, double cy, double x2, double y2) { return Line2D.ptSegDistSq(coords[offset], coords[offset + 1], coords[offset + 4], coords[offset + 5], coords[offset + 2], coords[offset + 3]); } | 31,790 |
public static double getFlatnessSq(double[] coords, int offset) { return Line2D.ptSegDistSq(coords[offset], coords[offset + 1], coords[offset + 4], coords[offset + 5], coords[offset + 2], coords[offset + 3]); } | public static double getFlatnessSq(double[] coords, int offset) { return Line2D.ptSegDistSq(coords[offset], coords[offset + 1], coords[offset + 4], coords[offset + 5], coords[offset + 2], coords[offset + 3]); } | 31,791 |
public static void subdivide(double[] src, int srcOff, double[] left, int leftOff, double[] right, int rightOff) { double x1; double y1; double xc; double yc; double x2; double y2; x1 = src[srcOff]; y1 = src[srcOff + 1]; xc = src[srcOff + 2]; yc = src[srcOf... | public static void subdivide(double[] src, int srcOff, double[] left, int leftOff, double[] right, int rightOff) { double x1; double y1; double xc; double yc; double x2; double y2; x1 = src[srcOff]; y1 = src[srcOff + 1]; xc = src[srcOff + 2]; yc = src[srcOf... | 31,792 |
public static void subdivide(double[] src, int srcOff, double[] left, int leftOff, double[] right, int rightOff) { double x1; double y1; double xc; double yc; double x2; double y2; x1 = src[srcOff]; y1 = src[srcOff + 1]; xc = src[srcOff + 2]; yc = src[srcOf... | public static void subdivide(double[] src, int srcOff, double[] left, int leftOff, double[] right, int rightOff) { double x1; double y1; double xc; double yc; double x2; double y2; x1 = src[srcOff]; y1 = src[srcOff + 1]; xc = src[srcOff + 2]; yc = src[srcOf... | 31,793 |
public static void subdivide(double[] src, int srcOff, double[] left, int leftOff, double[] right, int rightOff) { double x1; double y1; double xc; double yc; double x2; double y2; x1 = src[srcOff]; y1 = src[srcOff + 1]; xc = src[srcOff + 2]; yc = src[srcOf... | public static void subdivide(double[] src, int srcOff, double[] left, int leftOff, double[] right, int rightOff) { double x1; double y1; double xc; double yc; double x2; double y2; x1 = src[srcOff]; y1 = src[srcOff + 1]; xc = src[srcOff + 2]; yc = src[srcOf... | 31,794 |
public static void subdivide(double[] src, int srcOff, double[] left, int leftOff, double[] right, int rightOff) { double x1; double y1; double xc; double yc; double x2; double y2; x1 = src[srcOff]; y1 = src[srcOff + 1]; xc = src[srcOff + 2]; yc = src[srcOf... | public static void subdivide(double[] src, int srcOff, double[] left, int leftOff, double[] right, int rightOff) { double x1; double y1; double xc; double yc; double x2; double y2; x1 = src[srcOff]; y1 = src[srcOff + 1]; xc = src[srcOff + 2]; yc = src[srcOf... | 31,795 |
public static double ptSegDist(double x1, double y1, double x2, double y2, double px, double py) { return Math.sqrt(ptSegDistSq(x1, y1, x2, y2, px, py)); } | public static double ptSegDist(double x1, double y1, double x2, double y2, double px, double py) { return Math.sqrt(ptSegDistSq(x1, y1, x2, y2, px, py)); } | 31,796 |
public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | 31,797 |
public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | 31,798 |
public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | 31,799 |
public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | public final void calcForConfiguration(FBInfo fbinfo, int freq, PLLInfo info) { final FPIBlock fpi = fbinfo.getFpi(); if ((fpi != null) && fpi.useBiosDividers() && false) { this.ppll_ref_div = fpi.getBiosRefDivider(); this.ppll_div_3 = (fpi.getBiosFeedbackDivider() | (fpi.getBiosPostDivider() << 16)); this.hto... | 31,800 |
private void dumpPLLRegs(RadeonVgaIO io, String msg) { if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + Number... | private void dumpPLLRegs(RadeonVgaIO io, String msg) { if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + Number... | 31,801 |
private void dumpPLLRegs(RadeonVgaIO io, String msg) { if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + Number... | private void dumpPLLRegs(RadeonVgaIO io, String msg) { if (false) { System.out.println(msg); for (int i = 0; i <= 0x2e; i++) { System.out.println("PLL[" + NumberUtils.hex(i, 2) + "]=" + NumberUtils.hex(io.getPLL(i))); } } else { System.out.println(msg); System.out.println("PPLL_DIV_3 0x" + Number... | 31,802 |
public void itemStateChanged(ItemEvent e) { ComboBoxModel model = comboBox.getModel(); Object v = model.getSelectedItem(); if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), v); } comboBox.repaint(); } | public void itemStateChanged(ItemEvent e) ComboBoxModel model = comboBox.getModel(); Object v = model.getSelectedItem(); if (editor != null) comboBox.configureEditor(comboBox.getEditor(), v); } comboBox.repaint(); } | 31,804 |
public void itemStateChanged(ItemEvent e) { ComboBoxModel model = comboBox.getModel(); Object v = model.getSelectedItem(); if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), v); } comboBox.repaint(); } | public void itemStateChanged(ItemEvent e) { ComboBoxModel model = comboBox.getModel(); Object v = model.getSelectedItem(); if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), v); comboBox.repaint(); } | 31,805 |
public void keyPressed(KeyEvent e) { // FIXME: This method calls JComboBox.selectWithKeyChar if the key that was // pressed is not a navigation key. } | public void keyPressed(KeyEvent e) { // FIXME: This method calls JComboBox.selectWithKeyChar if the key that was // pressed is not a navigation key. } | 31,806 |
public void contentsChanged(ListDataEvent e) { if (e.getIndex0() != -1 || e.getIndex1() != -1) { isMinimumSizeDirty = true; comboBox.revalidate(); } if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), comboBo... | public void contentsChanged(ListDataEvent e) if (e.getIndex0() != -1 || e.getIndex1() != -1) isMinimumSizeDirty = true; comboBox.revalidate(); } if (editor != null) comboBox.configureEditor(comboBox.getEditor(), comboBox.getS... | 31,807 |
public void contentsChanged(ListDataEvent e) { if (e.getIndex0() != -1 || e.getIndex1() != -1) { isMinimumSizeDirty = true; comboBox.revalidate(); } if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), comboBo... | public void contentsChanged(ListDataEvent e) { if (e.getIndex0() != -1 || e.getIndex1() != -1) { isMinimumSizeDirty = true; comboBox.revalidate(); if (editor != null) { comboBox.configureEditor(comboBox.getEditor(), comboBox.... | 31,808 |
public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | public void intervalAdded(ListDataEvent e) int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) contentsChanged(e); } else if (start != -1 || end != -1) ListCellRenderer renderer = comboBox.... | 31,809 |
public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); else if (start != -1 || end != -1) { ListCellRenderer renderer = combo... | 31,810 |
public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | 31,811 |
public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | public void intervalAdded(ListDataEvent e) int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) contentsChanged(e); } else if (start != -1 || end != -1) ListCellRenderer renderer = comboBox.... | 31,812 |
public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); else if (start != -1 || end != -1) { ListCellRenderer renderer = combo... | 31,813 |
public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | public void intervalAdded(ListDataEvent e) int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) contentsChanged(e); } else if (start != -1 || end != -1) ListCellRenderer renderer = comboBox.... | 31,814 |
public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); } else if (start != -1 || end != -1) { ListCellRenderer renderer = com... | public void intervalAdded(ListDataEvent e) { int start = e.getIndex0(); int end = e.getIndex1(); if (start == 0 && comboBox.getItemCount() - (end - start + 1) == 0) { contentsChanged(e); else if (start != -1 || end != -1) { ListCellRenderer renderer = combo... | 31,815 |
public void propertyChange(PropertyChangeEvent e) { // Lets assume every change invalidates the minimumsize. isMinimumSizeDirty = true; if (e.getPropertyName().equals("enabled")) { arrowButton.setEnabled(comboBox.isEnabled()); if (comboBox.isEditable()) comboBox.getEditor().getEdito... | public void propertyChange(PropertyChangeEvent e) { // Lets assume every change invalidates the minimumsize. isMinimumSizeDirty = true; if (e.getPropertyName().equals("enabled")) { arrowButton.setEnabled(comboBox.isEnabled()); if (comboBox.isEditable()) comboBox.getEditor().getEdito... | 31,816 |
protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ... | protected Dimension getDefaultSize() { Component comp = DEFAULT_RENDERER.getListCellRendererComponent(listBox, " ", -1, false, ... | 31,819 |
protected void installKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. } | protected void installKeyboardActions() { // FIXME: Need to implement. } | 31,820 |
protected void installKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. } | SwingUtilities.replaceUIInputMap(comboBox, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, (InputMap) UIManager.get("ComboBox.ancestorInputMap")); SwingUtilities.replaceUIInputMap(comboBox, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, (InputMap) UIManager.get("ComboBox.ancestorInputMap")); protectedSwingUtilities.re... | 31,821 |
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selected item we will take an empty * String ... | public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selected item we will take an empty * String ... | 31,823 |
public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selected item we will take an empty * String ... | public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) { Object currentValue = comboBox.getSelectedItem(); boolean isPressed = arrowButton.getModel().isPressed(); /* Gets the component to be drawn for the current value. * If there is currently no selected item we will take an empty * String ... | 31,824 |
public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getCol... | public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) Color saved = g.getColor(); if (comboBox.isEnabled()) g.setColor(UIManager.getColor("UIManager.background")); } else g.setColor(UIManager.getColor("UI... | 31,825 |
public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getCol... | public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); else { g.setColor(UIManager.getColor... | 31,826 |
public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getCol... | public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) Color saved = g.getColor(); if (comboBox.isEnabled()) g.setColor(UIManager.getColor("UIManager.background")); } else g.setColor(UIManager.getColor("UI... | 31,827 |
public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getCol... | public void paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) { Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); else { g.setColor(UIManager.getColor... | 31,828 |
protected Rectangle rectangleForCurrentValue() { int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) { arrowSize = arrowButton.getWidth(); } return new Rectangle(i.left, i.top, ... | protected Rectangle rectangleForCurrentValue() int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) arrowSize = arrowButton.getWidth(); } return new Rectangle(i.left, i.top, w - ... | 31,829 |
protected Rectangle rectangleForCurrentValue() { int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) { arrowSize = arrowButton.getWidth(); } return new Rectangle(i.left, i.top, ... | protected Rectangle rectangleForCurrentValue() { int w = comboBox.getWidth(); int h = comboBox.getHeight(); Insets i = comboBox.getInsets(); int arrowSize = h - (i.top + i.bottom); if (arrowButton != null) { arrowSize = arrowButton.getWidth(); return new Rectangle(i.left, i.top, w ... | 31,830 |
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. } | protected void uninstallKeyboardActions() { // FIXME: Need to implement. } | 31,831 |
protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: Need to implement. } | SwingUtilities.replaceUIInputMap(comboBox, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); SwingUtilities.replaceUIInputMap(comboBox, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); protectedSwingUtilities.replaceUIInputMap(comboBox, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); voidSwingUtilitie... | 31,832 |
protected AccessibleJFileChooser() { // Nothing to do here.} | protected AccessibleJFileChooser() { // Nothing to do here.} | 31,833 |
private static final BigInteger add(int x, int y) { return valueOf((long) x + (long) y); } | private static BigInteger add(int x, int y) { return valueOf((long) x + (long) y); } | 31,834 |
private static final int[] euclidInv(int a, int b, int prevDiv) { if (b == 0) throw new ArithmeticException("not invertible"); if (b == 1) // Success: values are indeed invertible! // Bottom of the recursion reached; start unwinding. return new int[] { -prevDiv, 1 }; int[] xy = euclidInv(b, a % b, a /... | private static int[] euclidInv(int a, int b, int prevDiv) { if (b == 0) throw new ArithmeticException("not invertible"); if (b == 1) // Success: values are indeed invertible! // Bottom of the recursion reached; start unwinding. return new int[] { -prevDiv, 1 }; int[] xy = euclidInv(b, a % b, a / b); /... | 31,835 |
private static final int gcd(int a, int b) { // Euclid's algorithm, copied from libg++. int tmp; if (b > a) { tmp = a; a = b; b = tmp; } for(;;) { if (b == 0) return a; if (b == 1) return b; tmp = b; b = a % b; a = tmp; } } | private static int gcd(int a, int b) { // Euclid's algorithm, copied from libg++. int tmp; if (b > a) { tmp = a; a = b; b = tmp; } for(;;) { if (b == 0) return a; if (b == 1) return b; tmp = b; b = a % b; a = tmp; } } | 31,836 |
private final boolean isNegative() { return (words == null ? ival : words[ival - 1]) < 0; } | private boolean isNegative() { return (words == null ? ival : words[ival - 1]) < 0; } | 31,837 |
private final boolean isOne() { return words == null && ival == 1; } | private boolean isOne() { return words == null && ival == 1; } | 31,838 |
private final boolean isZero() { return words == null && ival == 0; } | private boolean isZero() { return words == null && ival == 0; } | 31,839 |
private final void set(long y) { int i = (int) y; if ((long) i == y) { ival = i; words = null; } else { realloc(2); words[0] = i; words[1] = (int) (y >> 32); ival = 2; } } | private void set(long y) { int i = (int) y; if ((long) i == y) { ival = i; words = null; } else { realloc(2); words[0] = i; words[1] = (int) (y >> 32); ival = 2; } } | 31,840 |
private static final BigInteger times(BigInteger x, int y) { if (y == 0) return ZERO; if (y == 1) return x; int[] xwords = x.words; int xlen = x.ival; if (xwords == null) return valueOf((long) xlen * (long) y); boolean negative; BigInteger result = BigInteger.alloc(xlen + 1); i... | private static BigInteger times(BigInteger x, int y) { if (y == 0) return ZERO; if (y == 1) return x; int[] xwords = x.words; int xlen = x.ival; if (xwords == null) return valueOf((long) xlen * (long) y); boolean negative; BigInteger result = BigInteger.alloc(xlen + 1); if (xwo... | 31,841 |
private NumericShaper (int ranges, int context) { this.ranges = ranges; this.context = context; } | private NumericShaper (int key, int mask) { this.ranges = ranges; this.context = context; } | 31,842 |
private NumericShaper (int ranges, int context) { this.ranges = ranges; this.context = context; } | private NumericShaper (int ranges, int context) { this.ranges = ranges; this.context = context; } | 31,843 |
public boolean equals (Object obj) { if (! (obj instanceof NumericShaper)) return false; NumericShaper tmp = (NumericShaper) obj; return (ranges == tmp.ranges && context == tmp.context); } | publicbooleanequals(Objectobj){if(!(objinstanceofNumericShaper))returnfalse;NumericShapertmp=(NumericShaper)obj;return(ranges==tmp.ranges&&context==tmp.context);} | 31,844 |
public boolean equals (Object obj) { if (! (obj instanceof NumericShaper)) return false; NumericShaper tmp = (NumericShaper) obj; return (ranges == tmp.ranges && context == tmp.context); } | public boolean equals (Object obj) { if (! (obj instanceof NumericShaper)) return false; NumericShaper tmp = (NumericShaper) obj; return (ranges == tmp.ranges && context == tmp.context); } | 31,845 |
public static NumericShaper getContextualShaper (int ranges) { throw new Error ("not implemented"); } | public static NumericShaper getContextualShaper (int ranges) { if ((ranges & ~ALL_RANGES) != 0) throw new IllegalArgumentException("argument out of range"); return new NumericShaper(EUROPEAN, ranges); } | 31,846 |
public int getRanges () { return ranges; } | public int getRanges () { return mask & ALL_RANGES; } | 31,847 |
public static NumericShaper getShaper (int singleRange) { throw new Error ("not implemented"); } | public static NumericShaper getShaper (int singleRange) { if (Integer.bitCount(singleRange) != 1) throw new IllegalArgumentException("more than one bit set in argument"); if ((singleRange & ~ALL_RANGES) != 0) throw new IllegalArgumentException("argument out of range"); return new NumericShaper(singleRange, Intege... | 31,848 |
public int hashCode () { throw new Error ("not implemented"); } | public int hashCode () { return key ^ mask; } | 31,849 |
public boolean isContextual () { throw new Error ("not implemented"); } | public boolean isContextual () { return mask > 0; } | 31,850 |
public void shape (char[] text, int start, int count) { shape (text, start, count, context); } | public void shape (char[] text, int start, int count) { shape (text, start, count, 1 << key); } | 31,851 |
public String toString () { throw new Error ("not implemented"); } | public String toString () { return "key=" + key + "; mask=" + mask; } | 31,852 |
public int getIconHeight() { return 10; } | public int getIconHeight() { return 10; } | 31,853 |
public int getIconWidth() { return 10; } | public int getIconWidth() { return 10; } | 31,854 |
public void addHyperlinkListener(HyperlinkListener listener) { listenerList.add (HyperlinkListener.class, listener); } | public void addHyperlinkListener(HyperlinkListener listener) { listenerList.add(HyperlinkListener.class, listener); } | 31,855 |
void setPage(URL page) throws IOException { // Sets the current URL being displayed. } | void setPage(URL page) throws IOException { // Sets the current URL being displayed. } | 31,856 |
void setPage(URL page) throws IOException { // Sets the current URL being displayed. } | voidsetPage(URLpage)throwsIOException{ //SetsthecurrentURLbeingdisplayed.} | 31,857 |
public X509CRL(InputStream encoded) throws CRLException, IOException { super(); revokedCerts = new HashMap(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(encoded); } catch (IOException ioe) { ioe.printStackTrace(); ... | public X509CRL(InputStream encoded) throws CRLException, IOException { super(); revokedCerts = new HashMap(); extensions = new HashMap(); critOids = new HashSet(); nonCritOids = new HashSet(); try { parse(encoded); } catch (IOException ioe) { ioe.printStackTrace(); ... | 31,858 |
public boolean equals(Object o) { return ((X509CRL) o).revokedCerts.equals(revokedCerts); } | public boolean equals(Object o) { if (!(o instanceof X509CRL)) return false; return ((X509CRL) o).getRevokedCertificates().equals(revokedCerts.values()); } | 31,859 |
public Set getCriticalExtensionOIDs() { return Collections.unmodifiableSet(critOids); } | public Set getCriticalExtensionOIDs() { HashSet s = new HashSet(); for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (e.isCritical()) s.add(e.getOid().toString()); } return Collections.unmodifiableSet(s); } | 31,860 |
public byte[] getExtensionValue(String oid) { byte[] ext = (byte[]) extensions.get(oid); if (ext != null) return (byte[]) ext.clone(); return null; } | public byte[] getExtensionValue(String oid) { byte[] ext = (byte[]) extensions.get(oid); if (ext != null) return (byte[]) ext.clone(); return null; } | 31,861 |
public X500Principal getIssuerX500Principal() { return issuerDN; } | public X500Principal getIssuerX500Principal() { return new X500Principal(issuerDN.getDer()); } | 31,862 |
public Set getNonCriticalExtensionOIDs() { return Collections.unmodifiableSet(nonCritOids); } | public Set getNonCriticalExtensionOIDs() { HashSet s = new HashSet(); for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (!e.isCritical()) s.add(e.getOid().toString()); } return Collections.unmodifiableSet(s); } | 31,863 |
public X509CRLEntry getRevokedCertificate(BigInteger serialNo) { return (X509CRLEntry) revokedCerts.get(serialNo); } | public java.security.cert.X509CRLEntry getRevokedCertificate(BigInteger serialNo) { return (X509CRLEntry) revokedCerts.get(serialNo); } | 31,864 |
public X509CRLEntry getRevokedCertificate(BigInteger serialNo) { return (X509CRLEntry) revokedCerts.get(serialNo); } | public X509CRLEntry getRevokedCertificate(BigInteger serialNo) { return (java.security.cert.X509CRLEntry) revokedCerts.get(serialNo); } | 31,865 |
public boolean hasUnsupportedCriticalExtension() { return false; // XXX } | public boolean hasUnsupportedCriticalExtension() { for (Iterator it = extensions.values().iterator(); it.hasNext(); ) { Extension e = (Extension) it.next(); if (e.isCritical() && !e.isSupported()) return true; } return false; // XXX } | 31,866 |
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new IOException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingEx... | 31,867 |
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new IOEx... | 31,868 |
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 31,869 |
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 31,870 |
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 31,871 |
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 31,872 |
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue if (version < 2) throw new IOException("extra data in CRL"); DERValue exts = der.read(); if (!exts.isConstructed()) throw new IOException("malformed Extensions"); debug("start Extensions len == " + exts.getLength... | 31,873 |
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 31,874 |
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 31,875 |
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue debug("read tag == " + val.getTag()); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); debug("read tag == " + val.getTag()); if (!... | 31,876 |
private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | private void parse(InputStream in) throws Exception { DERReader der = new DERReader(in); DERValue val = der.read(); if (!val.isConstructed()) throw new ASN1ParsingException("malformed CertificateList"); encoded = val.getEncoded(); val = der.read(); if (!val.isConstructed()) throw new ASN1... | 31,877 |
public String toString() { return gnu.java.security.x509.X509CRL.class.getName(); } | public String toString() { return X509CRL.class.getName(); } | 31,879 |
public boolean equals(Object other) { if( other instanceof X509CRL ) { try { X509CRL x = (X509CRL) other; if( getEncoded().length != x.getEncoded().length ) return false; byte b1[] = getEncoded(); byte b2[] = x.getEncoded(); for( int i = 0; i < b1.length; i++ ) if( b1[i] != b2[i] ) return false; ... | public boolean equals(Object other) { if( other instanceof X509CRL ) { try { X509CRL x = (X509CRL) other; if( getEncoded().length != x.getEncoded().length ) return false; byte b1[] = getEncoded(); byte b2[] = x.getEncoded(); for( int i = 0; i < b1.length; i++ ) if( b1[i] != b2[i] ) return false; ... | 31,880 |
public Register request(int type, Object owner) { if (type == Operand.LONG) { return null; } if (type == Operand.FLOAT || type == Operand.DOUBLE) { return null; } for (int i = regCount-1; i >= 0; i--) { final RegisterUsage ru = registers[i]; if (ru.request(owner)) ... | public Register request(int type, Object owner) { if (type == Operand.LONG) { return null; } if (type == Operand.FLOAT || type == Operand.DOUBLE) { return null; } for (int i = regCount-1; i >= 0; i--) { final RegisterUsage ru = registers[i]; if (ru.request(owner)) ... | 31,881 |
public BufferedImage filter(BufferedImage src, BufferedImage dst) { if (src.getColorModel() instanceof IndexColorModel) throw new IllegalArgumentException("LookupOp.filter: IndexColorModel " + "not allowed"); if (dst == null) dst = createCompatibleDestImage(src, src.getColorModel()); // Set u... | public final BufferedImage filter(BufferedImage src, BufferedImage dst) { if (src.getColorModel() instanceof IndexColorModel) throw new IllegalArgumentException("LookupOp.filter: IndexColorModel " + "not allowed"); if (dst == null) dst = createCompatibleDestImage(src, src.getColorModel()); //... | 31,882 |
public Rectangle2D getBounds2D(BufferedImage src) { return src.getRaster().getBounds(); } | public final Rectangle2D getBounds2D(BufferedImage src) { return src.getRaster().getBounds(); } | 31,883 |
public Point2D getPoint2D(Point2D src, Point2D dst) { if (dst == null) return (Point2D) src.clone(); dst.setLocation(src); return dst; } | public final Point2D getPoint2D(Point2D src, Point2D dst) { if (dst == null) return (Point2D) src.clone(); dst.setLocation(src); return dst; } | 31,884 |
public RenderingHints getRenderingHints() { return hints; } | public final RenderingHints getRenderingHints() { return hints; } | 31,885 |
public LookupTable getTable() { return lut; } | public final LookupTable getTable() { return lut; } | 31,886 |
public static String getenv(String name) { if (name == null) throw new NullPointerException(); SecurityManager sm = Runtime.securityManager; // Be thread-safe. if (sm != null) sm.checkPermission(new RuntimePermission("getenv." + name)); return VMSystem.getenv(name); } | public static String getenv(String name) { if (name == null) throw new NullPointerException(); SecurityManager sm = SecurityManager.current; // Be thread-safe. if (sm != null) sm.checkPermission(new RuntimePermission("getenv." + name)); return VMSystem.getenv(name); } | 31,887 |
public ScrollPane() { this(SCROLLBARS_AS_NEEDED); } | public ScrollPane() { this(SCROLLBARS_AS_NEEDED); } | 31,888 |
public ScrollPane() { this(SCROLLBARS_AS_NEEDED); } | public ScrollPane() { this(SCROLLBARS_AS_NEEDED); } | 31,889 |
public final void addImpl(Component component, Object constraints, int index) { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) remove(list[0]); super.addImpl(component, constraints, -1); doLayout(); } | public final void addImpl(Component component, Object constraints, int index) { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) remove(list[0]); super.addImpl(component, constraints, -1); doLayout(); } | 31,890 |
public final void addImpl(Component component, Object constraints, int index) { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) remove(list[0]); super.addImpl(component, constraints, -1); doLayout(); } | public final void addImpl(Component component, Object constraints, int index) { Component[] list = getComponents(); if ((list != null) && (list.length > 0)) remove(list[0]); super.addImpl(component, constraints, -1); doLayout(); } | 31,891 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.