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 returnValue; }
|
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 returnValue; }
| 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 returnValue; }
|
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 returnValue; }
| 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.cursorActive + " -> shown " + screen.cursorShown); drawCursor(sr,sc); return; } if (hotSpots) screen.checkHotSpots(); log.info("screen updated -> " + sr + ", " + sc + ", " + er + ", " + ec); int rows = er - sr; int cols = 0; int lc = 0;// int lenScreen = screen.getScreenLength(); int lr = screen.getPos(sr,sc); int numCols = screen.getCols(); updateRect = new Data (sr,sc,er,ec); int clipX; int clipY; int clipWidth; int clipHeight; Rectangle clipper = new Rectangle(); int pos = 0;// while (rows-- >= 0) {// cols = ec - sc;// lc = lr;// while (cols-- >= 0) {// if (lc >= 0 && lc < lenScreen) {// drawChar(gg2d,pos++,screen.getRow(lc),screen.getCol(lc));// // drawChar(gg2d,pos++,sr-rows,lc);// lc++;// }// }// lr += numCols;// } lc = ec; clipper.x = sc * columnWidth; clipper.y = sr * rowHeight; clipper.width = ((ec - sc) + 1) * columnWidth; clipper.height = ((er - sr ) + 1) * rowHeight; gg2d.setClip(clipper.getBounds()); gg2d.setColor(colorBg); // System.out.println("PaintComponent " + r); gg2d.fillRect(clipper.x, clipper.y, clipper.width, clipper.height); while (sr <= er) { cols = ec - sc; lc = sc; while (cols-- >= 0) { if (sc + cols <= ec) {// drawChar(gg2d,pos++,screen.getRow(lc),screen.getCol(lc)); drawChar(gg2d,pos++,sr,lc);// if (clipper == null) {// clipper = new Rectangle(workR);// }// else {// clipper.union(workR);// } lc++; } } sr++; }// System.out.println(" clipping from screen change " + clipper// + " clipping region of paint " + gg2d.getClipBounds()); updateImage(clipper);// if (screen.cursorShown)// this.drawCursor();// screen.dumpScreen(); }
|
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.cursorActive + " -> shown " + screen.cursorShown); drawCursor(sr,sc); return; } if (hotSpots) screen.checkHotSpots(); int rows = er - sr; int cols = 0; int lc = 0;// int lenScreen = screen.getScreenLength(); int lr = screen.getPos(sr,sc); int numCols = screen.getCols(); updateRect = new Data (sr,sc,er,ec); int clipX; int clipY; int clipWidth; int clipHeight; Rectangle clipper = new Rectangle(); int pos = 0;// while (rows-- >= 0) {// cols = ec - sc;// lc = lr;// while (cols-- >= 0) {// if (lc >= 0 && lc < lenScreen) {// drawChar(gg2d,pos++,screen.getRow(lc),screen.getCol(lc));// // drawChar(gg2d,pos++,sr-rows,lc);// lc++;// }// }// lr += numCols;// } lc = ec; clipper.x = sc * columnWidth; clipper.y = sr * rowHeight; clipper.width = ((ec - sc) + 1) * columnWidth; clipper.height = ((er - sr ) + 1) * rowHeight; gg2d.setClip(clipper.getBounds()); gg2d.setColor(colorBg); // System.out.println("PaintComponent " + r); gg2d.fillRect(clipper.x, clipper.y, clipper.width, clipper.height); while (sr <= er) { cols = ec - sc; lc = sc; while (cols-- >= 0) { if (sc + cols <= ec) {// drawChar(gg2d,pos++,screen.getRow(lc),screen.getCol(lc)); drawChar(gg2d,pos++,sr,lc);// if (clipper == null) {// clipper = new Rectangle(workR);// }// else {// clipper.union(workR);// } lc++; } } sr++; }// System.out.println(" clipping from screen change " + clipper// + " clipping region of paint " + gg2d.getClipBounds()); updateImage(clipper);// if (screen.cursorShown)// this.drawCursor();// screen.dumpScreen(); }
| 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; resized = true; getSettings(); // tell waiting threads to wake up// lock.notifyAll();// } } drawOIA(); }
|
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; resized = true; getSettings(); // tell waiting threads to wake up// lock.notifyAll();// } } }
| 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(customLogger); Object object = classObject.newInstance(); if (object instanceof TN5250jLogFactory) { logger = (TN5250jLogger) object; } } catch (Exception ex) { ; } } else { if (logger == null) { if (log4j) logger = new Log4jLogger(); else // take the default logger. logger = new ConsoleLogger(); } logger.initialize(clazzName); _loggers.put(clazzName, logger); } } return logger; }
|
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(customLogger); Object object = classObject.newInstance(); if (object instanceof TN5250jLogFactory) { logger = (TN5250jLogger) object; } } catch (Exception ex) { ; } } else { if (logger == null) { if (log4j) logger = new Log4jLogger(); else // take the default logger. logger = new ConsoleLogger(); } logger.initialize(clazzName); _loggers.put(clazzName, logger); } } return logger; }
| 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. There is NO"); System.out.println("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."); System.exit(0);}
|
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. There is NO"); System.out.println("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."); System.exit(0);}
| 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 + ", "// + startCol + ", " + endRow + ", " + endCol); lastScreenUpdate = inUpdate; switch (inUpdate) { case 1: case 2: case 3: case 4:// case iOhio.OHIO_UPDATE_HOST: Rectangle sr = modelToView(inStart); Rectangle er = modelToView(inEnd); addDirtyRectangle(sr.x, sr.y, er.x - sr.x + columnWidth, er.y - sr.y + rowHeight); break;// case 4:// Rectangle cs = modelToView(inStart);// Rectangle ce = modelToView(inEnd);// addDirtyRectangle(cs.x, cs.y, ce.x - cs.x + columnWidth, ce.y - cs.y + rowHeight);// break; } }
|
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("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); iOhioPosition inStart = new iOhioPosition(startRow,startCol);System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); iOhioPosition inEnd = new iOhioPosition(endRow,endCol);//System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " +System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); startRow + ", "//System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); + startCol + ", " + endRow + ", " + endCol);System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); lastScreenUpdate = inUpdate;System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); switch (inUpdate)System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); {System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); case 1:System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); case 2:System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); case 3:System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); case 4://System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); case iOhio.OHIO_UPDATE_HOST:System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); Rectangle sr = modelToView(inStart);System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); Rectangle er = modelToView(inEnd);System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); addDirtyRectangle(sr.x, sr.y, er.x - sr.x + columnWidth, er.y - sr.y + rowHeight);System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); break;//System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); case 4://System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); Rectangle cs = modelToView(inStart);//System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); Rectangle ce = modelToView(inEnd);//System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); addDirtyRectangle(cs.x, cs.y, ce.x - cs.x + columnWidth, ce.y - cs.y + rowHeight);//System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); break;System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); }System.out.println("screen updated -> " + startRow + ", " + startCol + ", " + endRow + ", " + endCol); }
| 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, i); //String mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); FIXME:String mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); NeedString mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); toString mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); handleString mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); defaultString mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); attributesString mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); andString mime = getMimeType(); int i = mime.indexOf(";"); if (i != -1) mime = mime.substring(0, i); parametersString 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, i); return(this.mimeType.equals(mimeType));}
| 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. // Achieve x < 2y, then take first shot at remainder. if (y < TWO_1023) x %= y + y; // Now adjust x to get correct precision. if (y < 4 / TWO_1023) { if (x + x > y) { x -= y; if (x + x >= y) x -= y; } } else { y *= 0.5; if (x > y) { x -= y; if (x >= y) x -= y; } } return negative ? -x : x; }
|
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. // Achieve x < 2y, then take first shot at remainder. if (y < TWO_1023) x %= y + y; // Now adjust x to get correct precision. if (y < 4 / TWO_1023) { if (x + x > y) { x -= y; if (x + x >= y) x -= y; } } else { y *= 0.5; if (x > y) { x -= y; if (x >= y) x -= y; } } return negative ? -x : x; }
| 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. // Achieve x < 2y, then take first shot at remainder. if (y < TWO_1023) x %= y + y; // Now adjust x to get correct precision. if (y < 4 / TWO_1023) { if (x + x > y) { x -= y; if (x + x >= y) x -= y; } } else { y *= 0.5; if (x > y) { x -= y; if (x >= y) x -= y; } } return negative ? -x : x; }
|
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. // Achieve x < 2y, then take first shot at remainder. if (y < TWO_1023) x %= y + y; // Now adjust x to get correct precision. if (y < 4 / TWO_1023) { if (x + x > y) { x -= y; if (x + x >= y) x -= y; } } else { y *= 0.5; if (x > y) { x -= y; if (x >= y) x -= y; } } return negative ? -x : x; }
| 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. // Achieve x < 2y, then take first shot at remainder. if (y < TWO_1023) x %= y + y; // Now adjust x to get correct precision. if (y < 4 / TWO_1023) { if (x + x > y) { x -= y; if (x + x >= y) x -= y; } } else { y *= 0.5; if (x > y) { x -= y; if (x >= y) x -= y; } } return negative ? -x : x; }
|
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. // Achieve x < 2y, then take first shot at remainder. if (y < TWO_1023) x %= y + y; // Now adjust x to get correct precision. if (y < 4 / TWO_1023) { if (x + x > y) { x -= y; if (x + x >= y) x -= y; } } else { y *= 0.5; if (x > y) { x -= y; if (x >= y) x -= y; } } return negative ? -x : x; }
| 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. // Achieve x < 2y, then take first shot at remainder. if (y < TWO_1023) x %= y + y; // Now adjust x to get correct precision. if (y < 4 / TWO_1023) { if (x + x > y) { x -= y; if (x + x >= y) x -= y; } } else { y *= 0.5; if (x > y) { x -= y; if (x >= y) x -= y; } } return negative ? -x : x; }
|
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. // Achieve x < 2y, then take first shot at remainder. if (y < TWO_1023) x %= y + y; // Now adjust x to get correct precision. if (y < 4 / TWO_1023) { if (x + x > y) { x -= y; if (x + x >= y) x -= y; } } else { y *= 0.5; if (x > y) { x -= y; if (x >= y) x -= y; } } return negative ? -x : x; }
| 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. // Achieve x < 2y, then take first shot at remainder. if (y < TWO_1023) x %= y + y; // Now adjust x to get correct precision. if (y < 4 / TWO_1023) { if (x + x > y) { x -= y; if (x + x >= y) x -= y; } } else { y *= 0.5; if (x > y) { x -= y; if (x >= y) x -= y; } } return negative ? -x : x; }
|
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. // Achieve x < 2y, then take first shot at remainder. if (y < TWO_1023) x %= y + y; // Now adjust x to get correct precision. if (y < 4 / TWO_1023) { if (x + x > y) { x -= y; if (x + x >= y) x -= y; } } else { y *= 0.5; if (x > y) { x -= y; if (x >= y) x -= y; } } return negative ? -x : x; }
| 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))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double r = x - (PI_L / 2 - x * (p / q)); return negative ? PI / 2 + r : PI / 2 - r; } if (negative) // x<=-0.5. { double z = (1 + x) * 0.5; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double s = sqrt(z); double w = p / q * s - PI_L / 2; return PI - 2 * (s + w); } double z = (1 - x) * 0.5; // x>0.5. double s = sqrt(z); double df = (float) s; double c = (z - df * df) / (s + df); double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double w = p / q * s + c; return 2 * (df + w); }
|
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))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double r = x - (PI_L / 2 - x * (p / q)); return negative ? PI / 2 + r : PI / 2 - r; } if (negative) // x<=-0.5. { double z = (1 + x) * 0.5; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double s = sqrt(z); double w = p / q * s - PI_L / 2; return PI - 2 * (s + w); } double z = (1 - x) * 0.5; // x>0.5. double s = sqrt(z); double df = (float) s; double c = (z - df * df) / (s + df); double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double w = p / q * s + c; return 2 * (df + w); }
| 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))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double r = x - (PI_L / 2 - x * (p / q)); return negative ? PI / 2 + r : PI / 2 - r; } if (negative) // x<=-0.5. { double z = (1 + x) * 0.5; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double s = sqrt(z); double w = p / q * s - PI_L / 2; return PI - 2 * (s + w); } double z = (1 - x) * 0.5; // x>0.5. double s = sqrt(z); double df = (float) s; double c = (z - df * df) / (s + df); double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double w = p / q * s + c; return 2 * (df + w); }
|
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))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double r = x - (PI_L / 2 - x * (p / q)); return negative ? PI / 2 + r : PI / 2 - r; } if (negative) // x<=-0.5. { double z = (1 + x) * 0.5; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double s = sqrt(z); double w = p / q * s - PI_L / 2; return PI - 2 * (s + w); } double z = (1 - x) * 0.5; // x>0.5. double s = sqrt(z); double df = (float) s; double c = (z - df * df) / (s + df); double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double w = p / q * s + c; return 2 * (df + w); }
| 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))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double r = x - (PI_L / 2 - x * (p / q)); return negative ? PI / 2 + r : PI / 2 - r; } if (negative) // x<=-0.5. { double z = (1 + x) * 0.5; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double s = sqrt(z); double w = p / q * s - PI_L / 2; return PI - 2 * (s + w); } double z = (1 - x) * 0.5; // x>0.5. double s = sqrt(z); double df = (float) s; double c = (z - df * df) / (s + df); double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double w = p / q * s + c; return 2 * (df + w); }
|
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))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double r = x - (PI_L / 2 - x * (p / q)); return negative ? PI / 2 + r : PI / 2 - r; } if (negative) // x<=-0.5. { double z = (1 + x) * 0.5; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double s = sqrt(z); double w = p / q * s - PI_L / 2; return PI - 2 * (s + w); } double z = (1 - x) * 0.5; // x>0.5. double s = sqrt(z); double df = (float) s; double c = (z - df * df) / (s + df); double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double w = p / q * s + c; return 2 * (df + w); }
| 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))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double r = x - (PI_L / 2 - x * (p / q)); return negative ? PI / 2 + r : PI / 2 - r; } if (negative) // x<=-0.5. { double z = (1 + x) * 0.5; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double s = sqrt(z); double w = p / q * s - PI_L / 2; return PI - 2 * (s + w); } double z = (1 - x) * 0.5; // x>0.5. double s = sqrt(z); double df = (float) s; double c = (z - df * df) / (s + df); double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double w = p / q * s + c; return 2 * (df + w); }
|
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))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double r = x - (PI_L / 2 - x * (p / q)); return negative ? PI / 2 + r : PI / 2 - r; } if (negative) // x<=-0.5. { double z = (1 + x) * 0.5; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double s = sqrt(z); double w = p / q * s - PI_L / 2; return PI - 2 * (s + w); } double z = (1 - x) * 0.5; // x>0.5. double s = sqrt(z); double df = (float) s; double c = (z - df * df) / (s + df); double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double w = p / q * s + c; return 2 * (df + w); }
| 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))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double r = x - (PI_L / 2 - x * (p / q)); return negative ? PI / 2 + r : PI / 2 - r; } if (negative) // x<=-0.5. { double z = (1 + x) * 0.5; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double s = sqrt(z); double w = p / q * s - PI_L / 2; return PI - 2 * (s + w); } double z = (1 - x) * 0.5; // x>0.5. double s = sqrt(z); double df = (float) s; double c = (z - df * df) / (s + df); double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double w = p / q * s + c; return 2 * (df + w); }
|
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))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double r = x - (PI_L / 2 - x * (p / q)); return negative ? PI / 2 + r : PI / 2 - r; } if (negative) // x<=-0.5. { double z = (1 + x) * 0.5; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double s = sqrt(z); double w = p / q * s - PI_L / 2; return PI - 2 * (s + w); } double z = (1 - x) * 0.5; // x>0.5. double s = sqrt(z); double df = (float) s; double c = (z - df * df) / (s + df); double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double w = p / q * s + c; return 2 * (df + w); }
| 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))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double r = x - (PI_L / 2 - x * (p / q)); return negative ? PI / 2 + r : PI / 2 - r; } if (negative) // x<=-0.5. { double z = (1 + x) * 0.5; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double s = sqrt(z); double w = p / q * s - PI_L / 2; return PI - 2 * (s + w); } double z = (1 - x) * 0.5; // x>0.5. double s = sqrt(z); double df = (float) s; double c = (z - df * df) / (s + df); double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double w = p / q * s + c; return 2 * (df + w); }
|
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))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double r = x - (PI_L / 2 - x * (p / q)); return negative ? PI / 2 + r : PI / 2 - r; } if (negative) // x<=-0.5. { double z = (1 + x) * 0.5; double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double s = sqrt(z); double w = p / q * s - PI_L / 2; return PI - 2 * (s + w); } double z = (1 - x) * 0.5; // x>0.5. double s = sqrt(z); double df = (float) s; double c = (z - df * df) / (s + df); double p = z * (PS0 + z * (PS1 + z * (PS2 + z * (PS3 + z * (PS4 + z * PS5))))); double q = 1 + z * (QS1 + z * (QS2 + z * (QS3 + z * QS4))); double w = p / q * s + c; return 2 * (df + w); }
| 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 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); return negative ? -x - x * (p / q) : x + x * (p / q); } double w = 1 - x; // 1>|x|>=0.5. double t = w * 0.5; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); double s = sqrt(t); if (x >= 0.975) { w = p / q; t = PI / 2 - (2 * (s + s * w) - PI_L / 2); } else { w = (float) s; double c = (t - w * w) / (s + w); p = 2 * s * (p / q) - (PI_L / 2 - 2 * c); q = PI / 4 - 2 * w; t = PI / 4 - (p - q); } return negative ? -t : t; }
|
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 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); return negative ? -x - x * (p / q) : x + x * (p / q); } double w = 1 - x; // 1>|x|>=0.5. double t = w * 0.5; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); double s = sqrt(t); if (x >= 0.975) { w = p / q; t = PI / 2 - (2 * (s + s * w) - PI_L / 2); } else { w = (float) s; double c = (t - w * w) / (s + w); p = 2 * s * (p / q) - (PI_L / 2 - 2 * c); q = PI / 4 - 2 * w; t = PI / 4 - (p - q); } return negative ? -t : t; }
| 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 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); return negative ? -x - x * (p / q) : x + x * (p / q); } double w = 1 - x; // 1>|x|>=0.5. double t = w * 0.5; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); double s = sqrt(t); if (x >= 0.975) { w = p / q; t = PI / 2 - (2 * (s + s * w) - PI_L / 2); } else { w = (float) s; double c = (t - w * w) / (s + w); p = 2 * s * (p / q) - (PI_L / 2 - 2 * c); q = PI / 4 - 2 * w; t = PI / 4 - (p - q); } return negative ? -t : t; }
|
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 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); return negative ? -x - x * (p / q) : x + x * (p / q); } double w = 1 - x; // 1>|x|>=0.5. double t = w * 0.5; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); double s = sqrt(t); if (x >= 0.975) { w = p / q; t = PI / 2 - (2 * (s + s * w) - PI_L / 2); } else { w = (float) s; double c = (t - w * w) / (s + w); p = 2 * s * (p / q) - (PI_L / 2 - 2 * c); q = PI / 4 - 2 * w; t = PI / 4 - (p - q); } return negative ? -t : t; }
| 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 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); return negative ? -x - x * (p / q) : x + x * (p / q); } double w = 1 - x; // 1>|x|>=0.5. double t = w * 0.5; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); double s = sqrt(t); if (x >= 0.975) { w = p / q; t = PI / 2 - (2 * (s + s * w) - PI_L / 2); } else { w = (float) s; double c = (t - w * w) / (s + w); p = 2 * s * (p / q) - (PI_L / 2 - 2 * c); q = PI / 4 - 2 * w; t = PI / 4 - (p - q); } return negative ? -t : t; }
|
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 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); return negative ? -x - x * (p / q) : x + x * (p / q); } double w = 1 - x; // 1>|x|>=0.5. double t = w * 0.5; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); double s = sqrt(t); if (x >= 0.975) { w = p / q; t = PI / 2 - (2 * (s + s * w) - PI_L / 2); } else { w = (float) s; double c = (t - w * w) / (s + w); p = 2 * s * (p / q) - (PI_L / 2 - 2 * c); q = PI / 4 - 2 * w; t = PI / 4 - (p - q); } return negative ? -t : t; }
| 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 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); return negative ? -x - x * (p / q) : x + x * (p / q); } double w = 1 - x; // 1>|x|>=0.5. double t = w * 0.5; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); double s = sqrt(t); if (x >= 0.975) { w = p / q; t = PI / 2 - (2 * (s + s * w) - PI_L / 2); } else { w = (float) s; double c = (t - w * w) / (s + w); p = 2 * s * (p / q) - (PI_L / 2 - 2 * c); q = PI / 4 - 2 * w; t = PI / 4 - (p - q); } return negative ? -t : t; }
|
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 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); return negative ? -x - x * (p / q) : x + x * (p / q); } double w = 1 - x; // 1>|x|>=0.5. double t = w * 0.5; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); double s = sqrt(t); if (x >= 0.975) { w = p / q; t = PI / 2 - (2 * (s + s * w) - PI_L / 2); } else { w = (float) s; double c = (t - w * w) / (s + w); p = 2 * s * (p / q) - (PI_L / 2 - 2 * c); q = PI / 4 - 2 * w; t = PI / 4 - (p - q); } return negative ? -t : t; }
| 2,237
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.