rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
word = (word << 8) | (((int) bytes[bptr]) & 0xff);
word = (word << 8) | (bytes[bptr] & 0xff);
private static int[] byteArrayToIntArray(byte[] bytes, int sign) { // Determine number of words needed. int[] words = new int[bytes.length/4 + 1]; int nwords = words.length; // Create a int out of modulo 4 high order bytes. int bptr = 0; int word = sign; for (int i = bytes.length % 4; i > 0; --i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
(((int) bytes[bptr++]) & 0xff) << 16 | (((int) bytes[bptr++]) & 0xff) << 8 | (((int) bytes[bptr++]) & 0xff);
(bytes[bptr++] & 0xff) << 16 | (bytes[bptr++] & 0xff) << 8 | (bytes[bptr++] & 0xff);
private static int[] byteArrayToIntArray(byte[] bytes, int sign) { // Determine number of words needed. int[] words = new int[bytes.length/4 + 1]; int nwords = words.length; // Create a int out of modulo 4 high order bytes. int bptr = 0; int word = sign; for (int i = bytes.length % 4; i > 0; --i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
return smallFixNums[(int) ival - minFixNum];
return smallFixNums[ival - minFixNum];
private BigInteger canonicalize() { if (words != null && (ival = BigInteger.wordsNeeded(words, ival)) <= 1) { if (ival == 1) ival = words[0]; words = null; } if (words == null && ival >= minFixNum && ival <= maxFixNum) return smallFixNums[(int) ival - minFixNum]; return this; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
divide(BigInteger.make(x), BigInteger.make(y),
divide(valueOf(x), valueOf(y),
private static void divide(long x, long y, BigInteger quotient, BigInteger remainder, int rounding_mode) { boolean xNegative, yNegative; if (x < 0) { xNegative = true; if (x == Long.MIN_VALUE) { divide(BigInteger.make(x), BigInteger.make(y), quotient, remainder, rounding_mode); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
divide(BigInteger.make(x), BigInteger.make(y),
divide(valueOf(x), valueOf(y),
private static void divide(long x, long y, BigInteger quotient, BigInteger remainder, int rounding_mode) { boolean xNegative, yNegative; if (x < 0) { xNegative = true; if (x == Long.MIN_VALUE) { divide(BigInteger.make(x), BigInteger.make(y), quotient, remainder, rounding_mode); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
return BigInteger.neg(this).roundToDouble(0, true, false); else
return neg(this).roundToDouble(0, true, false);
public double doubleValue() { if (words == null) return (double) ival; if (ival <= 2) return (double) longValue(); if (isNegative()) return BigInteger.neg(this).roundToDouble(0, true, false); else return roundToDouble(0, false, false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
int[] xy;
private static final int[] euclidInv(int a, int b, int prevDiv) { // Storage for return values, plus one slot for a temp int (see below). int[] xy; if (b == 0) throw new ArithmeticException("not invertible"); else if (b == 1) { // Success: values are indeed invertible! // Bottom of the recursi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
else if (b == 1) {
if (b == 1)
private static final int[] euclidInv(int a, int b, int prevDiv) { // Storage for return values, plus one slot for a temp int (see below). int[] xy; if (b == 0) throw new ArithmeticException("not invertible"); else if (b == 1) { // Success: values are indeed invertible! // Bottom of the recursi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
xy = new int[3]; xy[0] = -prevDiv; xy[1] = 1; return xy; }
return new int[] { -prevDiv, 1 };
private static final int[] euclidInv(int a, int b, int prevDiv) { // Storage for return values, plus one slot for a temp int (see below). int[] xy; if (b == 0) throw new ArithmeticException("not invertible"); else if (b == 1) { // Success: values are indeed invertible! // Bottom of the recursi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
xy = euclidInv(b, a % b, a / b); xy[2] = xy[0]; xy[0] = xy[2] * -prevDiv + xy[1]; xy[1] = xy[2];
int[] xy = euclidInv(b, a % b, a / b); a = xy[0]; xy[0] = a * -prevDiv + xy[1]; xy[1] = a;
private static final int[] euclidInv(int a, int b, int prevDiv) { // Storage for return values, plus one slot for a temp int (see below). int[] xy; if (b == 0) throw new ArithmeticException("not invertible"); else if (b == 1) { // Success: values are indeed invertible! // Bottom of the recursi...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
int buf_size = len * (MPN.chars_per_word(radix) + 1);
private void format(int radix, StringBuffer buffer) { if (words == null) buffer.append(Integer.toString(ival, radix)); else if (ival <= 2) buffer.append(Long.toString(longValue(), radix)); else { boolean neg = isNegative(); int[] work; if (neg || radix != 16) { work = new int[ival]; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
int tmp = a; a = b; b = tmp;
tmp = a; a = b; b = tmp;
private static final int gcd(int a, int b) { // Euclid's algorithm, copied from libg++. if (b > a) { int tmp = a; a = b; b = tmp; } for(;;) { if (b == 0) return a; else if (b == 1) return b; else { int tmp = b; b = a % b; a = tmp; } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
else if (b == 1)
if (b == 1)
private static final int gcd(int a, int b) { // Euclid's algorithm, copied from libg++. if (b > a) { int tmp = a; a = b; b = tmp; } for(;;) { if (b == 0) return a; else if (b == 1) return b; else { int tmp = b; b = a % b; a = tmp; } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
else { int tmp = b;
tmp = b;
private static final int gcd(int a, int b) { // Euclid's algorithm, copied from libg++. if (b > a) { int tmp = a; a = b; b = tmp; } for(;;) { if (b == 0) return a; else if (b == 1) return b; else { int tmp = b; b = a % b; a = tmp; } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
}
private static final int gcd(int a, int b) { // Euclid's algorithm, copied from libg++. if (b > a) { int tmp = a; a = b; b = tmp; } for(;;) { if (b == 0) return a; else if (b == 1) return b; else { int tmp = b; b = a % b; a = tmp; } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
for (int i = 0; i < primes.length; i++)
BigInteger rem = new BigInteger(); int i; for (i = 0; i < primes.length; i++)
public boolean isProbablePrime(int certainty) { /** We'll use the Rabin-Miller algorithm for doing a probabilistic * primality test. It is fast, easy and has faster decreasing odds of a * composite passing than with other tests. This means that this * method will actually have a probability much gre...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
if (remainder(make(primes[i])).isZero())
divide(this, smallFixNums[primes[i] - minFixNum], null, rem, TRUNCATE); if (rem.canonicalize().isZero())
public boolean isProbablePrime(int certainty) { /** We'll use the Rabin-Miller algorithm for doing a probabilistic * primality test. It is fast, easy and has faster decreasing odds of a * composite passing than with other tests. This means that this * method will actually have a probability much gre...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
public boolean isProbablePrime(int certainty) { /** We'll use the Rabin-Miller algorithm for doing a probabilistic * primality test. It is fast, easy and has faster decreasing odds of a * composite passing than with other tests. This means that this * method will actually have a probability much gre...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
BigInteger m = pMinus1.divide(make(2L << b - 1));
BigInteger m = pMinus1.divide(valueOf(2L << b - 1));
public boolean isProbablePrime(int certainty) { /** We'll use the Rabin-Miller algorithm for doing a probabilistic * primality test. It is fast, easy and has faster decreasing odds of a * composite passing than with other tests. This means that this * method will actually have a probability much gre...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
Random rand = new Random(); while (certainty-- > 0)
int bits = this.bitLength(); for (i = 0; i < k.length; i++) if (bits <= k[i]) break; int trials = t[i]; if (certainty > 80) trials *= 2; BigInteger z; for (int t = 0; t < trials; t++)
public boolean isProbablePrime(int certainty) { /** We'll use the Rabin-Miller algorithm for doing a probabilistic * primality test. It is fast, easy and has faster decreasing odds of a * composite passing than with other tests. This means that this * method will actually have a probability much gre...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
int a = rand.nextInt(); a = (a < 0 ? -a : a) % 1023 + 2; BigInteger z = make(a).modPow(m, this);
z = smallFixNums[primes[t] - minFixNum].modPow(m, this);
public boolean isProbablePrime(int certainty) { /** We'll use the Rabin-Miller algorithm for doing a probabilistic * primality test. It is fast, easy and has faster decreasing odds of a * composite passing than with other tests. This means that this * method will actually have a probability much gre...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
int i;
public boolean isProbablePrime(int certainty) { /** We'll use the Rabin-Miller algorithm for doing a probabilistic * primality test. It is fast, easy and has faster decreasing odds of a * composite passing than with other tests. This means that this * method will actually have a probability much gre...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
z = z.modPow(make(2), this);
z = z.modPow(valueOf(2), this);
public boolean isProbablePrime(int certainty) { /** We'll use the Rabin-Miller algorithm for doing a probabilistic * primality test. It is fast, easy and has faster decreasing odds of a * composite passing than with other tests. This means that this * method will actually have a probability much gre...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
private static BigInteger make(long value)
private static BigInteger make(int[] words, int len)
private static BigInteger make(long value) { if (value >= minFixNum && value <= maxFixNum) return smallFixNums[(int)value - minFixNum]; int i = (int) value; if ((long)i == value) return new BigInteger(i); BigInteger result = alloc(2); result.ival = 2; result.words[0] = i; result.words[...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
if (value >= minFixNum && value <= maxFixNum) return smallFixNums[(int)value - minFixNum]; int i = (int) value; if ((long)i == value) return new BigInteger(i); BigInteger result = alloc(2); result.ival = 2; result.words[0] = i; result.words[1] = (int) (value >> 32); return result;
if (words == null) return valueOf(len); len = BigInteger.wordsNeeded(words, len); if (len <= 1) return len == 0 ? ZERO : valueOf(words[0]); BigInteger num = new BigInteger(); num.words = words; num.ival = len; return num;
private static BigInteger make(long value) { if (value >= minFixNum && value <= maxFixNum) return smallFixNums[(int)value - minFixNum]; int i = (int) value; if ((long)i == value) return new BigInteger(i); BigInteger result = alloc(2); result.ival = 2; result.words[0] = i; result.words[...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
else if (isOne())
if (isOne())
public BigInteger modInverse(BigInteger y) { if (y.isNegative() || y.isZero()) throw new ArithmeticException("non-positive modulo"); // Degenerate cases. if (y.isOne()) return ZERO; else if (isOne()) return ONE; // Use Euclid's algorithm as in gcd() but do this recursively // rather ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
int xval = ival; int yval = y.ival;
public BigInteger modInverse(BigInteger y) { if (y.isNegative() || y.isZero()) throw new ArithmeticException("non-positive modulo"); // Degenerate cases. if (y.isOne()) return ZERO; else if (isOne()) return ONE; // Use Euclid's algorithm as in gcd() but do this recursively // rather ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
if (words != null || isNegative()) xval = mod(y).ival;
int xval = (words != null || isNegative()) ? mod(y).ival : ival; int yval = y.ival;
public BigInteger modInverse(BigInteger y) { if (y.isNegative() || y.isZero()) throw new ArithmeticException("non-positive modulo"); // Degenerate cases. if (y.isOne()) return ZERO; else if (isOne()) return ONE; // Use Euclid's algorithm as in gcd() but do this recursively // rather ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
BigInteger x = this;
public BigInteger modInverse(BigInteger y) { if (y.isNegative() || y.isZero()) throw new ArithmeticException("non-positive modulo"); // Degenerate cases. if (y.isOne()) return ZERO; else if (isOne()) return ONE; // Use Euclid's algorithm as in gcd() but do this recursively // rather ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
if (isNegative()) x = mod(y);
BigInteger x = isNegative() ? this.mod(y) : this;
public BigInteger modInverse(BigInteger y) { if (y.isNegative() || y.isZero()) throw new ArithmeticException("non-positive modulo"); // Degenerate cases. if (y.isOne()) return ZERO; else if (isOne()) return ONE; // Use Euclid's algorithm as in gcd() but do this recursively // rather ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
BigInteger tmp = x; x = y; y = tmp;
result = x; x = y; y = result;
public BigInteger modInverse(BigInteger y) { if (y.isNegative() || y.isZero()) throw new ArithmeticException("non-positive modulo"); // Degenerate cases. if (y.isOne()) return ZERO; else if (isOne()) return ONE; // Use Euclid's algorithm as in gcd() but do this recursively // rather ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
result = euclidInv(y, rem, quot)[swapped ? 0 : 1];
BigInteger[] xy = new BigInteger[2]; euclidInv(y, rem, quot, xy); result = swapped ? xy[0] : xy[1];
public BigInteger modInverse(BigInteger y) { if (y.isNegative() || y.isZero()) throw new ArithmeticException("non-positive modulo"); // Degenerate cases. if (y.isOne()) return ZERO; else if (isOne()) return ONE; // Use Euclid's algorithm as in gcd() but do this recursively // rather ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
public BigInteger modPow(BigInteger exponent, BigInteger m) { if (m.isNegative() || m.isZero()) throw new ArithmeticException("non-positive modulo"); if (exponent.isNegative()) return modInverse(m); if (exponent.isOne()) return mod(m); // To do this naively by first raising this to the pow...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
BigInteger s, t, u; int i; s = ONE; t = this; u = exponent;
BigInteger s = ONE; BigInteger t = this; BigInteger u = exponent;
public BigInteger modPow(BigInteger exponent, BigInteger m) { if (m.isNegative() || m.isZero()) throw new ArithmeticException("non-positive modulo"); if (exponent.isNegative()) return modInverse(m); if (exponent.isOne()) return mod(m); // To do this naively by first raising this to the pow...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
return make(- x.ival);
return valueOf(- x.ival);
private static BigInteger neg(BigInteger x) { if (x.words == null && x.ival != Integer.MIN_VALUE) return make(- x.ival); BigInteger result = new BigInteger(0); result.setNegative(x); return result.canonicalize(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
else
public BigInteger pow(int exponent) { if (exponent <= 0) { if (exponent == 0) return ONE; else throw new ArithmeticException("negative exponent"); } if (isZero()) return this; int plen = words == null ? 1 : ival; // Length of pow2. int blen = ((bitLength() * exponent) >> 5) + 2 * plen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
if (BigInteger.negate(words, x.words, len))
if (negate(words, x.words, len))
private void setNegative(BigInteger x) { int len = x.ival; if (x.words == null) { if (len == Integer.MIN_VALUE) set(- (long) len); else set(-len); return; } realloc(len + 1); if (BigInteger.negate(words, x.words, len)) words[len++] = 0; ival = len; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
return make(count > -32 ? x.ival >> (-count) : x.ival < 0 ? -1 : 0);
return valueOf(count > -32 ? x.ival >> (-count) : x.ival < 0 ? -1 : 0);
private static BigInteger shift(BigInteger x, int count) { if (x.words == null) { if (count <= 0) return make(count > -32 ? x.ival >> (-count) : x.ival < 0 ? -1 : 0); if (count < 32) return make((long) x.ival << count); } if (count == 0) return x; BigInteger result = new BigInteger(0); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
return make((long) x.ival << count);
return valueOf((long) x.ival << count);
private static BigInteger shift(BigInteger x, int count) { if (x.words == null) { if (count <= 0) return make(count > -32 ? x.ival >> (-count) : x.ival < 0 ? -1 : 0); if (count < 32) return make((long) x.ival << count); } if (count == 0) return x; BigInteger result = new BigInteger(0); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
return BigInteger.make((long) xlen * (long) y);
return valueOf((long) xlen * (long) y);
private static final BigInteger times(BigInteger x, int y) { if (y == 0) return ZERO; if (y == 1) return x; int[] xwords = x.words; int xlen = x.ival; if (xwords == null) return BigInteger.make((long) xlen * (long) y); boolean negative; BigInteger result = BigInteger.alloc(xlen + ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
return make(val);
if (val >= minFixNum && val <= maxFixNum) return smallFixNums[(int) val - minFixNum]; int i = (int) val; if ((long) i == val) return new BigInteger(i); BigInteger result = alloc(2); result.ival = 2; result.words[0] = i; result.words[1] = (int)(val >> 32); return result;
public static BigInteger valueOf(long val) { return make(val); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java
font = new Font("-FontForge-Bitstream Vera Sans Mono-Book-R-Normal-SansMono--12-120-75-75-P-69-FontSpecific", Font.PLAIN, 12);
font = new Font("-FontForge-Bitstream Vera Sans Mono-Book-R-Normal-SansMono--12-120-75-75-P-69-ISO10646", Font.PLAIN, 12);
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/764f0bb448f621c1d46b337c418da9a8f4526fe6/FBConsole.java/buggy/gui/src/test/org/jnode/test/gui/FBConsole.java
new Thread(new Runnable() { public void run() { while(true){ try{ paintComponent(); synchronized(FBScreen.this){ if(!update) { update = false; FBScreen.this.wait(); } } }catch(InterruptedException x ){ break; } } } }, "FBScreenUpdater").start();
public FBScreen(Surface g) { this.g = g; w = 6; h = 18; sh = h * FBPcTextScreen.SCREEN_HEIGHT + 2 * margin; sw = w * FBPcTextScreen.SCREEN_WIDTH + 2 * margin; bi = new JNodeBufferedImage(sw, sh, BufferedImage.TYPE_INT_ARGB); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/764f0bb448f621c1d46b337c418da9a8f4526fe6/FBConsole.java/buggy/gui/src/test/org/jnode/test/gui/FBConsole.java
public void repaint() { paintComponent();
public synchronized void repaint() { if(!update){ update = true; notifyAll(); }
public void repaint() { paintComponent(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/764f0bb448f621c1d46b337c418da9a8f4526fe6/FBConsole.java/buggy/gui/src/test/org/jnode/test/gui/FBConsole.java
final DeviceManager dm = (DeviceManager) InitialNaming.lookup(DeviceManager.NAME);
final DeviceManager dm = InitialNaming.lookup(DeviceManager.NAME);
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "" /*"fb0"*/; Surface g = null; try { Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBuffe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/764f0bb448f621c1d46b337c418da9a8f4526fe6/FBConsole.java/buggy/gui/src/test/org/jnode/test/gui/FBConsole.java
final FrameBufferAPI api = (FrameBufferAPI) dev.getAPI(FrameBufferAPI.class);
final FrameBufferAPI api = dev.getAPI(FrameBufferAPI.class);
public static void main(String[] args) throws Exception { final String devId = (args.length > 0) ? args[0] : "" /*"fb0"*/; Surface g = null; try { Device dev = null; if("".equals(devId)){ final Collection<Device> devs = DeviceUtils.getDevicesByAPI(FrameBuffe...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/764f0bb448f621c1d46b337c418da9a8f4526fe6/FBConsole.java/buggy/gui/src/test/org/jnode/test/gui/FBConsole.java
if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && b.isEnabled() && (b.getBackground() instanceof UIResource)) updateWidthGradient(g, b, b.getParent()); else super.update(g, c); }
if ((b.getBackground() instanceof UIResource) && b.isContentAreaFilled() && b.isEnabled()) { ButtonModel m = b.getModel(); String uiKey = "Button.gradient"; if (! isToolbarButton(b)) { if (! m.isArmed() && ! m.isPressed() && isDrawingGradient(uiKey)) { MetalUtils.paintGradient(g, 0, 0, b.getWidth(), b.getHeight(), Swin...
public void update(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; if (b.isContentAreaFilled() && (UIManager.get(getPropertyPrefix() + "gradient") != null) && b.isEnabled() && (b.getBackground() instanceof UIResource)) updateWidthGradient(g, b, b.getParent()); el...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/MetalButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalButtonUI.java
return (entry >= eofMarker);
switch (bitSize) { case 12 : return (entry >=0xFF8); case 16 : return ((entry >= 0xFFF8)); case 32 : return (entry >= 0xFFFFFFF8); default : throw new IllegalArgumentException("Invalid bitSize " + bitSize); }
protected boolean isEofCluster(long entry) { return (entry >= eofMarker); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/af75f31f7ce367a1e5ad83168b6492652bafd7b6/Fat.java/clean/fs/src/fs/org/jnode/fs/fat/Fat.java
servant = null;
public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; ResponseHandlerImpl i_handler = null; try...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b53ee23d2db4d673b2dea5fee94b6bff00d241bf/gnuServantObject.java/buggy/core/src/classpath/gnu/gnu/CORBA/Poa/gnuServantObject.java
if (noRetain) servant = null;
public OutputStream _invoke(String method, InputStream input, ResponseHandler r_handler ) throws SystemException { boolean intercept = false; ServerRequestInterceptorOperations interceptor = null; gnuServerRequestInfo info = null; ResponseHandlerImpl i_handler = null; try...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b53ee23d2db4d673b2dea5fee94b6bff00d241bf/gnuServantObject.java/buggy/core/src/classpath/gnu/gnu/CORBA/Poa/gnuServantObject.java
if (GraphicsEnvironment.isHeadless())
if (peer != null) return peer.createVolatileImage(width, height);
public VolatileImage createVolatileImage(int width, int height) { if (GraphicsEnvironment.isHeadless()) return null; GraphicsConfiguration config = getGraphicsConfiguration(); return config == null ? null : config.createCompatibleVolatileImage(width, height); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
GraphicsConfiguration config = getGraphicsConfiguration(); return config == null ? null : config.createCompatibleVolatileImage(width, height);
public VolatileImage createVolatileImage(int width, int height) { if (GraphicsEnvironment.isHeadless()) return null; GraphicsConfiguration config = getGraphicsConfiguration(); return config == null ? null : config.createCompatibleVolatileImage(width, height); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
if (isLightweight() && !e.isConsumed())
if (isLightweight() && isEnabled() && !e.isConsumed())
void dispatchEventImpl(AWTEvent e) { // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. boolean ignoreFocus = (e instanceof FocusEvent && ((FocusEvent)e).getComponent() == ((FocusEvent)e).getOppositeComponent()); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
if (e instanceof InputEvent)
if (e instanceof WindowEvent) { WindowEvent we = (WindowEvent) e; int id = we.id; int newId = 0; switch (id) { case WindowEvent.WINDOW_DEICONIFIED: newId = Event.WINDOW_DEICONIFY; break; case WindowEvent.WINDOW_CLOSED: case WindowEvent.WINDOW_CLOSING: newId = Event.WINDOW_DESTROY; break; case WindowEvent.WINDOW_ICONIF...
static Event translateEvent (AWTEvent e) { Object target = e.getSource (); Event translated = null; if (e instanceof InputEvent) { InputEvent ie = (InputEvent) e; long when = ie.getWhen (); int oldID = 0; int id = e.getID (); int oldMods = 0; int mods = ie.getM...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/Component.java/buggy/core/src/classpath/java/java/awt/Component.java
new ApplyTemplatesNode(null, null, new Selector(Selector.CHILD, tests),
new ApplyTemplatesNode(new Selector(Selector.CHILD, tests),
Stylesheet(TransformerFactoryImpl factory, Stylesheet parent, Document doc, String systemId, int precedence) throws TransformerConfigurationException { this.factory = factory; this.systemId = systemId; this.precedence = precedence; this.parent = parent; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
new ValueOfNode(null, null, new Selector(Selector.SELF, tests),
new ValueOfNode(new Selector(Selector.SELF, tests),
Stylesheet(TransformerFactoryImpl factory, Stylesheet parent, Document doc, String systemId, int precedence) throws TransformerConfigurationException { this.factory = factory; this.systemId = systemId; this.precedence = precedence; this.parent = parent; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
if (debug) { System.err.println("getTemplate: mode="+mode+" context="+context); }
TemplateNode getTemplate(QName mode, Node context, boolean applyImports) throws TransformerException { //System.err.println("getTemplate: mode="+mode+" context="+context); Set candidates = new TreeSet(); for (Iterator j = templates.iterator(); j.hasNext(); ) { Template t = (Template) j.next()...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
if (debug) { System.err.println("\tbuiltInTemplate context="+context); }
TemplateNode getTemplate(QName mode, Node context, boolean applyImports) throws TransformerException { //System.err.println("getTemplate: mode="+mode+" context="+context); Set candidates = new TreeSet(); for (Iterator j = templates.iterator(); j.hasNext(); ) { Template t = (Template) j.next()...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
if (debug) { System.err.println("\ttemplate="+t+" context="+context); }
TemplateNode getTemplate(QName mode, Node context, boolean applyImports) throws TransformerException { //System.err.println("getTemplate: mode="+mode+" context="+context); Set candidates = new TreeSet(); for (Iterator j = templates.iterator(); j.hasNext(); ) { Template t = (Template) j.next()...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
if (node == null)
while (node != null)
void parse(Node node, boolean root) throws TransformerConfigurationException { if (node == null) { return; } current = node; try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return; }
void parse(Node node, boolean root) throws TransformerConfigurationException { if (node == null) { return; } current = node; try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); NamedNodeMap attrs = node.getAttributes(); if ("stylesheet".equals(name)) { version = getAttribute(attrs, "version"); String eep = getAttribute(attrs, "ext...
doParse(node, root); node = node.getNextSibling();
void parse(Node node, boolean root) throws TransformerConfigurationException { if (node == null) { return; } current = node; try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseApplyTemplates(Node node, Node children, Node next)
final TemplateNode parseApplyTemplates(Node node)
final TemplateNode parseApplyTemplates(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String m = getAttribute(attrs, "mode"); QName mode = (m == null) ? null : getQName(m); String s = getAttribute(att...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new ApplyTemplatesNode(null, parse(next), select, mode,
return new ApplyTemplatesNode(select, mode,
final TemplateNode parseApplyTemplates(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String m = getAttribute(attrs, "mode"); QName mode = (m == null) ? null : getQName(m); String s = getAttribute(att...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseAttribute(Node node, Node children, Node next)
final TemplateNode parseAttribute(Node node)
final TemplateNode parseAttribute(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); String namespace = getAttribute(attrs, "namespace"); TemplateN...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new AttributeNode(parse(children), parse(next), n, ns, node);
Node children = node.getFirstChild(); AttributeNode ret = new AttributeNode(n, ns, node); ret.children = parse(children); return ret;
final TemplateNode parseAttribute(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); String namespace = getAttribute(attrs, "namespace"); TemplateN...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
ret = new ValueOfNode(null, ret, select, false);
TemplateNode ret2 = new ValueOfNode(select, false); ret2.next = ret; ret = ret2;
final TemplateNode parseAttributeValueTemplate(String value, Node source) throws TransformerConfigurationException, XPathExpressionException { current = source; // Tokenize int len = value.length(); int off = 0; List tokens = new ArrayList(); // text tokens List types = new ArrayList(); // liter...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
ret = new LiteralNode(null, ret, doc.createTextNode(token));
TemplateNode ret2 = new LiteralNode(doc.createTextNode(token)); ret2.next = ret; ret = ret2;
final TemplateNode parseAttributeValueTemplate(String value, Node source) throws TransformerConfigurationException, XPathExpressionException { current = source; // Tokenize int len = value.length(); int off = 0; List tokens = new ArrayList(); // text tokens List types = new ArrayList(); // liter...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseCallTemplate(Node node, Node children, Node next)
final TemplateNode parseCallTemplate(Node node)
final TemplateNode parseCallTemplate(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String n = getRequiredAttribute(attrs, "name", node); QName name = getQName(n); List withParams = parseWithParams(ch...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new CallTemplateNode(null, parse(next), name, withParams);
return new CallTemplateNode(name, withParams);
final TemplateNode parseCallTemplate(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String n = getRequiredAttribute(attrs, "name", node); QName name = getQName(n); List withParams = parseWithParams(ch...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseCopy(Node node, Node children, Node next)
final TemplateNode parseCopy(Node node)
final TemplateNode parseCopy(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String uas = getAttribute(attrs, "use-attribute-sets"); return new CopyNode(parse(children), parse(next), uas); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new CopyNode(parse(children), parse(next), uas);
Node children = node.getFirstChild(); CopyNode ret = new CopyNode(uas); ret.children = parse(children); return ret;
final TemplateNode parseCopy(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String uas = getAttribute(attrs, "use-attribute-sets"); return new CopyNode(parse(children), parse(next), uas); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseCopyOf(Node node, Node children, Node next)
final TemplateNode parseCopyOf(Node node)
final TemplateNode parseCopyOf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); Expr select = (Expr) xpath.compile(s); return new CopyOfNode(parse...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new CopyOfNode(parse(children), parse(next), select);
Node children = node.getFirstChild(); CopyOfNode ret = new CopyOfNode(select); ret.children = parse(children); return ret;
final TemplateNode parseCopyOf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); Expr select = (Expr) xpath.compile(s); return new CopyOfNode(parse...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseElement(Node node, Node children, Node next)
final TemplateNode parseElement(Node node)
final TemplateNode parseElement(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); String namespace = getAttribute(attrs, "namespace"); String uas ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new ElementNode(parse(children), parse(next), n, ns, uas, node);
Node children = node.getFirstChild(); ElementNode ret = new ElementNode(n, ns, uas, node); ret.children = parse(children); return ret;
final TemplateNode parseElement(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); String namespace = getAttribute(attrs, "namespace"); String uas ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseForEach(Node node, Node children, Node next)
final TemplateNode parseForEach(Node node)
final TemplateNode parseForEach(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); List sortKeys = parseSortKeys(children); Expr select = (Expr) xpa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new ForEachNode(parse(children), parse(next), select, sortKeys);
ForEachNode ret = new ForEachNode(select, sortKeys); ret.children = parse(children); return ret;
final TemplateNode parseForEach(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); List sortKeys = parseSortKeys(children); Expr select = (Expr) xpa...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseIf(Node node, Node children, Node next)
final TemplateNode parseIf(Node node)
final TemplateNode parseIf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getRequiredAttribute(attrs, "test", node); Expr test = (Expr) xpath.compile(t); return new IfNode(parse(children), ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new IfNode(parse(children), parse(next), test);
Node children = node.getFirstChild(); IfNode ret = new IfNode(test); ret.children = parse(children); return ret;
final TemplateNode parseIf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getRequiredAttribute(attrs, "test", node); Expr test = (Expr) xpath.compile(t); return new IfNode(parse(children), ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseMessage(Node node, Node children, Node next)
final TemplateNode parseMessage(Node node)
final TemplateNode parseMessage(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getAttribute(attrs, "terminate"); boolean terminate = "yes".equals(t); return new MessageNode(parse(children),...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new MessageNode(parse(children), parse(next), terminate);
Node children = node.getFirstChild(); MessageNode ret = new MessageNode(terminate); ret.children = parse(children); return ret;
final TemplateNode parseMessage(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getAttribute(attrs, "terminate"); boolean terminate = "yes".equals(t); return new MessageNode(parse(children),...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseNumber(Node node, Node children, Node next)
final TemplateNode parseNumber(Node node)
final TemplateNode parseNumber(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String v = getAttribute(attrs, "value"); String ff = getAttribute(attrs, "format"); if (ff == null) { ff = "1"...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new NumberNode(parse(children), parse(next), value, format, lang,
ret = new NumberNode(value, format, lang,
final TemplateNode parseNumber(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String v = getAttribute(attrs, "value"); String ff = getAttribute(attrs, "format"); if (ff == null) { ff = "1"...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new NodeNumberNode(parse(children), parse(next), level, count, from,
ret = new NodeNumberNode(level, count, from,
final TemplateNode parseNumber(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String v = getAttribute(attrs, "value"); String ff = getAttribute(attrs, "format"); if (ff == null) { ff = "1"...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
ret.children = parse(children); return ret;
final TemplateNode parseNumber(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String v = getAttribute(attrs, "value"); String ff = getAttribute(attrs, "format"); if (ff == null) { ff = "1"...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
output = node;
final void parseOutput(Node node, NamedNodeMap attrs) throws TransformerConfigurationException { String method = getAttribute(attrs, "method"); if ("xml".equals(method) || method == null) { outputMethod = OUTPUT_XML; } else if ("html".equals(method)) { outputMethod = OUTPUT_H...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseProcessingInstruction(Node node, Node children, Node next)
final TemplateNode parseProcessingInstruction(Node node)
final TemplateNode parseProcessingInstruction(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); return...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new ProcessingInstructionNode(parse(children), parse(next), name);
Node children = node.getFirstChild(); ProcessingInstructionNode ret = new ProcessingInstructionNode(name); ret.children = parse(children); return ret;
final TemplateNode parseProcessingInstruction(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String name = getRequiredAttribute(attrs, "name", node); return...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new Template(this, name, match, parse(node.getFirstChild()),
Node children = node.getFirstChild(); return new Template(this, name, match, parse(children),
final Template parseTemplate(Node node, NamedNodeMap attrs) throws TransformerConfigurationException, XPathExpressionException { String n = getAttribute(attrs, "name"); QName name = (n == null) ? null : getQName(n); String m = getAttribute(attrs, "match"); Pattern match = null; if (m != null) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseText(Node node, Node children, Node next)
final TemplateNode parseText(Node node)
final TemplateNode parseText(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String doe = getAttribute(attrs, "disable-output-escaping"); boolean d = "yes".equals(doe); return new TextNode(parse(childr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new TextNode(parse(children), parse(next), d);
Node children = node.getFirstChild(); TextNode ret = new TextNode(d); ret.children = parse(children); return ret;
final TemplateNode parseText(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String doe = getAttribute(attrs, "disable-output-escaping"); boolean d = "yes".equals(doe); return new TextNode(parse(childr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseValueOf(Node node, Node children, Node next)
final TemplateNode parseValueOf(Node node)
final TemplateNode parseValueOf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); String doe = getAttribute(attrs, "disable-output-escaping"); bool...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new ValueOfNode(null, parse(next), select, d);
return new ValueOfNode(select, d);
final TemplateNode parseValueOf(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String s = getRequiredAttribute(attrs, "select", node); String doe = getAttribute(attrs, "disable-output-escaping"); bool...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
final TemplateNode parseWhen(Node node, Node children, Node next)
final TemplateNode parseWhen(Node node)
final TemplateNode parseWhen(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getRequiredAttribute(attrs, "test", node); Expr test = (Expr) xpath.compile(t); return new WhenNode(parse(childre...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
return new WhenNode(parse(children), parse(next), test);
Node children = node.getFirstChild(); WhenNode ret = new WhenNode(test); ret.children = parse(children); return ret;
final TemplateNode parseWhen(Node node, Node children, Node next) throws TransformerConfigurationException, XPathExpressionException { NamedNodeMap attrs = node.getAttributes(); String t = getRequiredAttribute(attrs, "test", node); Expr test = (Expr) xpath.compile(t); return new WhenNode(parse(childre...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b8e6f02cb6a820cbb793320542ee01a4b70f176a/Stylesheet.java/clean/core/src/classpath/gnu/gnu/xml/transform/Stylesheet.java
currentTip.revalidate();
void showTip() { if (!enabled || currentComponent == null || !currentComponent.isEnabled() || (currentTip != null && currentTip.isVisible())) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JCompon...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e4abb9c75335af103edab6fd85ed87fb53a143e8/ToolTipManager.java/buggy/core/src/classpath/javax/javax/swing/ToolTipManager.java
BasicOptionPaneUI() { }
public BasicOptionPaneUI() { }
BasicOptionPaneUI() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicOptionPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java
throw new Error ("Not implemented");
return hasCustomComponents;
public boolean containsCustomComponents(JOptionPane op) { throw new Error ("Not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicOptionPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java
public static ComponentUI createUI(JComponent x) { return new BasicOptionPaneUI(); }
public static ComponentUI createUI(JComponent x) { return new BasicOptionPaneUI(); }
public static ComponentUI createUI(JComponent x) { return new BasicOptionPaneUI(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/BasicOptionPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java