bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public static Border createLoweredBevelBorder () { return new BevelBorder (BevelBorder.LOWERED); } | public static Border createLoweredBevelBorder() { return new BevelBorder (BevelBorder.LOWERED); } | 2,128 |
public static Border createLoweredBevelBorder () { return new BevelBorder (BevelBorder.LOWERED); } | public static Border createLoweredBevelBorder () { return new BevelBorder(BevelBorder.LOWERED); } | 2,129 |
public static MatteBorder createMatteBorder (int top, int left, int bottom, int right, Color color) { return new MatteBorder (top, left, bottom, right, color); } | public static MatteBorder createMatteBorder (int top, int left, int bottom, int right, Color color) { return new MatteBorder (top, left, bottom, right, color); } | 2,130 |
public static MatteBorder createMatteBorder (int top, int left, int bottom, int right, Color color) { return new MatteBorder (top, left, bottom, right, color); } | public static MatteBorder createMatteBorder (int top, int left, int bottom, int right, Color color) { return new MatteBorder(top, left, bottom, right, color); } | 2,131 |
public LineBorder(Color color, int thickness) { this (color, thickness, /* roundedCorners */ false); } | public LineBorder(Color color) { this (color, thickness, /* roundedCorners */ false); } | 2,132 |
public LineBorder(Color color, int thickness) { this (color, thickness, /* roundedCorners */ false); } | public LineBorder(Color color, int thickness) { this(color, /* thickness */ 1, /* roundedCorners */ false); } | 2,133 |
public Image createImage (int width, int height) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnVal... | public Image createImage(ImageProducer producer) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnVal... | 2,134 |
public Image createImage (int width, int height) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnVal... | public Image createImage (int width, int height) { Image returnValue = null; if (!GraphicsEnvironment.isHeadless ()) { if (isLightweight () && parent != null) returnValue = parent.createImage (width, height); else if (peer != null) returnValue = peer.createImage (width, height); } return returnVal... | 2,135 |
Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();} | Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();} | 2,136 |
Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();} | Button(String label){ this.label = label; actionCommand = label; if (GraphicsEnvironment.isHeadless ()) throw new HeadlessException ();} | 2,137 |
Scrollbar(int orientation) throws IllegalArgumentException{ this(orientation, 0, 10, 0, 100);} | Scrollbar(int orientation) throws IllegalArgumentException{ this(orientation, 0, 10, 0, 100);} | 2,138 |
Scrollbar(int orientation) throws IllegalArgumentException{ this(orientation, 0, 10, 0, 100);} | Scrollbar(int orientation) throws IllegalArgumentException{ this(orientation, 0, 10, 0, 100);} | 2,139 |
public JCheckBox(String text) { super(text); init(); } | public JCheckBox(String text) { super(text); init(); } | 2,140 |
public String getName (){ return peer.getName (this);} | public String getName (){ return peer.getName (this);} | 2,141 |
public JNodeBufferedImageGraphics(BufferedImage image) { super(new BufferedImageSurface(image), image.getWidth(), image.getHeight()); this.image = image; } | public JNodeBufferedImageGraphics(BufferedImage image) { super(new BufferedImageSurface(image), image.getWidth(), image.getHeight()); this.image = image; } | 2,142 |
public JTextPane() { // TODO } // JTextPane() | public JTextPane() { // TODO } // JTextPane() | 2,143 |
public Style addStyle(String nm, Style parent) { return null; // TODO } // addStyle() | public Style addStyle(String nm, Style parent) { return null; // TODO } // addStyle() | 2,144 |
protected EditorKit createDefaultEditorKit() { return super.createDefaultEditorKit(); // TODO } // createDefaultEditorKit() | protected EditorKit createDefaultEditorKit() { return super.createDefaultEditorKit(); // TODO } // createDefaultEditorKit() | 2,145 |
public AttributeSet getCharacterAttributes() { return null; // TODO } // getCharacterAttributes() | public AttributeSet getCharacterAttributes() { return null; // TODO } // getCharacterAttributes() | 2,146 |
public MutableAttributeSet getInputAttributes() { return null; // TODO } // getInputAttributes() | public MutableAttributeSet getInputAttributes() { return null; // TODO } // getInputAttributes() | 2,147 |
public Style getLogicalStyle() { return null; // TODO } // getLogicalStyle() | public Style getLogicalStyle() { return null; // TODO } // getLogicalStyle() | 2,148 |
public AttributeSet getParagraphAttributes() { return null; // TODO } // getParagraphAttributes() | public AttributeSet getParagraphAttributes() { return null; // TODO } // getParagraphAttributes() | 2,149 |
public Style getStyle(String nm) { return null; // TODO } // getStyle() | public Style getStyle(String nm) { return null; // TODO } // getStyle() | 2,150 |
public StyledDocument getStyledDocument() { return null; // TODO } // getStyledDocument() | public StyledDocument getStyledDocument() { return null; // TODO } // getStyledDocument() | 2,151 |
protected final StyledEditorKit getStyledEditorKit() { return null; // TODO } // getStyledEditorKit() | protected final StyledEditorKit getStyledEditorKit() { return null; // TODO } // getStyledEditorKit() | 2,152 |
public String getUIClassID() { return uiClassID; } // getUIClassID() | public String getUIClassID() { return uiClassID; } // getUIClassID() | 2,153 |
public void insertComponent(Component component) { // TODO } // insertComponent() | public void insertComponent(Component component) { // TODO } // insertComponent() | 2,154 |
public void insertIcon(Icon icon) { // TODO } // insertIcon() | public void insertIcon(Icon icon) { // TODO } // insertIcon() | 2,155 |
protected String paramString() { return super.paramString(); // TODO } // paramString() | protected String paramString() { return super.paramString(); // TODO } // paramString() | 2,156 |
protected String paramString() { return super.paramString(); // TODO } // paramString() | protected String paramString() { return super.paramString(); // TODO } // paramString() | 2,157 |
public void removeStyle(String nm) { // TODO } // removeStyle() | public void removeStyle(String nm) { // TODO } // removeStyle() | 2,158 |
public void replaceSelection(String content) { super.replaceSelection(content); // TODO } // replaceSelection() | public void replaceSelection(String content) { super.replaceSelection(content); // TODO } // replaceSelection() | 2,159 |
public void setCharacterAttributes(AttributeSet attribute, boolean replace) { // TODO } // setCharacterAttributes() | public void setCharacterAttributes(AttributeSet attribute, boolean replace) { // TODO } // setCharacterAttributes() | 2,160 |
public void setDocument(Document document) { super.setDocument(document); // TODO } // setDocument() | public void setDocument(Document document) { super.setDocument(document); // TODO } // setDocument() | 2,161 |
public final void setEditorKit(EditorKit editor) { super.setEditorKit(editor); // TODO } // setEditorKit() | public final void setEditorKit(EditorKit editor) { super.setEditorKit(editor); // TODO } // setEditorKit() | 2,162 |
public void setLogicalStyle(Style style) { // TODO } // setLogicalStyle() | public void setLogicalStyle(Style style) { // TODO } // setLogicalStyle() | 2,163 |
public void setParagraphAttributes(AttributeSet attribute, boolean replace) { // TODO } // setParagraphAttributes() | public void setParagraphAttributes(AttributeSet attribute, boolean replace) { // TODO } // setParagraphAttributes() | 2,164 |
public void setParagraphAttributes(AttributeSet attribute, boolean replace) { // TODO } // setParagraphAttributes() | public void setParagraphAttributes(AttributeSet attribute, boolean replace) { // TODO } // setParagraphAttributes() | 2,165 |
public void setStyledDocument(StyledDocument document) { // TODO } // setStyledDocument() | public void setStyledDocument(StyledDocument document) { // TODO } // setStyledDocument() | 2,166 |
void setCharacterAttributes(int offset, int length, AttributeSet set, boolean replace); | void setCharacterAttributes(int offset, int length, AttributeSet set, boolean replace); | 2,167 |
public ViewFactory getViewFactory() { // FIXME: Handle EditorKit somehow. return BasicTextUI.this; } | public ViewFactory getViewFactory() { // FIXME: Handle EditorKit somehow. return BasicTextUI.this; } | 2,168 |
public Shape modelToView(int position, Shape a, Position.Bias bias) throws BadLocationException { if (view == null) return null; return ((PlainView) view).modelToView(position, a, bias).getBounds(); } | public Shape modelToView(int position, Shape a, Position.Bias bias) throws BadLocationException { if (view == null) return null; return ((PlainView) view).modelToView(position, a, bias).getBounds(); } | 2,169 |
public void setView(View v) { if (view != null) view.setParent(null); if (v != null) v.setParent(null); view = v; } | public void setView(View v) { if (view != null) view.setParent(null); if (v != null) v.setParent(this); view = v; } | 2,170 |
public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException { return 0; } | public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException { return 0; } | 2,171 |
protected final void setView(View view) { rootView.setView(view); view.setParent(rootView); } | protected final void setView(View view) { rootView.setView(view); } | 2,172 |
protected void uninstallKeyboardActions() { // Do nothing here. } | protected void uninstallKeyboardActions() { // Do nothing here. } | 2,173 |
public void onScreenChanged(int which, int sr, int sc, int er, int ec) {// workR.setBounds(sr, sc, ec, er);// if (screen.cursorShown)// this.drawCursor(); if (which == 3 || which == 4) {// log.info("cursor updated -> " + sr + ", " + sc + "-> active " +// screen.curs... | public void onScreenChanged(int which, int sr, int sc, int er, int ec) {// workR.setBounds(sr, sc, ec, er);// if (screen.cursorShown)// this.drawCursor(); if (which == 3 || which == 4) {// log.info("cursor updated -> " + sr + ", " + sc + "-> active " +// screen.curs... | 2,174 |
public void resize(int width, int height) { if (bi.getWidth() != width || bi.getHeight() != height) {// synchronized (lock) { bi = null; bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; resi... | public void resize(int width, int height) { if (bi.getWidth() != width || bi.getHeight() != height) {// synchronized (lock) { bi = null; bi = new BufferedImage(width,height,BufferedImage.TYPE_INT_RGB); this.width = width; this.height = height; resi... | 2,175 |
public static TN5250jLogger getLogger (String clazzName) { TN5250jLogger logger = null; if (_loggers.containsKey(clazzName)) { logger = ( TN5250jLogger ) _loggers.get(clazzName); } else { if (customLogger != null) { try { Class classObject = Class.forName(... | public static TN5250jLogger getLogger (String clazzName) { TN5250jLogger logger = null; if (_loggers.containsKey(clazzName)) { logger = ( TN5250jLogger ) _loggers.get(clazzName); } else { if (customLogger != null) { try { Class classObject = Class.forName(... | 2,176 |
public String getFontName (){ return peer.getFontName (this);} | public String getFontName (){ return peer.getFontName (this);} | 2,177 |
public float getSize2D (){ return pointSize;} | public float getSize2D (){ return pointSize;} | 2,178 |
public float getSize2D (){ return pointSize;} | public float getSize2D (){ return pointSize;} | 2,179 |
public static void version() { System.out.println("rmiregistry (" + System.getProperty("java.vm.name") + ") " + System.getProperty("java.vm.version")); System.out.println("Copyright 2005 Free Software Foundation, Inc."); System.out.println("This is free software; see the source for copying conditions. T... | public static void version() { System.out.println("rmiregistry (" + System.getProperty("java.vm.name") + ") " + System.getProperty("java.vm.version")); System.out.println("Copyright 2005 Free Software Foundation, Inc."); System.out.println("This is free software; see the source for copying conditions. T... | 2,180 |
protected UnicastRemoteObject(RemoteRef ref) throws RemoteException { super((UnicastServerRef) ref); exportObject(this); } | protected UnicastRemoteObject() throws RemoteException { super((UnicastServerRef) ref); exportObject(this); } | 2,181 |
protected UnicastRemoteObject(RemoteRef ref) throws RemoteException { super((UnicastServerRef) ref); exportObject(this); } | protected UnicastRemoteObject(RemoteRef ref) throws RemoteException { super((UnicastServerRef) ref); exportObject(this); } | 2,182 |
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(DSSKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(DSSKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } adaptee.setup(attributes); } | public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(DSSKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(DSSKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } adaptee.setup(attributes); } | 2,183 |
public Argument(String name, String description) { this(name, description, SINGLE); } | public Argument(String name, String description) { this(name, description, SINGLE); } | 2,184 |
public void connect(javax.rmi.ORB orb) throws RemoteException { if(delegate != null) delegate.connect(this, orb); } | public void connect(ORB orb) throws RemoteException { if(delegate != null) delegate.connect(this, orb); } | 2,185 |
public void connect(javax.rmi.ORB orb) throws RemoteException { if(delegate != null) delegate.connect(this, orb); } | public void connect(javax.rmi.ORB orb) throws RemoteException { if (m_orb != null && orb != null) { if (m_orb.equals(orb)) throw new RemoteException("Stub " + this + " is connected to another ORB, " + orb); else return; } m_orb = orb; delegate.connect(this, orb); } | 2,186 |
public boolean equals(Object obj) { if(delegate != null) return delegate.equals(this, obj); else return false; } | public boolean equals(java.lang.Object obj) { if(delegate != null) return delegate.equals(this, obj); else return false; } | 2,187 |
public boolean equals(Object obj) { if(delegate != null) return delegate.equals(this, obj); else return false; } | public boolean equals(Object obj) { return delegate.equals(this, obj); else return false; } | 2,188 |
public boolean equals(Object obj) { if(delegate != null) return delegate.equals(this, obj); else return false; } | public boolean equals(Object obj) { if(delegate != null) return delegate.equals(this, obj); else return false; } | 2,189 |
public int hashCode() { if(delegate != null) return delegate.hashCode(this); else return 0; } | public int hashCode() { if(delegate != null) return delegate.hashCode(this); else return 0; } | 2,190 |
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { if(delegate != null) delegate.readObject(this, stream); } | private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { if(delegate != null) delegate.readObject(this, stream); } | 2,191 |
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { if(delegate != null) delegate.readObject(this, stream); } | private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { if(delegate != null) delegate.readObject(this, stream); } | 2,192 |
public String toString() { String s = null; if(delegate != null) s = delegate.toString(this); if(s == null) s = super.toString(); return s; } | public String toString() { String s = null; if(delegate != null) s = delegate.toString(this); if(s == null) s = super.toString(); return s; } | 2,193 |
private void writeObject(ObjectOutputStream stream) throws IOException { if(delegate != null) delegate.writeObject(this, stream); } | private void writeObject(ObjectOutputStream output) throws IOException { if(delegate != null) delegate.writeObject(this, stream); } | 2,194 |
private void writeObject(ObjectOutputStream stream) throws IOException { if(delegate != null) delegate.writeObject(this, stream); } | private void writeObject(ObjectOutputStream stream) throws IOException { if(delegate != null) delegate.writeObject(this, stream); } | 2,195 |
void connect(Stub self, javax.rmi.ORB orb) throws RemoteException; | void connect(Stub self, ORB orb) throws RemoteException; | 2,196 |
public void onScreenChanged(int inUpdate, int startRow, int startCol, int endRow, int endCol) { iOhioPosition inStart = new iOhioPosition(startRow,startCol); iOhioPosition inEnd = new iOhioPosition(endRow,endCol);// System.out.println("screen updated -> " + startRow + ", "// ... | System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); public void onScreenChanged(int inUpdate, int startRow, int startCol, int endRow, int endCol)System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); {System.out.println... | 2,197 |
getSubType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(""); String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); else return(subtype.substring(0, idx));} | getSubType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(""); String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); else return(subtype.substring(0, idx));} | 2,198 |
getSubType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(""); String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); else return(subtype.substring(0, idx));} | getSubType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(""); String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); else return(subtype.substring(0, idx));} | 2,199 |
getSubType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(""); String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); else return(subtype.substring(0, idx));} | getSubType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(""); String subtype = mimeType.substring(idx + 1); idx = subtype.indexOf(" "); if (idx == -1) return(subtype); else return(subtype.substring(0, idx));} | 2,200 |
isMimeTypeEqual(String mimeType){ // FIXME: Need to handle default attributes and parameters return(this.mimeType.equals(mimeType));} | isMimeTypeEqual(StringString mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); mimeType){String mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); String mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0... | 2,201 |
isMimeTypeEqual(String mimeType){ // FIXME: Need to handle default attributes and parameters return(this.mimeType.equals(mimeType));} | isMimeTypeEqual(String mimeType){ // FIXME: Need to handle default attributes and parameters return(this.mimeType.equals(mimeType));} | 2,202 |
isRepresentationClassRemote(){ // FIXME: Implement throw new RuntimeException("Not implemented");} | isRepresentationClassRemote(){ // FIXME: Implement throw new RuntimeException("Not implemented");} | 2,203 |
toString(){ return("DataFlavor[representationClass=" + representationClass.getName() + ",mimeType=" + mimeType + "humanPresentableName=" + humanPresentableName);} | toString(){ return("DataFlavor[representationClass=" + representationClass.getName() + ",mimeType=" + mimeType + "humanPresentableName=" + humanPresentableName);} | 2,204 |
public File createFileObject(String path) { return new File(path); } | public File createFileObject(File dir, String filename) { return new File(path); } | 2,214 |
public File createFileObject(String path) { return new File(path); } | public File createFileObject(String path) { return new File(dir, filename); } | 2,215 |
public String getDescription(File value0) { return null; // TODO } // getDescription() | public String getDescription(File value0) { return null; // TODO } // getDescription() | 2,216 |
public Icon getIcon(File value0) { return null; // TODO } // getIcon() | public Icon getIcon(File value0) { return null; // TODO } // getIcon() | 2,217 |
public String getName(File file) { return null; // TODO } // getName() | public String getName(File file) { return null; // TODO } // getName() | 2,218 |
public String getTypeDescription(File value0) { return null; // TODO } // getTypeDescription() | public String getTypeDescription(File value0) { return null; // TODO } // getTypeDescription() | 2,219 |
public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | 2,221 |
public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | 2,222 |
public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | 2,223 |
public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | 2,224 |
public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | public static double IEEEremainder(double x, double y) { // Purge off exception values. if (x == Double.NEGATIVE_INFINITY || !(x < Double.POSITIVE_INFINITY) || y == 0 || y != y) return Double.NaN; boolean negative = x < 0; x = abs(x); y = abs(y); if (x == y || x == 0) return 0 * x; // Get correct sign. // A... | 2,225 |
private StrictMath() { } | private StrictMath() { } | 2,226 |
public static int abs(int i) { return (i < 0) ? -i : i; } | public static int abs(int i) { return (i < 0) ? -i : i; } | 2,227 |
public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | 2,228 |
public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | 2,229 |
public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | 2,230 |
public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | 2,231 |
public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | 2,232 |
public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | public static double acos(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? PI : 0; if (x < 0.5) { if (x < 1 / TWO_57) return PI / 2; double z = x * x; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5... | 2,233 |
public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | 2,234 |
public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | 2,235 |
public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | 2,236 |
public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3... | 2,237 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.