bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public double getY1() { return y1; } | public double getY1() { return y1; } | 37,682 |
public double getY2() { return y2; } | public double getY2() { return y2; } | 37,683 |
public void setLine(double x1, double y1, double x2, double y2) { this.x1 = (float) x1; this.y1 = (float) y1; this.x2 = (float) x2; this.y2 = (float) y2; } | public void setLine(double x1, double y1, double x2, double y2) { this.x1 = (float) x1; this.y1 = (float) y1; this.x2 = (float) x2; this.y2 = (float) y2; } | 37,684 |
protected Line2D() { } | protected Line2D() { } | 37,685 |
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw (Error) new InternalError().initCause(e); // Impossible } } | public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw (Error) new InternalError().initCause(e); // Impossible } } | 37,686 |
public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw (Error) new InternalError().initCause(e); // Impossible } } | public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw (Error) new InternalError().initCause(e); // Impossible } } | 37,687 |
public boolean contains(double x, double y) { return false; } | public boolean contains(double x, double y) { return false; } | 37,688 |
public Rectangle getBounds() { return getBounds2D().getBounds(); } | public Rectangle getBounds() { return getBounds2D().getBounds(); } | 37,689 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,690 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,691 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,692 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,693 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,694 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,695 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,696 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,697 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,698 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,699 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,700 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,701 |
public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | public PathIterator getPathIterator(final AffineTransform at) { return new PathIterator() { /** Current coordinate. */ private int current; public int getWindingRule() { return WIND_NON_ZERO; } public boolean isDone() { return current >= 2; } public void next() { current++; } public int cur... | 37,702 |
public int currentSegment(float[] coords) { int result; switch (current) { case 0 : coords[0] = (float) getX1(); coords[1] = (float) getY1(); result = SEG_MOVETO; break; case 1 : coords[0] = (float) getX2(); coords[1] = (float) getY2(); result = SEG_LINETO; break... | public int currentSegment(float[] coords) { int result; switch (current) { case 0 : coords[0] = (float) getX1(); coords[1] = (float) getY1(); result = SEG_MOVETO; break; case 1 : coords[0] = (float) getX2(); coords[1] = (float) getY2(); result = SEG_LINETO; break... | 37,703 |
public int currentSegment(float[] coords) { int result; switch (current) { case 0 : coords[0] = (float) getX1(); coords[1] = (float) getY1(); result = SEG_MOVETO; break; case 1 : coords[0] = (float) getX2(); coords[1] = (float) getY2(); result = SEG_LINETO; break... | public int currentSegment(float[] coords) { int result; switch (current) { case 0 : coords[0] = (float) getX1(); coords[1] = (float) getY1(); result = SEG_MOVETO; break; case 1 : coords[0] = (float) getX2(); coords[1] = (float) getY2(); result = SEG_LINETO; break... | 37,704 |
public int currentSegment(float[] coords) { int result; switch (current) { case 0 : coords[0] = (float) getX1(); coords[1] = (float) getY1(); result = SEG_MOVETO; break; case 1 : coords[0] = (float) getX2(); coords[1] = (float) getY2(); result = SEG_LINETO; break... | public int currentSegment(float[] coords) { int result; switch (current) { case 0 : coords[0] = (float) getX1(); coords[1] = (float) getY1(); result = SEG_MOVETO; break; case 1 : coords[0] = (float) getX2(); coords[1] = (float) getY2(); result = SEG_LINETO; break... | 37,705 |
public int currentSegment(float[] coords) { int result; switch (current) { case 0 : coords[0] = (float) getX1(); coords[1] = (float) getY1(); result = SEG_MOVETO; break; case 1 : coords[0] = (float) getX2(); coords[1] = (float) getY2(); result = SEG_LINETO; break... | public int currentSegment(float[] coords) { int result; switch (current) { case 0 : coords[0] = (float) getX1(); coords[1] = (float) getY1(); result = SEG_MOVETO; break; case 1 : coords[0] = (float) getX2(); coords[1] = (float) getY2(); result = SEG_LINETO; break... | 37,706 |
public int getWindingRule() { return WIND_NON_ZERO; } | public int getWindingRule() { return WIND_NON_ZERO; } | 37,707 |
public boolean isDone() { return current >= 2; } | public boolean isDone() { return current >= 2; } | 37,708 |
public void next() { current++; } | public void next() { current++; } | 37,709 |
public boolean intersects(double x, double y, double w, double h) { if (w <= 0 || h <= 0) return false; double x1 = getX1(); double y1 = getY1(); double x2 = getX2(); double y2 = getY2(); if (x1 >= x && x1 <= x + w && y1 >= y && y1 <= y + h) return true; if (x2 >= x && x2 <= x + w && y2 >= y && y2 <= y + h)... | public boolean intersects(double x, double y, double w, double h) { if (w <= 0 || h <= 0) return false; double x1 = getX1(); double y1 = getY1(); double x2 = getX2(); double y2 = getY2(); if (x1 >= x && x1 <= x + w && y1 >= y && y1 <= y + h) return true; if (x2 >= x && x2 <= x + w && y2 >= y && y2 <= y + h)... | 37,710 |
public boolean intersects(double x, double y, double w, double h) { if (w <= 0 || h <= 0) return false; double x1 = getX1(); double y1 = getY1(); double x2 = getX2(); double y2 = getY2(); if (x1 >= x && x1 <= x + w && y1 >= y && y1 <= y + h) return true; if (x2 >= x && x2 <= x + w && y2 >= y && y2 <= y + h)... | public boolean intersects(double x, double y, double w, double h) { if (w <= 0 || h <= 0) return false; double x1 = getX1(); double y1 = getY1(); double x2 = getX2(); double y2 = getY2(); if (x1 >= x && x1 <= x + w && y1 >= y && y1 <= y + h) return true; if (x2 >= x && x2 <= x + w && y2 >= y && y2 <= y + h)... | 37,711 |
public boolean intersectsLine(double x1, double y1, double x2, double y2) { return linesIntersect(getX1(), getY1(), getX2(), getY2(), x1, y1, x2, y2); } | public boolean intersectsLine(double x1, double y1, double x2, double y2) { return linesIntersect(getX1(), getY1(), getX2(), getY2(), x1, y1, x2, y2); } | 37,712 |
public static double ptLineDist(double x1, double y1, double x2, double y2, double px, double py) { return Math.sqrt(ptLineDistSq(x1, y1, x2, y2, px, py)); } | public static double ptLineDist(double x1, double y1, double x2, double y2, double px, double py) { return Math.sqrt(ptLineDistSq(x1, y1, x2, y2, px, py)); } | 37,713 |
public static double ptLineDistSq(double x1, double y1, double x2, double y2, double px, double py) { double pd2 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2); double x, y; if (pd2 == 0) { // Points are coincident. x = x1; y = y2; } else { double u = ((px - x1) * (x2 - x1) + (py - y1) * (y2 - y1)) / pd2;... | public static double ptLineDistSq(double x1, double y1, double x2, double y2, double px, double py) { double pd2 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2); double x, y; if (pd2 == 0) { // Points are coincident. x = x1; y = y2; } else { double u = ((px - x1) * (x2 - x1) + (py - y1) * (y2 - y1)) / pd2;... | 37,714 |
public static double ptLineDistSq(double x1, double y1, double x2, double y2, double px, double py) { double pd2 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2); double x, y; if (pd2 == 0) { // Points are coincident. x = x1; y = y2; } else { double u = ((px - x1) * (x2 - x1) + (py - y1) * (y2 - y1)) / pd2;... | public static double ptLineDistSq(double x1, double y1, double x2, double y2, double px, double py) { double pd2 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2); double x, y; if (pd2 == 0) { // Points are coincident. x = x1; y = y2; } else { double u = ((px - x1) * (x2 - x1) + (py - y1) * (y2 - y1)) / pd2;... | 37,715 |
public static double ptLineDistSq(double x1, double y1, double x2, double y2, double px, double py) { double pd2 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2); double x, y; if (pd2 == 0) { // Points are coincident. x = x1; y = y2; } else { double u = ((px - x1) * (x2 - x1) + (py - y1) * (y2 - y1)) / pd2;... | public static double ptLineDistSq(double x1, double y1, double x2, double y2, double px, double py) { double pd2 = (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2); double x, y; if (pd2 == 0) { // Points are coincident. x = x1; y = y2; } else { double u = ((px - x1) * (x2 - x1) + (py - y1) * (y2 - y1)) / pd2;... | 37,716 |
public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { if ((x1 == x2 && y1 == y2) || (x1 == px && y1 == py)) return 0; // Coincident points. // Translate to the origin. x2 -= x1; y2 -= y1; px -= x1; py -= y1; double slope2 = y2 / x2; double slopep = py / px; if (sl... | public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { if ((x1 == x2 && y1 == y2) || (x1 == px && y1 == py)) return 0; // Coincident points. // Translate to the origin. x2 -= x1; y2 -= y1; px -= x1; py -= y1; double slope2 = y2 / x2; double slopep = py / px; if (sl... | 37,717 |
public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { if ((x1 == x2 && y1 == y2) || (x1 == px && y1 == py)) return 0; // Coincident points. // Translate to the origin. x2 -= x1; y2 -= y1; px -= x1; py -= y1; double slope2 = y2 / x2; double slopep = py / px; if (sl... | public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { if ((x1 == x2 && y1 == y2) || (x1 == px && y1 == py)) return 0; // Coincident points. // Translate to the origin. x2 -= x1; y2 -= y1; px -= x1; py -= y1; double slope2 = y2 / x2; double slopep = py / px; if (sl... | 37,718 |
public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { if ((x1 == x2 && y1 == y2) || (x1 == px && y1 == py)) return 0; // Coincident points. // Translate to the origin. x2 -= x1; y2 -= y1; px -= x1; py -= y1; double slope2 = y2 / x2; double slopep = py / px; if (sl... | public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { if ((x1 == x2 && y1 == y2) || (x1 == px && y1 == py)) return 0; // Coincident points. // Translate to the origin. x2 -= x1; y2 -= y1; px -= x1; py -= y1; double slope2 = y2 / x2; double slopep = py / px; if (sl... | 37,719 |
public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { if ((x1 == x2 && y1 == y2) || (x1 == px && y1 == py)) return 0; // Coincident points. // Translate to the origin. x2 -= x1; y2 -= y1; px -= x1; py -= y1; double slope2 = y2 / x2; double slopep = py / px; if (sl... | public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { if ((x1 == x2 && y1 == y2) || (x1 == px && y1 == py)) return 0; // Coincident points. // Translate to the origin. x2 -= x1; y2 -= y1; px -= x1; py -= y1; double slope2 = y2 / x2; double slopep = py / px; if (sl... | 37,720 |
public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { if ((x1 == x2 && y1 == y2) || (x1 == px && y1 == py)) return 0; // Coincident points. // Translate to the origin. x2 -= x1; y2 -= y1; px -= x1; py -= y1; double slope2 = y2 / x2; double slopep = py / px; if (sl... | public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { if ((x1 == x2 && y1 == y2) || (x1 == px && y1 == py)) return 0; // Coincident points. // Translate to the origin. x2 -= x1; y2 -= y1; px -= x1; py -= y1; double slope2 = y2 / x2; double slopep = py / px; if (sl... | 37,721 |
public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { if ((x1 == x2 && y1 == y2) || (x1 == px && y1 == py)) return 0; // Coincident points. // Translate to the origin. x2 -= x1; y2 -= y1; px -= x1; py -= y1; double slope2 = y2 / x2; double slopep = py / px; if (sl... | public static int relativeCCW(double x1, double y1, double x2, double y2, double px, double py) { if ((x1 == x2 && y1 == y2) || (x1 == px && y1 == py)) return 0; // Coincident points. // Translate to the origin. x2 -= x1; y2 -= y1; px -= x1; py -= y1; double slope2 = y2 / x2; double slopep = py / px; if (sl... | 37,722 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Color saved = g.getColor(); g.setColor(Color.BLACK); g.drawRect(x + 2, y + 2, width - 4, height - 4); g.setColor(saved); } | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Color saved = g.getColor(); g.setColor(Color.BLACK); g.drawRect(x + 2, y + 2, width - 4, height - 4); g.setColor(saved); } | 37,723 |
protected JButton createLeftOneTouchButton() { int dir = SwingConstants.WEST; if (orientation == JSplitPane.VERTICAL_SPLIT) dir = SwingConstants.NORTH; JButton button = new BasicArrowButton(dir); button.setBorderPainted(false); return button; } | protected JButton createLeftOneTouchButton() { int dir = SwingConstants.WEST; if (orientation == JSplitPane.VERTICAL_SPLIT) dir = SwingConstants.NORTH; JButton button = new BasicArrowButton(dir); button.setBorder(null); return button; } | 37,724 |
protected JButton createRightOneTouchButton() { int dir = SwingConstants.EAST; if (orientation == JSplitPane.VERTICAL_SPLIT) dir = SwingConstants.SOUTH; JButton button = new BasicArrowButton(dir); button.setBorderPainted(false); return button; } | protected JButton createRightOneTouchButton() { int dir = SwingConstants.EAST; if (orientation == JSplitPane.VERTICAL_SPLIT) dir = SwingConstants.SOUTH; JButton button = new BasicArrowButton(dir); button.setBorder(null); return button; } | 37,725 |
public Handler() { } | public Handler() { } | 37,726 |
protected URLConnection openConnection(URL url) throws IOException { return (new gnu.java.net.protocol.file.FileURLConnection(url)); } | protected URLConnection openConnection(URL url) throws IOException { return (new gnu.java.net.protocol.file.FileURLConnection(url)); } | 37,727 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | 37,728 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | 37,729 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | 37,730 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | 37,731 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | 37,732 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | 37,733 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | 37,734 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | 37,735 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | 37,736 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | 37,737 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. // Bunches of things should be true. Make sure. if (end < start) return; i... | 37,738 |
protected String toExternalForm(URL url) { StringBuffer sb = new StringBuffer(PlatformHelper.INITIAL_MAX_PATH); sb.append("file:"); String prefix = url.getHost(); if (prefix != null && prefix.length() > 0) { sb.append(prefix); int port = url.getPort(); if (port > 0) { sb.append(':'); sb.append(port); ... | protected String toExternalForm(URL url) { StringBuffer sb = new StringBuffer(PlatformHelper.INITIAL_MAX_PATH); sb.append("file:"); String prefix = url.getHost(); if (prefix != null && prefix.length() > 0) { sb.append(prefix); int port = url.getPort(); if (port > 0) { sb.append(':'); sb.append(port); ... | 37,739 |
protected String toExternalForm(URL url) { StringBuffer sb = new StringBuffer(PlatformHelper.INITIAL_MAX_PATH); sb.append("file:"); String prefix = url.getHost(); if (prefix != null && prefix.length() > 0) { sb.append(prefix); int port = url.getPort(); if (port > 0) { sb.append(':'); sb.append(port); ... | protected String toExternalForm(URL url) { StringBuffer sb = new StringBuffer(PlatformHelper.INITIAL_MAX_PATH); sb.append("file:"); String prefix = url.getHost(); if (prefix != null && prefix.length() > 0) { sb.append(prefix); int port = url.getPort(); if (port > 0) { sb.append(':'); sb.append(port); ... | 37,740 |
public void setArgumentVariables(Variable<T>[] vars, int nArgs) { displacement = 0; for (int i = 0; i < nArgs; i += 1) { // TODO this might not be right, check with Ewout displacement = vars[i].getIndex() * 4; vars[i].setLocation(new StackLocation(displacement)); ... | public void setArgumentVariables(Variable<T>[] vars, int nArgs) { displacement = 0; for (int i = 0; i < nArgs; i += 1) { // TODO this might not be right, check with Ewout displacement = vars[i].getIndex() * 4; vars[i].setLocation(new StackLocation<T>(displacement)); ... | 37,741 |
public int getAssignAddress() { if (assignQuad == null) { return 0; } // Add one so this live range starts just after this operation. // This way live range interference computation is simplified. return this.assignQuad.getLHSLiveAddress(); } | public int getAssignAddress() { if (assignQuad == null) { return 0; } // Add one so this live range starts just after this operation. // This way live range interference computation is simplified. return this.assignQuad.getLHSLiveAddress(); } | 37,742 |
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof PKCS8EncodedKeySpec)) throw new InvalidKeySpecException("only supports PKCS8 key specs"); byte[] input = ((PKCS8EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ... | protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof PKCS8EncodedKeySpec)) throw new InvalidKeySpecException("Unsupported key specification"); byte[] input = ((PKCS8EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ... | 37,743 |
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof PKCS8EncodedKeySpec)) throw new InvalidKeySpecException("only supports PKCS8 key specs"); byte[] input = ((PKCS8EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ... | protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof PKCS8EncodedKeySpec)) throw new InvalidKeySpecException("only supports PKCS8 key specs"); byte[] input = ((PKCS8EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ... | 37,744 |
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof X509EncodedKeySpec)) throw new InvalidKeySpecException("only supports X.509 key specs"); byte[] input = ((X509EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ... | protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof X509EncodedKeySpec)) throw new InvalidKeySpecException("Unsupported key specification"); byte[] input = ((X509EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ... | 37,745 |
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof X509EncodedKeySpec)) throw new InvalidKeySpecException("only supports X.509 key specs"); byte[] input = ((X509EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ... | protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (! (keySpec instanceof X509EncodedKeySpec)) throw new InvalidKeySpecException("only supports X.509 key specs"); byte[] input = ((X509EncodedKeySpec) keySpec).getEncoded(); // try DSS try { ... | 37,746 |
public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString()); ... | public String toString() { StringBuffer sb = new StringBuffer(); sb.append("[StyleContext.SmallattributeSet:"); for (int i = 0; i < attrs.length - 1; ++i) { sb.append(" ("); sb.append(attrs[i].toString()); sb.append("="); sb.append(attrs[i+1].toString());... | 37,747 |
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { consumer.setPixels(x, y, w, h, model, pixels, offset, scansize); } | public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { Rectangle filterBounds = new Rectangle(this.x, this.y, this.width, this.height); Rectangle pixelBounds = new Rectangle(x, y, w, h); if (filterBounds.intersects(pixelBounds)) { Rectangle bounds = fi... | 37,748 |
public void setProperties(Hashtable props) {// props.put("filters", "ReplicateScaleFilter"); consumer.setProperties(props); } | props.put("filters", "CropImageFilter"); props.put("filters", "CropImageFilter"); props.put("filters", "CropImageFilter"); props.put("filters", "CropImageFilter"); publicprops.put("filters", "CropImageFilter"); voidprops.put("filters", "CropImageFilter"); setProperties(Hashtableprops.put("filters", "CropImageFilter"); ... | 37,749 |
public void addKeyEventPostProcessor(KeyEventPostProcessor postProcessor) { if (postProcessor != null) keyEventPostProcessors.add(postProcessor); } | public void addKeyEventPostProcessor (KeyEventPostProcessor postProcessor) { if (postProcessor != null) keyEventPostProcessors.add(postProcessor); } | 37,750 |
public void addKeyEventPostProcessor(KeyEventPostProcessor postProcessor) { if (postProcessor != null) keyEventPostProcessors.add(postProcessor); } | public void addKeyEventPostProcessor(KeyEventPostProcessor postProcessor) { if (postProcessor != null) keyEventPostProcessors.add (postProcessor); } | 37,751 |
public void addVetoableChangeListener(String name, VetoableChangeListener l) { if (l != null) vetoableChangeSupport.addVetoableChangeListener(name, l); } | public void addVetoableChangeListener(VetoableChangeListener l) { if (l != null) vetoableChangeSupport.addVetoableChangeListener(name, l); } | 37,752 |
public void addVetoableChangeListener(String name, VetoableChangeListener l) { if (l != null) vetoableChangeSupport.addVetoableChangeListener(name, l); } | public void addVetoableChangeListener(String name, VetoableChangeListener l) { if (l != null) vetoableChangeSupport.addVetoableChangeListener(l); } | 37,753 |
public void clearGlobalFocusOwner() { // XXX Is this enough? setGlobalFocusOwner(null); } | public void clearGlobalFocusOwner () { synchronized (currentFocusOwners) { Component focusOwner = getGlobalFocusOwner (); Component permanentFocusOwner = getGlobalPermanentFocusOwner (); setGlobalFocusOwner (null); setGlobalPermanentFocusOwner (null); if (focusOwner != null) { // XXX Is this enough? setGlo... | 37,754 |
public void clearGlobalFocusOwner() { // XXX Is this enough? setGlobalFocusOwner(null); } | public void clearGlobalFocusOwner() { // XXX Is this enough? EventQueue q = Toolkit.getDefaultToolkit ().getSystemEventQueue (); if (focusOwner != permanentFocusOwner) q.postEvent (new FocusEvent (focusOwner, FocusEvent.FOCUS_LOST, true)); else q.postEvent (new FocusEvent (focusOwner, FocusEvent.FOCUS_LOST,... | 37,755 |
public Container getCurrentFocusCycleRoot() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalCurrentFocusCycleRoot(); } catch (SecurityException e) { retu... | public Container getCurrentFocusCycleRoot() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalCurrentFocusCycleRoot(); } catch (SecurityException e) { retu... | 37,757 |
public Container getCurrentFocusCycleRoot() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalCurrentFocusCycleRoot(); } catch (SecurityException e) { retu... | public Container getCurrentFocusCycleRoot() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalCurrentFocusCycleRoot(); } catch (SecurityException e) { retu... | 37,758 |
public Component getPermanentFocusOwner() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalPermanentFocusOwner(); } catch (SecurityException e) { return n... | public Component getPermanentFocusOwner () { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalPermanentFocusOwner(); } catch (SecurityException e) { return ... | 37,759 |
public Component getPermanentFocusOwner() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalPermanentFocusOwner(); } catch (SecurityException e) { return n... | public Component getPermanentFocusOwner() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalPermanentFocusOwner(); } catch (SecurityException e) { return n... | 37,760 |
public void removeKeyEventPostProcessor(KeyEventPostProcessor postProcessor) { keyEventPostProcessors.remove(postProcessor); } | public void removeKeyEventPostProcessor (KeyEventPostProcessor postProcessor) { keyEventPostProcessors.remove(postProcessor); } | 37,761 |
public void removeKeyEventPostProcessor(KeyEventPostProcessor postProcessor) { keyEventPostProcessors.remove(postProcessor); } | public void removeKeyEventPostProcessor(KeyEventPostProcessor postProcessor) { keyEventPostProcessors.remove (postProcessor); } | 37,762 |
public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException(); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = defaultF... | public void setDefaultFocusTraversalKeys (int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException(); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = default... | 37,763 |
public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException(); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = defaultF... | public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException (); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = defaul... | 37,764 |
public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException(); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = defaultF... | public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException (); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = default... | 37,765 |
public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException(); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = defaultF... | public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException(); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = defaultF... | 37,766 |
public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException(); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = defaultF... | public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException(); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = defaultF... | 37,767 |
public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException(); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = defaultF... | public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException (); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = default... | 37,768 |
public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException(); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = defaultF... | public void setDefaultFocusTraversalKeys(int id, Set keystrokes) { if (keystrokes == null) throw new IllegalArgumentException(); Set sa; Set sb; Set sc; String type; switch (id) { case FORWARD_TRAVERSAL_KEYS: sa = defaultFocusKeys[BACKWARD_TRAVERSAL_KEYS]; sb = defaultF... | 37,769 |
public void setDefaultFocusTraversalPolicy(FocusTraversalPolicy policy) { if (policy == null) throw new IllegalArgumentException(); firePropertyChange("defaultFocusTraversalPolicy", defaultPolicy, policy); defaultPolicy = policy; } | public void setDefaultFocusTraversalPolicy (FocusTraversalPolicy policy) { if (policy == null) throw new IllegalArgumentException(); firePropertyChange("defaultFocusTraversalPolicy", defaultPolicy, policy); defaultPolicy = policy; } | 37,770 |
public void setDefaultFocusTraversalPolicy(FocusTraversalPolicy policy) { if (policy == null) throw new IllegalArgumentException(); firePropertyChange("defaultFocusTraversalPolicy", defaultPolicy, policy); defaultPolicy = policy; } | public void setDefaultFocusTraversalPolicy(FocusTraversalPolicy policy) { if (policy == null) throw new IllegalArgumentException(); firePropertyChange("defaultFocusTraversalPolicy", defaultPolicy, policy); defaultPolicy = policy; } | 37,771 |
public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); //TODO fix it /* if (awtFrame.isVisible()) { Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFr... | public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); //TODO fix it /* if (awtFrame.isVisible()) { Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFr... | 37,772 |
public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); //TODO fix it /* if (awtFrame.isVisible()) { Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFr... | public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); //TODO fix it /* if (awtFrame.isVisible()) { Point p = awtFrame.getLocationOnScreen(); Insets ins = swingPeer.getInsets(); awtFr... | 37,773 |
BackwardAction() { super(backwardAction); } | BackwardAction() { super(backwardAction); } | 37,774 |
DownAction() { super(downAction); } | DownAction() { super(downAction, SwingConstants.SOUTH); } | 37,775 |
ForwardAction() { super(forwardAction); } | ForwardAction() { super(forwardAction); } | 37,776 |
public void actionPerformed(ActionEvent event) { try { JTextComponent t = getTextComponent(event); if (t != null) { int offs = Utilities.getNextWord(t, t.getCaretPosition()); Caret c = t.getCaret(); c.setDot(offs); ... | public void actionPerformed(ActionEvent event) { try { JTextComponent t = getTextComponent(event); if (t != null) { int offs = Utilities.getNextWord(t, t.getCaretPosition()); Caret c = t.getCaret(); c.setDot(offs); ... | 37,777 |
public void actionPerformed(ActionEvent event) { try { JTextComponent t = getTextComponent(event); if (t != null) { int offs = Utilities.getNextWord(t, t.getCaretPosition()); Caret c = t.getCaret(); c.setDot(offs); ... | public void actionPerformed(ActionEvent event) { try { JTextComponent t = getTextComponent(event); if (t != null) { int offs = Utilities.getNextWord(t, t.getCaretPosition()); Caret c = t.getCaret(); c.setDot(offs); ... | 37,778 |
public void actionPerformed(ActionEvent event) { try { JTextComponent t = getTextComponent(event); if (t != null) { int offs = Utilities.getNextWord(t, t.getCaretPosition()); Caret c = t.getCaret(); c.setDot(offs); ... | public void actionPerformed(ActionEvent event) { try { JTextComponent t = getTextComponent(event); if (t != null) { int offs = Utilities.getNextWord(t, t.getCaretPosition()); Caret c = t.getCaret(); c.setDot(offs); ... | 37,779 |
public void actionPerformed(ActionEvent event) { try { JTextComponent t = getTextComponent(event); if (t != null) { int offs = Utilities.getPreviousWord(t, t.getCaretPosition()); Caret c = t.getCaret(); c.setDot(offs); ... | public void actionPerformed(ActionEvent event) { try { JTextComponent t = getTextComponent(event); if (t != null) { int offs = Utilities.getPreviousWord(t, t.getCaretPosition()); Caret c = t.getCaret(); c.setDot(offs); ... | 37,780 |
public void actionPerformed(ActionEvent event) { try { JTextComponent t = getTextComponent(event); if (t != null) { int offs = Utilities.getPreviousWord(t, t.getCaretPosition()); Caret c = t.getCaret(); c.setDot(offs); ... | public void actionPerformed(ActionEvent event) { try { JTextComponent t = getTextComponent(event); if (t != null) { int offs = Utilities.getPreviousWord(t, t.getCaretPosition()); Caret c = t.getCaret(); c.setDot(offs); ... | 37,781 |
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); int offs = t.getDocument().getLength(); Caret c = t.getCaret(); c.setDot(0); c.moveDot(offs); try { c.setMagicCaretPosition(t.modelToView(offs).getLocation()); } ... | public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); int offs = t.getDocument().getLength(); Caret c = t.getCaret(); c.setDot(0); c.moveDot(offs); try { c.setMagicCaretPosition(t.modelToView(offs).getLocation()); } ... | 37,782 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.