bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public Rectangle2D getBounds2D() { return new Rectangle2D.Double(x, y, width, height); } | public Rectangle2D getBounds2D() { return new Rectangle2D.Double(x, y, width, height); } | 29,061 |
public double getHeight() { return height; } | public double getHeight() { return height; } | 29,062 |
public double getWidth() { return width; } | public double getWidth() { return width; } | 29,063 |
public double getX() { return x; } | public double getX() { return x; } | 29,064 |
public double getY() { return y; } | public double getY() { return y; } | 29,065 |
public boolean isEmpty() { return height <= 0 || width <= 0; } | public boolean isEmpty() { return height <= 0 || width <= 0; } | 29,066 |
public void setFrame(double x, double y, double w, double h) { this.x = x; this.y = y; height = h; width = w; } | public void setFrame(double x, double y, double w, double h) { this.x = x; this.y = y; height = h; width = w; } | 29,067 |
public Float() { } | public Float() { } | 29,068 |
public Rectangle2D getBounds2D() { return new Rectangle2D.Float(x, y, width, height); } | public Rectangle2D getBounds2D() { return new Rectangle2D.Float(x, y, width, height); } | 29,069 |
public double getHeight() { return height; } | public double getHeight() { return height; } | 29,070 |
public double getWidth() { return width; } | public double getWidth() { return width; } | 29,071 |
public double getX() { return x; } | public double getX() { return x; } | 29,072 |
public double getY() { return y; } | public double getY() { return y; } | 29,073 |
public boolean isEmpty() { return height <= 0 || width <= 0; } | public boolean isEmpty() { return height <= 0 || width <= 0; } | 29,074 |
public void setFrame(float x, float y, float w, float h) { this.x = x; this.y = y; height = h; width = w; } | public void setFrame(float x, float y, float w, float h) { this.x = x; this.y = y; height = h; width = w; } | 29,075 |
protected Ellipse2D() { } | protected Ellipse2D() { } | 29,076 |
public boolean contains(double x, double y) { double rx = getWidth() / 2; double ry = getHeight() / 2; double tx = (x - getCenterX()) / rx; double ty = (y - getCenterY()) / ry; return tx * tx + ty * ty <= 1.0; } | public boolean contains(double x, double y) { double rx = getWidth() / 2; double ry = getHeight() / 2; double tx = (x - getCenterX()) / rx; double ty = (y - getCenterY()) / ry; return tx * tx + ty * ty <= 1.0; } | 29,077 |
public PathIterator getPathIterator(AffineTransform at) { final GeneralPath path = new GeneralPath(GeneralPath.WIND_NON_ZERO, 32); final float x = (float)getX(); final float y = (float)getY(); final float w = (float)getWidth(); final float h = (float)getHeight(); final float hw = w / 2; final float hh = h / 2; ... | public PathIterator getPathIterator(AffineTransform at) { final GeneralPath path = new GeneralPath(GeneralPath.WIND_NON_ZERO, 32); final float x = (float)getX(); final float y = (float)getY(); final float w = (float)getWidth(); final float h = (float)getHeight(); final float hw = w / 2; final float hh = h / 2; ... | 29,078 |
public boolean intersects(double x, double y, double w, double h) { // fixme return false; } | public boolean intersects(double x, double y, double w, double h) { // fixme return false; } | 29,079 |
public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; ... | public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; ... | 29,080 |
public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; ... | public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; ... | 29,081 |
public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; ... | public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; ... | 29,082 |
public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; ... | public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; ... | 29,083 |
public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; ... | public RemoteException mapSystemException(SystemException ex) { RemoteException rex; String status; switch (ex.completed.value()) { case CompletionStatus._COMPLETED_MAYBE: status = "Maybe"; break; case CompletionStatus._COMPLETED_NO: status = "No"; break; ... | 29,084 |
public static Class loadClass (String codebases, String name) throws MalformedURLException, ClassNotFoundException { ClassLoader loader = Thread.currentThread().getContextClassLoader(); //try context class loader first try { return loader.loadClass (name); } catch (ClassNotFoundExcep... | public static Class loadClass (String name) throws MalformedURLException, ClassNotFoundException { ClassLoader loader = Thread.currentThread().getContextClassLoader(); //try context class loader first try { return loader.loadClass (name); } catch (ClassNotFoundException e) { ... | 29,085 |
public static Class loadClass (String codebases, String name) throws MalformedURLException, ClassNotFoundException { ClassLoader loader = Thread.currentThread().getContextClassLoader(); //try context class loader first try { return loader.loadClass (name); } catch (ClassNotFoundExcep... | public static Class loadClass (String codebases, String name) throws MalformedURLException, ClassNotFoundException { ClassLoader loader = Thread.currentThread().getContextClassLoader(); //try context class loader first try { return loader.loadClass (name); } catch (ClassNotFoundExcep... | 29,086 |
public AccessException(String s, Exception e) { super(s, e); } | public AccessException(String s) { super(s, e); } | 29,087 |
public AccessException(String s, Exception e) { super(s, e); } | public AccessException(String s, Exception e) { super(s); } | 29,088 |
public activeObjectMap.Obj findObject(org.omg.CORBA.Object object) { activeObjectMap.Obj h = aom.findObject(object); if (h != null) return h; else { for (int i = 0; i < children.size(); i++) { h = ((gnuPOA) children.get(i)).findObject(object); if (h != null) ... | public AOM.Obj findObject(org.omg.CORBA.Object object) { activeObjectMap.Obj h = aom.findObject(object); if (h != null) return h; else { for (int i = 0; i < children.size(); i++) { h = ((gnuPOA) children.get(i)).findObject(object); if (h != null) ... | 29,089 |
public activeObjectMap.Obj findObject(org.omg.CORBA.Object object) { activeObjectMap.Obj h = aom.findObject(object); if (h != null) return h; else { for (int i = 0; i < children.size(); i++) { h = ((gnuPOA) children.get(i)).findObject(object); if (h != null) ... | public activeObjectMap.Obj findObject(org.omg.CORBA.Object object) { AOM.Obj h = aom.findObject(object); if (h != null) return h; else { for (int i = 0; i < children.size(); i++) { h = ((gnuPOA) children.get(i)).findObject(object); if (h != null) ... | 29,090 |
REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-... | REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-... | 29,092 |
REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-... | REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-... | 29,093 |
REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-... | REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-... | 29,094 |
REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-... | REMatch getMatchImpl(CharIndexed input, int anchor, int eflags, StringBuffer buffer) { // Create a new REMatch to hold results REMatch mymatch = new REMatch(numSubs, anchor, eflags); do { // Optimization: check if anchor + minimumLength > length if (minimumLength == 0 || input.charAt(minimumLength-... | 29,095 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,096 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,097 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,098 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,099 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,100 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,101 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,102 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,103 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,104 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,105 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,106 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,107 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,108 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | } protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException {} } } char[] pattern;} } if (patternObj instanceof String) {} } } pattern = ((String) patternObj).toCharArray();} } } else if (patternObj instanceof char[]) {} } } patter... | 29,109 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,110 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,111 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,112 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,113 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,114 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | else if (unit.bk && (unit.ch == '0') && syntax.get(RESyntax.RE_OCTAL_CHAR)) { CharExpression ce = getCharExpression(pattern, index - 2, pLength, syntax); if (ce == null) throw new REException("invalid octal character", REException.REG_ESCAPE, index); index = index - 2 + ce.len; addToken(currentToken); currentToken ... | 29,115 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,116 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,117 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,118 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,119 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,120 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,121 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,122 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,123 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,124 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,125 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,126 |
protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | protected void initialize(Object patternObj, int cflags, RESyntax syntax, int myIndex, int nextSub) throws REException { char[] pattern; if (patternObj instanceof String) { pattern = ((String) patternObj).toCharArray(); } else if (patternObj instanceof char[]) { pattern = (char[]) patternObj; ... | 29,127 |
boolean match(CharIndexed input, REMatch mymatch) { if (firstToken == null) return next(input, mymatch); // Note the start of this subexpression mymatch.start[subIndex] = mymatch.index; return firstToken.match(input, mymatch); } | boolean match(CharIndexed input, REMatch mymatch) { if (firstToken == null) return next(input, mymatch); // Note the start of this subexpression mymatch.start[subIndex] = mymatch.index; return firstToken.match(input, mymatch); } | 29,128 |
private String substituteAllImpl(CharIndexed input,String replace,int index,int eflags) { StringBuffer buffer = new StringBuffer(); REMatch m; while ((m = getMatchImpl(input,index,eflags,buffer)) != null) { buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ? replace : m.substituteInto(replace) ); ... | private String substituteAllImpl(CharIndexed input,String replace,int index,int eflags) { StringBuffer buffer = new StringBuffer(); REMatch m; while ((m = getMatchImpl(input,index,eflags,buffer)) != null) { buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ? replace : m.substituteInto(replace) ); ... | 29,129 |
private String substituteAllImpl(CharIndexed input,String replace,int index,int eflags) { StringBuffer buffer = new StringBuffer(); REMatch m; while ((m = getMatchImpl(input,index,eflags,buffer)) != null) { buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ? replace : m.substituteInto(replace) ); ... | private String substituteAllImpl(CharIndexed input,String replace,int index,int eflags) { StringBuffer buffer = new StringBuffer(); REMatch m; while ((m = getMatchImpl(input,index,eflags,buffer)) != null) { buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ? replace : m.substituteInto(replace) ); ... | 29,130 |
private String substituteImpl(CharIndexed input,String replace,int index,int eflags) { StringBuffer buffer = new StringBuffer(); REMatch m = getMatchImpl(input,index,eflags,buffer); if (m==null) return buffer.toString(); buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ? replace : m.substituteInto(r... | private String substituteImpl(CharIndexed input,String replace,int index,int eflags) { StringBuffer buffer = new StringBuffer(); REMatch m = getMatchImpl(input,index,eflags,buffer); if (m==null) return buffer.toString(); buffer.append( ((eflags & REG_NO_INTERPOLATE) > 0) ? replace : m.substituteInto(r... | 29,131 |
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; } | RETokenOneOf(int subIndex, String optionsStr, boolean negative, boolean insens) { super(subIndex); this.options = options; this.negative = negative; } | 29,132 |
RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); this.options = options; this.negative = negative; } | RETokenOneOf(int subIndex, Vector options, boolean negative) { super(subIndex); options = new Vector(); this.negative = negative; } | 29,133 |
public Dimension getPreferredSize() { Dimension size; FontMetrics fm = getFontMetrics(getFont()); int fontHeight = fm.getMaxAscent() + fm.getMaxDescent(); int columnWidth = fm.charWidth('m'); if (columns != 0) { size = new Dimension(columns * columnWidth + 4, fontHeight + 4); } else ... | public Dimension getPreferredSize() { Dimension size; FontMetrics fm = getFontMetrics(getFont()); int fontHeight = fm.getMaxAscent() + fm.getMaxDescent(); int columnWidth = fm.charWidth('m'); if (columns != 0) { size = new Dimension(columns * columnWidth + 4, fontHeight + 4); } else ... | 29,135 |
public Dimension getPreferredSize() { Dimension size; FontMetrics fm = getFontMetrics(getFont()); int fontHeight = fm.getMaxAscent() + fm.getMaxDescent(); int columnWidth = fm.charWidth('m'); if (columns != 0) { size = new Dimension(columns * columnWidth + 4, fontHeight + 4); } else ... | public Dimension getPreferredSize() { Dimension size; FontMetrics fm = getFontMetrics(getFont()); int fontHeight = fm.getMaxAscent() + fm.getMaxDescent(); int columnWidth = fm.charWidth('m'); if (columns != 0) { size = new Dimension(columns * columnWidth + 4, fontHeight + 4); } else ... | 29,136 |
public void drawString(String text, int x, int y) { // System.out.println("drawText():" + text); if (this.font != null) ((JNodeToolkit) Toolkit.getDefaultToolkit()).getFontManager() .drawText(this, text, font, x, y); } | public void drawString(String text, int x, int y) { // System.out.println("drawText():" + text); if (this.font != null) ((JNodeToolkit) Toolkit.getDefaultToolkit()).getFontManager() .drawText(this, text, font, x, y); } | 29,137 |
protected Dimension getMinimumThumbSize() { if (isFreeStanding) return MIN_THUMB_SIZE_FREE_STANDING; else return MIN_THUMB_SIZE; } | protected Dimension getMinimumThumbSize() { if (isFreeStanding) retVal = MIN_THUMB_SIZE_FREE_STANDING; else return MIN_THUMB_SIZE; } | 29,138 |
protected Dimension getMinimumThumbSize() { if (isFreeStanding) return MIN_THUMB_SIZE_FREE_STANDING; else return MIN_THUMB_SIZE; } | protected Dimension getMinimumThumbSize() { if (isFreeStanding) return MIN_THUMB_SIZE_FREE_STANDING; else retVal = MIN_THUMB_SIZE; } | 29,139 |
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; if (scrollbar.getOrientation() == HORIZONTAL) paintThumbHorizontal(g, c, thumbBounds); else paintThumbVertical(g, c, thu... | if (! (MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme)) { if (! (MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme)) { protected if (! (MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme)) { void if (! (MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme)) { paintThumb(Graphics if (! (Meta... | 29,141 |
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; if (scrollbar.getOrientation() == HORIZONTAL) paintThumbHorizontal(g, c, thumbBounds); else paintThumbVertical(g, c, thu... | protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; if (scrollbar.getOrientation() == HORIZONTAL) paintThumbHorizontal(g, c, thumbBounds); else paintThumbVertical(g, c, thu... | 29,142 |
private void paintThumbHorizontal(Graphics g, JComponent c, Rectangle thumbBounds) { int x = thumbBounds.x; int y = thumbBounds.y; int w = thumbBounds.width; int h = thumbBounds.height; // first we fill the background g.setColor(thumbColor); if (isFreeStanding) g.fillRect(x, ... | MetalTheme theme = MetalLookAndFeel.getCurrentTheme(); if (theme instanceof OceanTheme && UIManager.get("ScrollBar.gradient") != null) { MetalUtils.paintGradient(g, x + 2, y + 2, w - 4, h - 2, SwingConstants.VERTICAL, "ScrollBar.gradient"); } else { MetalTheme theme = MetalLookAndFeel.getCurrentTheme(); if (theme ins... | 29,143 |
private void paintThumbVertical(Graphics g, JComponent c, Rectangle thumbBounds) { int x = thumbBounds.x; int y = thumbBounds.y; int w = thumbBounds.width; int h = thumbBounds.height; // first we fill the background g.setColor(thumbColor); if (isFreeStanding) g.fillRect(x, y, ... | MetalTheme theme = MetalLookAndFeel.getCurrentTheme(); if (theme instanceof OceanTheme && UIManager.get("ScrollBar.gradient") != null) { MetalUtils.paintGradient(g, x + 2, y + 2, w - 2, h - 4, SwingConstants.HORIZONTAL, "ScrollBar.gradient"); } else { MetalTheme theme = MetalLookAndFeel.getCurrentTheme(); if (theme i... | 29,145 |
public Dimension getPreferredSize(JComponent c) { layoutContainer(scrollbar); return preferredSize; } | public Dimension getPreferredSize(JComponent c) { calculatePreferredSize(); return preferredSize; } | 29,147 |
public SocketPermission(String hostport, String actions) { super(hostport); this.hostport = hostport; this.mask = getMask(actions); this.actions = actions; } | public SocketPermission(String hostport, String actions) { super(hostport); this.hostport = hostport; this.mask = getMask(actions); this.actions = actions; } | 29,148 |
public SocketPermission(String hostport, String actions) { super(hostport); this.hostport = hostport; this.mask = getMask(actions); this.actions = actions; } | public SocketPermission(String hostport, String actions) { super(hostport); this.hostport = hostport; this.actions = actions; } | 29,149 |
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof SocketPermission)) return (false); if (((SocketPermission) obj).hostport.equals(hostport)) if (((SocketPermission) obj).actions.equals(actions)) return (true); ... | public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof SocketPermission)) return (false); if (((SocketPermission) obj).hostport.equals(hostport)) if (((SocketPermission) obj).actions.equals(actions)) return (true); ... | 29,150 |
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof SocketPermission)) return (false); if (((SocketPermission) obj).hostport.equals(hostport)) if (((SocketPermission) obj).actions.equals(actions)) return (true); ... | public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof SocketPermission)) return (false); if (((SocketPermission) obj).hostport.equals(hostport)) if (((SocketPermission) obj).actions.equals(actions)) return true; re... | 29,151 |
public boolean equals(Object obj) { if (obj == null) return (false); if (!(obj instanceof SocketPermission)) return (false); if (((SocketPermission) obj).hostport.equals(hostport)) if (((SocketPermission) obj).actions.equals(actions)) return (true); ... | public boolean equals(Object obj) { if (obj == null) return false; if (!(obj instanceof SocketPermission)) return false; if (((SocketPermission) obj).hostport.equals(hostport)) if (((SocketPermission) obj).actions.equals(actions)) return (true); retu... | 29,152 |
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | 29,153 |
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if (actions.indexOf("connect") != -1) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.appen... | 29,154 |
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); found = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | 29,155 |
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | 29,156 |
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); found = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | 29,157 |
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | 29,158 |
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); found = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | 29,159 |
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | 29,160 |
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | 29,161 |
public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | public String getActions() { final StringBuffer sb = new StringBuffer(); boolean comma = false; if ((mask & CONNECT) != 0) { sb.append("connect"); comma = true; } if ((mask & LISTEN) != 0) { if (comma) sb.append(','); sb.append("listen")... | 29,162 |
public int hashCode() { int hash = 100; if (hostport != null) hash += hostport.hashCode(); if (actions != null) hash += actions.hashCode(); return hash; } | public int hashCode() { int hash = 100; if (hostport != null) hash += hostport.hashCode(); if (actions != null) hash += actions.hashCode(); return hash; } | 29,163 |
public int hashCode() { int hash = 100; if (hostport != null) hash += hostport.hashCode(); if (actions != null) hash += actions.hashCode(); return hash; } | public int hashCode() { int hash = 100; if (hostport != null) hash += hostport.hashCode(); if (actions != null) hash += actions.hashCode(); return hash; } | 29,164 |
public boolean implies(Permission perm) { final SocketPermission that; //System.out.println("implies"); // First make sure we are the right object type if (perm instanceof SocketPermission) { that = (SocketPermission) perm; } else { return false; } ... | public boolean implies(Permission perm) { final SocketPermission that; //System.out.println("implies"); // First make sure we are the right object type if (perm instanceof SocketPermission) { that = (SocketPermission) perm; } else { return false; } ... | 29,165 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.