rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
System.out.println("Loop count " + count);
log.info("Loop count " + count);
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9b4526bb2ab06b3eef3f4b8621964a1355c676ca/FBTest.java/clean/gui/src/test/org/jnode/test/gui/FBTest.java
System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawShapeLineTest(), Surface.XOR_MODE));
log.info("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); log.info("Shape Line XOR " + performTest(new DrawShapeLineTest(), Surface.XOR_MODE));
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9b4526bb2ab06b3eef3f4b8621964a1355c676ca/FBTest.java/clean/gui/src/test/org/jnode/test/gui/FBTest.java
System.out.println("Shape Rect PAINT " + performTest(new DrawShapeRectTest(), Surface.PAINT_MODE)); System.out.println("Shape Rect XOR " + performTest(new DrawShapeRectTest(), Surface.XOR_MODE));
log.info("Shape Rect PAINT " + performTest(new DrawShapeRectTest(), Surface.PAINT_MODE)); log.info("Shape Rect XOR " + performTest(new DrawShapeRectTest(), Surface.XOR_MODE));
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9b4526bb2ab06b3eef3f4b8621964a1355c676ca/FBTest.java/clean/gui/src/test/org/jnode/test/gui/FBTest.java
System.out.println("Shape Ellipse PAINT " + performTest(new DrawShapeEllipseTest(), Surface.PAINT_MODE));
log.info("Shape Ellipse PAINT " + performTest(new DrawShapeEllipseTest(), Surface.PAINT_MODE));
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9b4526bb2ab06b3eef3f4b8621964a1355c676ca/FBTest.java/clean/gui/src/test/org/jnode/test/gui/FBTest.java
System.out.println("Shape Arc PAINT " + performTest(new DrawShapeArcTest(), Surface.PAINT_MODE));
log.info("Shape Arc PAINT " + performTest(new DrawShapeArcTest(), Surface.PAINT_MODE));
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9b4526bb2ab06b3eef3f4b8621964a1355c676ca/FBTest.java/clean/gui/src/test/org/jnode/test/gui/FBTest.java
System.out.println("Shape QuadCurve PAINT " + performTest(new DrawShapeQuadTest(), Surface.PAINT_MODE));
log.info("Shape QuadCurve PAINT " + performTest(new DrawShapeQuadTest(), Surface.PAINT_MODE));
protected void perform() { System.out.println("Loop count " + count); if (tests.indexOf('l') >= 0) { System.out.println("Shape Line PAINT " + performTest(new DrawShapeLineTest(), Surface.PAINT_MODE)); System.out.println("Shape Line XOR " + performTest(new DrawSha...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9b4526bb2ab06b3eef3f4b8621964a1355c676ca/FBTest.java/clean/gui/src/test/org/jnode/test/gui/FBTest.java
public void finish() throws IOException { super.finish(); int totalin = def.getTotalIn(); int crcval = (int) (crc.getValue() & 0xffffffff); // System.err.println("CRC val is " + Integer.toHexString( crcval ) + " and length " + Integer.toHexString(totalin)); byte[] gzipFooter = { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/GZIPOutputStream.java/clean/core/src/classpath/java/java/util/zip/GZIPOutputStream.java
public void write(byte[] buf, int off, int len) throws IOException
public synchronized void write(byte[] buf, int off, int len) throws IOException
public void write(byte[] buf, int off, int len) throws IOException { crc.update(buf, off, len); super.write(buf, off, len); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/GZIPOutputStream.java/clean/core/src/classpath/java/java/util/zip/GZIPOutputStream.java
super.write(buf, off, len);
public void write(byte[] buf, int off, int len) throws IOException { crc.update(buf, off, len); super.write(buf, off, len); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e3f7218be7244f0de74b2230a33469c2bf32546b/GZIPOutputStream.java/clean/core/src/classpath/java/java/util/zip/GZIPOutputStream.java
public static ComponentUI createUI(JComponent c) {
public static ComponentUI createUI(JComponent c) {
public static ComponentUI createUI(JComponent c) { return new MetalButtonUI(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java
Rectangle textRect, Rectangle iconRect) {
Rectangle textRect, Rectangle iconRect) {
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) { if (b.isEnabled() && b.hasFocus() && b.isFocusPainted()) { Color savedColor = g.getColor(); g.setColor(getFocusColor()); Rectangle focusRect = iconRect.union(textRect); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java
ButtonModel m = b.getModel();
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java
&& ! m.isPressed() && ! m.isArmed()
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java
{ MetalUtils.paintGradient(g, 0, 0, c.getWidth(), c.getHeight(), SwingConstants.VERTICAL, getPropertyPrefix() + "gradient"); paint(g, c); }
updateWidthGradient(g, b, b.getParent());
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; ButtonModel m = b.getModel(); if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && ! m.isPressed() && ! m.isArmed() && b.isEnabled() && (b.getBackground() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e0c4001932916dcdf180e32bf374255e88829b25/MetalButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java
public void addChangeListener(ChangeListener listener) { }
public void addChangeListener (ChangeListener listener) { listenerList.add (ChangeListener.class, listener); }
public void addChangeListener(ChangeListener listener) { // TODO } // addChangeListener()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultColorSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/colorchooser/DefaultColorSelectionModel.java
protected void fireStateChanged() { }
protected void fireStateChanged() { ChangeListener[] listeners = getChangeListeners(); for (int i = 0; i < listeners.length; i++) listeners [i].stateChanged (changeEvent); }
protected void fireStateChanged() { // TODO } // fireStateChanged()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultColorSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/colorchooser/DefaultColorSelectionModel.java
public Color getSelectedColor() { return null; }
public Color getSelectedColor() { return selectedColor; }
public Color getSelectedColor() { return null; // TODO } // getSelectedColor()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultColorSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/colorchooser/DefaultColorSelectionModel.java
public void removeChangeListener(ChangeListener listener) { }
public void removeChangeListener (ChangeListener listener) { listenerList.remove (ChangeListener.class, listener); }
public void removeChangeListener(ChangeListener listener) { // TODO } // removeChangeListener()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultColorSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/colorchooser/DefaultColorSelectionModel.java
public void setSelectedColor(Color color) { }
public void setSelectedColor (Color color) { this.selectedColor = color; }
public void setSelectedColor(Color color) { // TODO } // setSelectedColor()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultColorSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/colorchooser/DefaultColorSelectionModel.java
public InetAddress(byte[] ipaddr) { this(ipaddr, null, null); }
InetAddress(byte[] ipaddr, String hostname) { addr = new byte[ipaddr.length]; for (int i = 0; i < ipaddr.length; i++) addr[i] = ipaddr[i]; this.hostName = hostname; lookup_time = System.currentTimeMillis(); family = 2; /* AF_INET */ }
public InetAddress(byte[] ipaddr) { this(ipaddr, null, null); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
private static synchronized void addToCache(String hostname, Object obj) { if (cache_size == 0) return;
private static synchronized void addToCache(String hostname, Object obj) { if (cache_size == 0) return;
private static synchronized void addToCache(String hostname, Object obj) { if (cache_size == 0) return; // Check to see if hash table is full if (cache_size != -1) if (cache.size() == cache_size) { //*** Add code to purge later. } cache.put(hostname, obj); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
if (cache_size != -1) if (cache.size() == cache_size) { }
if (cache_size != -1) if (cache.size() == cache_size) { }
private static synchronized void addToCache(String hostname, Object obj) { if (cache_size == 0) return; // Check to see if hash table is full if (cache_size != -1) if (cache.size() == cache_size) { //*** Add code to purge later. } cache.put(hostname, obj); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
cache.put(hostname, obj); }
cache.put(hostname, obj); }
private static synchronized void addToCache(String hostname, Object obj) { if (cache_size == 0) return; // Check to see if hash table is full if (cache_size != -1) if (cache.size() == cache_size) { //*** Add code to purge later. } cache.put(hostname, obj); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null;
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null;
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
if (cache_size == 0) return (null);
if (cache_size == 0) return null;
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
Object obj = cache.get(hostname); if (obj == null) return (null);
Object obj = cache.get(hostname); if (obj == null) return null;
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj;
if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj;
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
if (addresses == null) return (null);
if (addresses == null) return null;
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
if (cache_period != -1) if ((System.currentTimeMillis() - addresses[ 0].lookup_time) > cache_period) { cache.remove(hostname); return (null); }
if (cache_period != -1) if ((System.currentTimeMillis() - addresses[0].lookup_time) > cache_period) { cache.remove(hostname); return null; }
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
return addresses; }
return addresses; }
private static synchronized InetAddress[] checkCacheFor(String hostname) { InetAddress[] addresses = null; if (cache_size == 0) return (null); Object obj = cache.get(hostname); if (obj == null) return (null); if (obj instanceof InetAddress[]) addresses = (InetAddress[]) obj; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false;
public boolean equals(Object obj) { if (! (obj instanceof InetAddress)) return false;
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
byte[] test_ip = ((InetAddress) obj).getAddress();
byte[] addr2 = ((InetAddress) obj).addr;
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
if (test_ip.length != addr.length) return (false);
if (addr.length != addr2.length) return false;
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
if (test_ip[ i] != (byte) addr[ i]) return (false);
if (addr[i] != addr2[i]) return false;
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
return (true);
return true;
public boolean equals(Object obj) { if (!(obj instanceof InetAddress)) return false; byte[] test_ip = ((InetAddress) obj).getAddress(); if (test_ip.length != addr.length) return (false); for (int i = 0; i < addr.length; i++) if (test_ip[ i] != (byte) addr[ i]) return (false); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
public byte[] getAddress() { byte[] ipaddr = new byte[ addr.length]; for (int i = 0; i < addr.length; i++) { ipaddr[ i] = (byte) addr[ i]; } return ipaddr;
public byte[] getAddress() { return (byte[]) addr.clone();
public byte[] getAddress() { byte[] ipaddr = new byte[ addr.length]; for (int i = 0; i < addr.length; i++) { ipaddr[ i] = (byte) addr[ i]; } return ipaddr; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
throws UnknownHostException { if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); }
throws UnknownHostException { SecurityManager s = System.getSecurityManager(); if (s != null) s.checkConnect(hostname, -1);
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
InetAddress[] addresses = checkCacheFor(hostname); if (addresses != null) return (addresses);
InetAddress[] addresses;
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
addresses = getHostByName(hostname); if ((addresses == null) || (addresses.length == 0)) { throw new UnknownHostException( hostname); }
if (hostname == null) { addresses = new InetAddress[1]; addresses[0] = LOCALHOST; return addresses; }
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
addToCache(hostname, addresses);
addresses = checkCacheFor(hostname);
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
return addresses;
if (addresses != null) return addresses; byte[][] iplist = VMInetAddress.getHostByName(hostname); if (iplist.length == 0) throw new UnknownHostException(hostname); addresses = new InetAddress[iplist.length]; for (int i = 0; i < iplist.length; i++) { if (iplist[i].length != 4) throw new UnknownHostException(hostnam...
public static InetAddress[] getAllByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) { InetAddress local = getLocalHost(); return getAllByName(local.getHostName()); } // Check the cache for ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
throws UnknownHostException { if (addr.length != 4 && addr.length != 16) throw new UnknownHostException("IP address has illegal length"); if (addr.length == 4) return new Inet4Address(addr, null); return new Inet6Address(addr, null);
throws UnknownHostException { return getByAddress(null, addr);
public static InetAddress getByAddress(byte[] addr) throws UnknownHostException { if (addr.length != 4 && addr.length != 16) throw new UnknownHostException("IP address has illegal length"); if (addr.length == 4) // return new Inet4Address(null,addr); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
throws UnknownHostException { if (hostname == null) return getLocalHost(); StringTokenizer st = new StringTokenizer(hostname, "."); if (st.countTokens() == 4) { int i; byte[] ip = new byte[ 4]; for (i = 0; i < 4; i++) { try { ip[ i] = Byte.parseByte(st.nextToken()); if ((ip[ i] < 0) || (ip[ 1] > 255)) break; } catc...
throws UnknownHostException { InetAddress[] addresses = getAllByName(hostname); return addresses[0];
public static InetAddress getByName(String hostname) throws UnknownHostException { // Default to current host if necessary if (hostname == null) return getLocalHost(); // First, check to see if it is an IP address. If so, then don't // do a DNS lookup. StringTokenizer s...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
public String getHostAddress() { StringBuffer sb = new StringBuffer();
public String getHostAddress() { StringBuffer sb = new StringBuffer(40);
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); }
int len = addr.length; int i = 0;
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
return sb.toString();
for ( ; ; ) { sb.append(addr[i] & 0xff); i++; if (i == len) break; sb.append('.');
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
return sb.toString(); }
public String getHostAddress() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < addr.length; i++) { sb.append(addr[ i] & 0xff); if (i < (addr.length - 1)) sb.append("."); } return sb.toString(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
public String getHostName() { if (hostName != null) return (hostName);
public String getHostName() { if (hostName != null) return hostName;
public String getHostName() { if (hostName != null) return (hostName); try { hostName = getHostByAddr(addr); return (hostName); } catch (UnknownHostException e) { if (hostname_alias != null) return (hostname_alias); else ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
try { hostName = getHostByAddr(addr); return (hostName); } catch (UnknownHostException e) { if (hostname_alias != null) return (hostname_alias); else return (getHostAddress()); } }
try { hostName = VMInetAddress.getHostByAddr(addr); return hostName; } catch (UnknownHostException e) { return getHostAddress(); } }
public String getHostName() { if (hostName != null) return (hostName); try { hostName = getHostByAddr(addr); return (hostName); } catch (UnknownHostException e) { if (hostname_alias != null) return (hostname_alias); else ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
static InetAddress getInaddrAny() throws UnknownHostException { if (inaddr_any == null) { byte[] tmp = new byte[] { 0, 0, 0, 0}; inaddr_any = new InetAddress(tmp); }
static InetAddress getInaddrAny() throws UnknownHostException { if (inaddr_any == null) { byte[] tmp = VMInetAddress.lookupInaddrAny(); inaddr_any = new Inet4Address(tmp, null); }
static InetAddress getInaddrAny() throws UnknownHostException { if (inaddr_any == null) { byte[] tmp = new byte[] { 0, 0, 0, 0}; inaddr_any = new InetAddress(tmp); } return (inaddr_any); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
return (inaddr_any); }
return inaddr_any; }
static InetAddress getInaddrAny() throws UnknownHostException { if (inaddr_any == null) { byte[] tmp = new byte[] { 0, 0, 0, 0}; inaddr_any = new InetAddress(tmp); } return (inaddr_any); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
public static InetAddress getLocalHost() throws UnknownHostException { return VMNetUtils.getAPI().getLocalAddress(); /* * String hostname = getLocalHostName(); */
public static InetAddress getLocalHost() throws UnknownHostException { String hostname = VMInetAddress.getLocalHostname(); return getByName(hostname);
public static InetAddress getLocalHost() throws UnknownHostException { return VMNetUtils.getAPI().getLocalAddress(); // return Ifconfig.getLocalAddress().toInetAddress(); /* * String hostname = getLocalHostName(); */ }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
public int hashCode() { long val1 = 0, val2 = 0;
public int hashCode() { int hash = 0; int len = addr.length; int i = len > 4 ? len - 4 : 0;
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8));
for (; i < len; i++) hash = (hash << 8) | (addr[i] & 0xff);
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
for (int i = 0; i < addr.length; i++) val2 = val2 + (addr[ i] * 10 * i); val1 = (val1 >> 1) ^ val2; return ((int) val1); }
return hash; }
public int hashCode() { long val1 = 0, val2 = 0; // Its obvious here that I have no idea how to generate a good // hash key for (int i = 0; i < addr.length; i++) val1 = val1 + (addr[ i] << ((addr.length - i) / 8)); for (int i = 0; i < addr.length; i++) val2 =...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
public boolean isAnyLocalAddress() { return (this.equals(ANY_IF)); }
public boolean isAnyLocalAddress() { return equals(ANY_IF); }
public boolean isAnyLocalAddress() { return (this.equals(ANY_IF)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
public boolean isMulticastAddress() { if (addr.length == 0) return (false);
public boolean isMulticastAddress() { if (addr.length == 4) return (addr[0] & 0xf0) == 0xe0;
public boolean isMulticastAddress() { if (addr.length == 0) return (false); // Mask against high order bits of 1110 if ((addr[ 0] & 0xF0) == 224) return (true); return (false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
if ((addr[ 0] & 0xF0) == 224) return (true); return (false);
return false;
public boolean isMulticastAddress() { if (addr.length == 0) return (false); // Mask against high order bits of 1110 if ((addr[ 0] & 0xF0) == 224) return (true); return (false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
public String toString() { StringBuffer sb; if (hostName != null) sb = new StringBuffer(hostName).append('/'); else if (hostname_alias != null) sb = new StringBuffer(hostname_alias).append('/'); else sb = new StringBuffer(); sb.append(getHostAddress()); return (sb.toString()); }
public String toString() { String addr = getHostAddress(); String host = (hostName != null) ? hostName : ""; return host + "/" + addr; }
public String toString() { StringBuffer sb; if (hostName != null) sb = new StringBuffer(hostName).append('/'); else if (hostname_alias != null) sb = new StringBuffer(hostname_alias).append('/'); else sb = new StringBuffer(); sb.append(getHostAddres...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b690cfde411baeb66c6d82ebeb798c56aa02e8c0/InetAddress.java/clean/core/src/classpath/java/java/net/InetAddress.java
this.tests = new Test[tests.size()];
int len = tests.size(); this.tests = new Test[(len == 0) ? 1 : len]; if (len > 0)
public Selector(int axis, List tests) { this.axis = axis; this.tests = new Test[tests.size()]; tests.toArray(this.tests); if (axis == NAMESPACE && this.tests.length > 0 && this.tests[0] instanceof NameTest) { NameTest nt = (NameTest) this.tests[0]; this.tests[0] = new Nam...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
if (axis == NAMESPACE && this.tests.length > 0 && this.tests[0] instanceof NameTest)
else this.tests[0] = new NodeTypeTest((short) 0); if (axis == NAMESPACE && this.tests[0] instanceof NameTest)
public Selector(int axis, List tests) { this.axis = axis; this.tests = new Test[tests.size()]; tests.toArray(this.tests); if (axis == NAMESPACE && this.tests.length > 0 && this.tests[0] instanceof NameTest) { NameTest nt = (NameTest) this.tests[0]; this.tests[0] = new Nam...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
void addChildNodes(Node context, Collection acc, boolean recurse) { Node child = context.getFirstChild(); while (child != null) { acc.add(child); if (recurse) { addChildNodes(child, acc, recurse); } child = child.getNextSibling(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
void addChildNodes(Node context, Collection acc, boolean recurse) { Node child = context.getFirstChild(); while (child != null) { acc.add(child); if (recurse) { addChildNodes(child, acc, recurse); } child = child.getNextSibling(); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
Node cur = context.getNextSibling();
if (context != null && recurse) addChildNodes(context, acc, true); Node cur = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? null : context.getNextSibling();
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
addFollowingNodes(context, acc, recurse);
cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) addChildNodes(cur, acc, true); cur = cur.getNextSibling(); } }
void addFollowingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getNextSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getNextSibling(); } if (recurse) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
void addNamespaceAttributes(Node context, Collection acc) { NamedNodeMap attrs = context.getAttributes(); if (attrs != null) { int attrLen = attrs.getLength(); for (int i = 0; i < attrLen; i++) { Node attr = attrs.item(i); if (isNamespaceAttribute(attr)) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
void addNamespaceAttributes(Node context, Collection acc) { NamedNodeMap attrs = context.getAttributes(); if (attrs != null) { int attrLen = attrs.getLength(); for (int i = 0; i < attrLen; i++) { Node attr = attrs.item(i); if (isNamespaceAttribute(attr)) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
void addParentNode(Node context, Collection acc, boolean recurse) { Node parent = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) context).getOwnerElement() : context.getParentNode(); if (parent != null) { acc.add(parent); if (recurse) { addParentNode(parent...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
void addParentNode(Node context, Collection acc, boolean recurse) { Node parent = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) context).getOwnerElement() : context.getParentNode(); if (parent != null) { acc.add(parent); if (recurse) { addParentNode(parent...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
Node cur = context.getPreviousSibling();
Node cur = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? null : context.getPreviousSibling();
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
context = (context.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) context).getOwnerElement() : context.getParentNode(); if (context != null) { addPrecedingNodes(context, acc, recurse); }
cur = context; cur = (cur.getNodeType() == Node.ATTRIBUTE_NODE) ? ((Attr) cur).getOwnerElement() : cur.getParentNode(); if (cur != null) addPrecedingNodes(cur, acc, recurse);
void addPrecedingNodes(Node context, Collection acc, boolean recurse) { Node cur = context.getPreviousSibling(); while (cur != null) { acc.add(cur); if (recurse) { addChildNodes(cur, acc, true); } cur = cur.getPreviousSibling(); } if (recurse) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
public Expr clone(Object context) { int len = tests.length; List tests2 = new ArrayList(len); for (int i = 0; i < len; i++) { tests2.add(tests[i].clone(context)); } return new Selector(axis, tests2); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
public Expr clone(Object context) { int len = tests.length; List tests2 = new ArrayList(len); for (int i = 0; i < len; i++) { tests2.add(tests[i].clone(context)); } return new Selector(axis, tests2); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
public Object evaluate(Node context, int pos, int len) { Set acc = new LinkedHashSet(); addCandidates(context, acc); List candidates = new ArrayList(acc); //Collections.sort(candidates, documentOrderComparator); List ret = filterCandidates(candidates, false); return ret; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
List filterCandidates(List candidates, boolean cascade) { int len = candidates.size(); int tlen = tests.length; if (tlen > 0 && len > 0) { // Present the result of each successful generation to the next test for (int j = 0; j < tlen && len > 0; j++) { Test test = tests...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
/* System.err.println("Testing "+node); int p = getContextPosition(node); int l = getContextSize(node); if (test.matches(node, p, l)) { successful.add(node); }*/ }
List filterCandidates(List candidates, boolean cascade) { int len = candidates.size(); int tlen = tests.length; if (tlen > 0 && len > 0) { // Present the result of each successful generation to the next test for (int j = 0; j < tlen && len > 0; j++) { Test test = tests...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
private int getContextPosition(Node ctx) { int pos = 1; for (ctx = ctx.getPreviousSibling(); ctx != null; ctx = ctx.getPreviousSibling()) { pos++; } return pos; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
private int getContextPosition(Node ctx) { int pos = 1; for (ctx = ctx.getPreviousSibling(); ctx != null; ctx = ctx.getPreviousSibling()) { pos++; } return pos; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
Node parent = ((Attr) ctx).getOwnerElement(); return parent.getAttributes().getLength();
Node owner = ((Attr) ctx).getOwnerElement(); return owner.getAttributes().getLength();
private int getContextSize(Node ctx) { if (ctx.getNodeType() == Node.ATTRIBUTE_NODE) { Node parent = ((Attr) ctx).getOwnerElement(); return parent.getAttributes().getLength(); } Node parent = ctx.getParentNode(); if (parent != null) { return parent.getChildNodes().getLeng...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
Node parent = ctx.getParentNode(); if (parent != null) { return parent.getChildNodes().getLength(); } return 1;
int count = 1; Node sib = ctx.getPreviousSibling(); for (; sib != null; sib = sib.getPreviousSibling()) count++; sib = ctx.getNextSibling(); for (; sib != null; sib = sib.getNextSibling()) count++; return count;
private int getContextSize(Node ctx) { if (ctx.getNodeType() == Node.ATTRIBUTE_NODE) { Node parent = ((Attr) ctx).getOwnerElement(); return parent.getAttributes().getLength(); } Node parent = ctx.getParentNode(); if (parent != null) { return parent.getChildNodes().getLeng...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) { return false; } break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
public boolean references(QName var) { for (int i = 0; i < tests.length; i++) { if (tests[i].references(var)) { return true; } } return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
public boolean references(QName var) { for (int i = 0; i < tests.length; i++) { if (tests[i].references(var)) { return true; } } return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
{
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
}
public String toString() { StringBuffer buf = new StringBuffer(); switch (axis) { case ANCESTOR: buf.append("ancestor::"); break; case ANCESTOR_OR_SELF: buf.append("ancestor-or-self::"); break; case ATTRIBUTE: if (tests.length == 0 || (tests[0] ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java