bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public BigInteger add(BigInteger val) { return add(this, val, 1); } | private static final BigInteger add(int x, int y) { return add(this, val, 1); } | 58,514 |
public BigInteger add(BigInteger val) { return add(this, val, 1); } | public BigInteger add(BigInteger val) { return BigInteger.make((long) x + (long) y); } | 58,515 |
public int compareTo(BigInteger val) { return compareTo(this, val); } | private static int compareTo(BigInteger x, BigInteger y) { return compareTo(this, val); } | 58,516 |
public int compareTo(BigInteger val) { return compareTo(this, val); } | public int compareTo(BigInteger val) { if (x.words == null && y.words == null) return x.ival < y.ival ? -1 : x.ival > y.ival ? 1 : 0; boolean x_negative = x.isNegative(); boolean y_negative = y.isNegative(); if (x_negative != y_negative) return x_negative ? -1 : 1; int x_len = x.words == null ? 1 : x.ival; int y_... | 58,517 |
public boolean equals(Object obj) { if (obj == null || ! (obj instanceof BigInteger)) return false; return BigInteger.equals(this, (BigInteger) obj); } | private static boolean equals(BigInteger x, BigInteger y) { if (obj == null || ! (obj instanceof BigInteger)) return false; return BigInteger.equals(this, (BigInteger) obj); } | 58,518 |
public boolean equals(Object obj) { if (obj == null || ! (obj instanceof BigInteger)) return false; return BigInteger.equals(this, (BigInteger) obj); } | public boolean equals(Object obj) { if (x.words == null && y.words == null) return x.ival == y.ival; if (x.words == null || y.words == null || x.ival != y.ival) return false; return BigInteger.equals(this, (BigInteger) obj); } | 58,519 |
public boolean equals(Object obj) { if (obj == null || ! (obj instanceof BigInteger)) return false; return BigInteger.equals(this, (BigInteger) obj); } | public boolean equals(Object obj) { if (obj == null || ! (obj instanceof BigInteger)) return false; for (int i = x.ival; --i >= 0; ) { if (x.words[i] != y.words[i]) return false; } return true; } | 58,520 |
public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | private static void divide(long x, long y, BigInteger quotient, BigInteger remainder, int rounding_mode) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | 58,521 |
public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | 58,522 |
public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | public BigInteger divide(BigInteger val) { if (val.isZero()) throw new ArithmeticException("divisor is zero"); BigInteger quot = new BigInteger(); divide(this, val, quot, null, TRUNCATE); return quot.canonicalize(); } | 58,523 |
public BigInteger negate() { return BigInteger.neg(this); } | private static boolean negate(int[] dest, int[] src, int len) { return BigInteger.neg(this); } | 58,524 |
public BigInteger negate() { return BigInteger.neg(this); } | public BigInteger negate() { long carry = 1; boolean negative = src[len-1] < 0; for (int i = 0; i < len; i++) { carry += ((long) (~src[i]) & 0xffffffffL); dest[i] = (int) carry; carry >>= 32; } return (negative && dest[len-1] < 0); } | 58,525 |
public synchronized StringBuffer insert(int offset, char ch) { if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity_unsynchronized(count + 1); System.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; return ... | public synchronized StringBuffer insert(int offset, char[] str, int str_offset, int len) { if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity_unsynchronized(count + 1); System.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] ... | 58,526 |
public synchronized StringBuffer insert(int offset, char ch) { if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity_unsynchronized(count + 1); System.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; return ... | public synchronized StringBuffer insert(int offset, char ch) { if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity_unsynchronized(count + 1); System.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; return ... | 58,527 |
public boolean localizeDisplayKeys() { if(!_localizeDisplayKeysRead) { _localizeDisplayKeysRead = true; _localizeDisplayKeys = ERXUtilities.booleanValueForBindingOnComponentWithDefault("localizeDisplayKeys", this, localizeDisplayKeysDefault); } return _localizeDisplayKeys;... | public boolean localizeDisplayKeys() { if(!_localizeDisplayKeysRead) { _localizeDisplayKeysRead = true; _localizeDisplayKeys = ERXValueUtilities.booleanValueForBindingOnComponentWithDefault("localizeDisplayKeys", this, localizeDisplayKeysDefault); } return _localizeDisplay... | 58,528 |
public void setIsMandatory(Object aValue) { try { _isMandatory = ERXUtilities.booleanValue(aValue); } catch (Throwable e) { String error = "WOToOneRelationship (setIsMandatory) - unable to set isMandatory value "+e.getMessage(); NSLog.err.appendln(error); } } | public void setIsMandatory(Object aValue) { try { _isMandatory = ERXValueUtilities.booleanValue(aValue); } catch (Throwable e) { String error = "WOToOneRelationship (setIsMandatory) - unable to set isMandatory value "+e.getMessage(); NSLog.err.appendln(error); }... | 58,529 |
public void setLoopbackMode(boolean disable) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); getImpl().setOption (SocketOptions.IP_MULTICAST_LOOP, new Boolean (disable)); } | public void setLoopbackMode(boolean disable) throws SocketException { if (isClosed()) throw new SocketException("socket is closed"); getImpl().setOption (SocketOptions.IP_MULTICAST_LOOP, Boolean.valueOf(disable)); } | 58,530 |
public InetSocketAddress(int port) throws IllegalArgumentException { if (port < 0 || port > 65535) throw new IllegalArgumentException(); this.port = port; try { this.addr = InetAddress.getLocalHost(); } catch (Exception e) { } } | public InetSocketAddress(int port) throws IllegalArgumentException { if (port < 0 || port > 65535) throw new IllegalArgumentException(); this.port = port; try { this.addr = InetAddress.getLocalHost(); } catch (Exception e) { } } | 58,531 |
public InetSocketAddress(int port) throws IllegalArgumentException { if (port < 0 || port > 65535) throw new IllegalArgumentException(); this.port = port; try { this.addr = InetAddress.getLocalHost(); } catch (Exception e) { } } | this.addr = addr; this.addr = addr; this.addr = addr; this.addr = addr; public this.addr = addr; InetSocketAddress(int this.addr = addr; port) throws this.addr = addr; IllegalArgumentException this.addr = addr; this.addr = addr; this.addr = addr; this.addr = addr; { if this.addr = addr; (port this.addr = addr; <... | 58,532 |
public InetSocketAddress(int port) throws IllegalArgumentException { if (port < 0 || port > 65535) throw new IllegalArgumentException(); this.port = port; try { this.addr = InetAddress.getLocalHost(); } catch (Exception e) { } } | public InetSocketAddress(int port) throws IllegalArgumentException { if (port < 0 || port > 65535) throw new IllegalArgumentException(); this.port = port; try { this.addr = InetAddress.getLocalHost(); } catch (Exception e) { } } | 58,533 |
SocketException(String message){ super(message);} | SocketException(String message){ super(message);} | 58,534 |
SocketException(String message){ super(message);} | SocketException(String message){ super(message);} | 58,535 |
public InetAddress getAddress() { return addr; } | public final InetAddress getAddress() { return addr; } | 58,536 |
protected void setGlobalCurrentFocusCycleRoot(Container cycleRoot) { firePropertyChange("currentFocusCycleRoot", focusCycleRoot, cycleRoot); focusCycleRoot = cycleRoot; } | public void setGlobalCurrentFocusCycleRoot(Container cycleRoot) { firePropertyChange("currentFocusCycleRoot", focusCycleRoot, cycleRoot); focusCycleRoot = cycleRoot; } | 58,537 |
public boolean isFocusCycleRoot() { return false; } | public boolean isFocusCycleRoot(Container c) { return false; } | 58,538 |
public ExplicitBeanInfo(BeanDescriptor beanDescriptor, BeanInfo[] additionalBeanInfo, PropertyDescriptor[] propertyDescriptors, int defaultPropertyIndex, EventSetDescriptor[] eventSetDescriptors, int defaultEventIndex, ... | public ExplicitBeanInfo(BeanDescriptor beanDescriptor, BeanInfo[] additionalBeanInfo, PropertyDescriptor[] propertyDescriptors, int defaultPropertyIndex, EventSetDescriptor[] eventSetDescriptors, int defaultEventIndex, ... | 58,539 |
public java.awt.Image getIcon(int iconType) { return icons != null ? icons[iconType] : null; } | public java.awt.Image getIcon(int iconType) { return icons != null ? icons[iconType] : null; } | 58,540 |
private void makeRGBTexture(GL gl, GLU glu, BufferedImage img, int target, boolean mipmapped) { ByteBuffer dest = null; switch (img.getType()) { case BufferedImage.TYPE_3BYTE_BGR: case BufferedImage.TYPE_CUSTOM: { byte[] data = ((DataBufferByte) img.getRaster().getDataBuffer()).getD... | private void makeRGBTexture(GL gl, GLU glu, BufferedImage img, int target, boolean mipmapped) { ByteBuffer dest = null; switch (img.getType()) { case BufferedImage.TYPE_3BYTE_BGR: case BufferedImage.TYPE_CUSTOM: { byte[] data = ((DataBufferByte) img.getRaster().getDataBuffer()).getD... | 58,541 |
private void makeRGBTexture(GL gl, GLU glu, BufferedImage img, int target, boolean mipmapped) { ByteBuffer dest = null; switch (img.getType()) { case BufferedImage.TYPE_3BYTE_BGR: case BufferedImage.TYPE_CUSTOM: { byte[] data = ((DataBufferByte) img.getRaster().getDataBuffer()).getD... | private void makeRGBTexture(GL gl, GLU glu, BufferedImage img, int target, boolean mipmapped) {ByteBuffer dest = null;switch (img.getType()) { case BufferedImage.TYPE_3BYTE_BGR: case BufferedImage.TYPE_CUSTOM: { byte[] data = ((DataBufferByte) img.getRaster().getDataBuffer()).getData(); dest = ByteBuffer.allocateDir... | 58,542 |
private void makeRGBTexture(GL gl, GLU glu, BufferedImage img, int target, boolean mipmapped) { ByteBuffer dest = null; switch (img.getType()) { case BufferedImage.TYPE_3BYTE_BGR: case BufferedImage.TYPE_CUSTOM: { byte[] data = ((DataBufferByte) img.getRaster().getDataBuffer()).getD... | private void makeRGBTexture(GL gl, GLU glu, BufferedImage img, int target, boolean mipmapped) { ByteBuffer dest = null; switch (img.getType()) { case BufferedImage.TYPE_3BYTE_BGR: case BufferedImage.TYPE_CUSTOM: { byte[] data = ((DataBufferByte) img.getRaster().getDataBuffer()).getD... | 58,543 |
public static ByteOrder nativeOrder () { return (System.getProperty ("gnu.cpu.endian").equals("big") ? BIG_ENDIAN : LITTLE_ENDIAN); } | public static ByteOrder nativeOrder() { return (System.getProperty ("gnu.cpu.endian").equals("big") ? BIG_ENDIAN : LITTLE_ENDIAN); } | 58,544 |
public final ByteBuffer order (ByteOrder endian) { this.endian = endian; return this; } | public final ByteOrder order () { this.endian = endian; return this; } | 58,545 |
public final ByteBuffer order (ByteOrder endian) { this.endian = endian; return this; } | public final ByteBuffer order (ByteOrder endian) { this.endian = endian; return this; } | 58,546 |
public ByteBuffer put (byte[] src, int offset, int length) { if ((offset < 0) || (offset > src.length) || (length < 0) || (length > src.length - offset)) throw new IndexOutOfBoundsException (); for (int i = offset; i < offset + length; i++) put (src [i]); return this; } | public ByteBuffer put (ByteBuffer src) { if ((offset < 0) || (offset > src.length) || (length < 0) || (length > src.length - offset)) throw new IndexOutOfBoundsException (); for (int i = offset; i < offset + length; i++) put (src [i]); return this; } | 58,547 |
public ByteBuffer put (byte[] src, int offset, int length) { if ((offset < 0) || (offset > src.length) || (length < 0) || (length > src.length - offset)) throw new IndexOutOfBoundsException (); for (int i = offset; i < offset + length; i++) put (src [i]); return this; } | public ByteBuffer put (byte[] src, int offset, int length) { if ((offset < 0) || (offset > src.length) || (length < 0) || (length > src.length - offset)) throw new IndexOutOfBoundsException (); for (int i = offset; i < offset + length; i++) put (src [i]); return this; } | 58,548 |
public ByteBuffer put (byte[] src, int offset, int length) { if ((offset < 0) || (offset > src.length) || (length < 0) || (length > src.length - offset)) throw new IndexOutOfBoundsException (); for (int i = offset; i < offset + length; i++) put (src [i]); return this; } | public ByteBuffer put (byte[] src, int offset, int length) { if ((offset < 0) || (offset > src.length) || (length < 0) || (length > src.length - offset)) throw new IndexOutOfBoundsException (); for (int i = offset; i < offset + length; i++) put (src [i]); return this; } | 58,549 |
public IntBuffer put (int[] src, int offset, int length) { for (int i = offset; i < offset + length; i++) put (src [i]); return this; } | public IntBuffer put (IntBuffer src) { for (int i = offset; i < offset + length; i++) put (src [i]); return this; } | 58,550 |
public IntBuffer put (int[] src, int offset, int length) { for (int i = offset; i < offset + length; i++) put (src [i]); return this; } | public IntBuffer put (int[] src, int offset, int length) { for (int i = offset; i < offset + length; i++) put (src [i]); return this; } | 58,551 |
public Frame (String title) { this(); setTitle(title); } | public Frame (String title) { this(); setTitle(title); } | 58,552 |
private String normalizePath(String p) { int dupIndex = p.indexOf(dupSeparator); int plen = p.length(); // Special case: permit Windows UNC path prefix. if (dupSeparator.equals("\\") && dupIndex == 0) dupIndex = p.indexOf(dupSeparator, 1); if (dupIndex == -1) { // Ignore trailing ... | private String normalizePath(String p) { int dupIndex = p.indexOf(dupSeparator); int plen = p.length(); // Special case: permit Windows UNC path prefix. if (dupSeparator.equals("\\") && dupIndex == 0) dupIndex = p.indexOf(dupSeparator, 1); if (dupIndex == -1) { // Ignore trailing ... | 58,554 |
private String normalizePath(String p) { int dupIndex = p.indexOf(dupSeparator); int plen = p.length(); // Special case: permit Windows UNC path prefix. if (dupSeparator.equals("\\") && dupIndex == 0) dupIndex = p.indexOf(dupSeparator, 1); if (dupIndex == -1) { // Ignore trailing ... | private String normalizePath(String p) { int dupIndex = p.indexOf(dupSeparator); int plen = p.length(); // Special case: permit Windows UNC path prefix. if (dupSeparator.equals("\\\\") && dupIndex == 0) dupIndex = p.indexOf(dupSeparator, 1); if (dupIndex == -1) { // Ignore trailin... | 58,555 |
public void checkRead (String fileName) { throw new SecurityException(); } | public void checkRead (FileDescriptor fd) { throw new SecurityException(); } | 58,556 |
public void checkWrite (String fileName) { throw new SecurityException(); } | public void checkWrite (FileDescriptor fd) { throw new SecurityException(); } | 58,557 |
public URL(String spec) throws MalformedURLException { this((URL) null, spec, (URLStreamHandler) null); } | public URL(String protocol, String host, int port, String file) throws MalformedURLException { this((URL) null, spec, (URLStreamHandler) null); } | 58,558 |
public URL(String spec) throws MalformedURLException { this((URL) null, spec, (URLStreamHandler) null); } | public URL(String spec) throws MalformedURLException { this(protocol, host, port, file, null); } | 58,559 |
public void setTarget(ClassVisitor target); | public void setTarget(ClassVisitor target); | 58,560 |
public Properties(Properties defaults) { this.defaults = defaults; } | public Properties() { this.defaults = defaults; } | 58,561 |
public Properties(Properties defaults) { this.defaults = defaults; } | public Properties(Properties defaults) { } | 58,562 |
public PrintStream (OutputStream out, boolean af) { super(out); if (out instanceof BufferedOutputStream) this.out = (BufferedOutputStream) out; else { this.out = new BufferedOutputStream(out, 250); /* PrintStream redefines "out". Explicitly reset FilterOutputStream's * "out" so that they'r... | public PrintStream (OutputStream out) { super(out); if (out instanceof BufferedOutputStream) this.out = (BufferedOutputStream) out; else { this.out = new BufferedOutputStream(out, 250); /* PrintStream redefines "out". Explicitly reset FilterOutputStream's * "out" so that they're referring ... | 58,563 |
public PrintStream (OutputStream out, boolean af) { super(out); if (out instanceof BufferedOutputStream) this.out = (BufferedOutputStream) out; else { this.out = new BufferedOutputStream(out, 250); /* PrintStream redefines "out". Explicitly reset FilterOutputStream's * "out" so that they'r... | public PrintStream (OutputStream out, boolean af) { super(out); if (out instanceof BufferedOutputStream) this.out = (BufferedOutputStream) out; else { this.out = new BufferedOutputStream(out, 250); /* PrintStream redefines "out". Explicitly reset FilterOutputStream's * "out" so that they'r... | 58,564 |
public DefaultDependencyArtifactDescriptor(DefaultDependencyDescriptor dd, String name, String type, String ext, URL url, boolean includes, PatternMatcher matcher) { if (dd == null) { throw new NullPointerException("dependency descriptor must not be null"); } if (name == n... | public DefaultDependencyArtifactDescriptor(DefaultDependencyDescriptor dd, String name, String type, String ext, URL url, boolean includes, PatternMatcher matcher) { if (dd == null) { throw new NullPointerException("dependency descriptor must not be null"); } if (name == n... | 58,566 |
public static void debug(String msg) { if (_impl != null) { _impl.log(msg, MSG_DEBUG); } else { System.err.println(msg); } } | public static void debug(String msg) { if (_impl != null) { _impl.log(msg, MSG_DEBUG); } else { System.err.println(msg); } } | 58,567 |
public static Map getExtraAttributes(Attributes attributes, String[] ignoredAttNames) { Map ret = new HashMap(); Collection ignored = Arrays.asList(ignoredAttNames); for (int i=0; i<attributes.getLength(); i++) { if (!ignored.contains(attributes.getQName(i))) { ret.put... | public static Map getExtraAttributes(Attributes attributes, String prefix) { Map ret = new HashMap(); Collection ignored = Arrays.asList(ignoredAttNames); for (int i=0; i<attributes.getLength(); i++) { if (!ignored.contains(attributes.getQName(i))) { ret.put(attributes... | 58,568 |
public static Map getExtraAttributes(Attributes attributes, String[] ignoredAttNames) { Map ret = new HashMap(); Collection ignored = Arrays.asList(ignoredAttNames); for (int i=0; i<attributes.getLength(); i++) { if (!ignored.contains(attributes.getQName(i))) { ret.put... | public static Map getExtraAttributes(Attributes attributes, String[] ignoredAttNames) { Map ret = new HashMap(); for (int i=0; i<attributes.getLength(); i++) { if (!ignored.contains(attributes.getQName(i))) { ret.put(attributes.getQName(i), attributes.getValue(i)); ... | 58,569 |
public static Map getExtraAttributes(Attributes attributes, String[] ignoredAttNames) { Map ret = new HashMap(); Collection ignored = Arrays.asList(ignoredAttNames); for (int i=0; i<attributes.getLength(); i++) { if (!ignored.contains(attributes.getQName(i))) { ret.put... | public static Map getExtraAttributes(Attributes attributes, String[] ignoredAttNames) { Map ret = new HashMap(); Collection ignored = Arrays.asList(ignoredAttNames); for (int i=0; i<attributes.getLength(); i++) { if (!ignored.contains(attributes.getQName(i))) { ret.put... | 58,570 |
public static void warn(String msg) { if (_impl != null) { _impl.log("WARN: "+msg, MSG_VERBOSE); } else { System.err.println(msg); } _problems.add("WARN: "+msg); _warns.add(msg); } | public static void warn(String msg) { if (_impl != null) { _impl.log("WARN: "+msg, MSG_VERBOSE); } else { System.err.println(msg); } _problems.add("WARN: "+msg); _warns.add(msg); } | 58,571 |
public DefaultDependencyDescriptor(ModuleDescriptor md, ModuleRevisionId mrid, boolean force, boolean changing, boolean transitive) { _md = md; _revId = mrid; _force = force; _changing = changing; _transitive = transitive; } | public DefaultDependencyDescriptor(ModuleDescriptor md, ModuleRevisionId mrid, boolean force, boolean changing, boolean transitive) { _md = md; _revId = mrid; _force = force; _changing = changing; _transitive = transitive; } | 58,572 |
public DefaultModuleDescriptor(ModuleDescriptorParser parser, Resource res) { _parser = parser; _resource = res; } | public DefaultModuleDescriptor(ModuleDescriptorParser parser, Resource res) { _parser = parser; _resource = res; } | 58,573 |
public ModuleDescriptor parseDescriptor(Ivy ivy, URL descriptorURL, Resource res, boolean validate) throws ParseException, IOException; | public ModuleDescriptor parseDescriptor(Ivy ivy, URL descriptorURL, Resource res, boolean validate) throws ParseException, IOException; | 58,574 |
protected void generate() throws NoSuchMethodException { if (wreplace == null) { wreplace = Enhancer.InternalReplace.class.getMethod("writeReplace", TYPES_OBJECT); } declare_interface(Factory.class); declare_field(Modifier.PRIVATE, MethodInterceptor.class, INTERCEPTOR_... | protected void generate() throws NoSuchMethodException { if (wreplace == null) { wreplace = Enhancer.InternalReplace.class.getMethod("writeReplace", TYPES_OBJECT); } declare_interface(Factory.class); declare_field(Modifier.PRIVATE, MethodInterceptor.class, INTERCEPTOR_... | 58,575 |
private void generateClInit(List methodList) throws NoSuchMethodException { /* generates: static { Class [] args; Class cls = findClass("java.lang.Object"); args = new Class[0]; METHOD_1 = cls.getDeclaredMethod("toString", args); Class thi... | private void generateClInit(List methodList) throws NoSuchMethodException { /* generates: static { Class [] args; Class cls = findClass("java.lang.Object"); args = new Class[0]; METHOD_1 = cls.getDeclaredMethod("toString", args); Class thi... | 58,576 |
private String getFieldName(Method method, int index) { return "METHOD_" + index; } | private String getFieldName(int index) { return "METHOD_" + index; } | 58,577 |
boolean addAll(Collection c); | boolean addAll(Collection c); | 58,579 |
public boolean accept( java.lang.reflect.Member method ); | public boolean accept( java.lang.reflect.Member method ); | 58,580 |
boolean add(Object o); | boolean add(Object o); | 58,581 |
protected void store_local(String name) { Integer position = (Integer)locals.get(name); if (position == null) { position = new Integer(nextLocal); locals.put(name, position); Type type = (Type)localTypes.get(name); nextLocal += (type == null) ? 1 : type.getS... | protected void store_local(String name) { Integer position = (Integer)locals.get(name); if (position == null) { position = new Integer(nextLocal); locals.put(name, position); Type type = (Type)localTypes.get(name); nextLocal += (type == null) ? 1 : type.getS... | 58,582 |
protected void store_local(String name) { Integer position = (Integer)locals.get(name); if (position == null) { position = new Integer(nextLocal); locals.put(name, position); Type type = (Type)localTypes.get(name); nextLocal += (type == null) ? 1 : type.getS... | protected void store_local(String name) { Integer position = (Integer)locals.get(name); if (position == null) { position = new Integer(nextLocal); locals.put(name, position); Type type = (Type)localTypes.get(name); nextLocal += (type == null) ? 1 : type.getS... | 58,583 |
protected void newarray(Class clazz) { if (clazz.isPrimitive()) { append(new NEWARRAY((BasicType)getType(clazz))); } else { append(new ANEWARRAY(cp.addClass(clazz.getName()))); } } | protected void newarray(Class clazz) { if (clazz.isPrimitive()) { append(new NEWARRAY((BasicType)getType(clazz))); } else { append(new ANEWARRAY(cp.addClass(clazz.getName()))); } } | 58,584 |
protected void load_local(String name) { load_local((Type)localTypes.get(name), getLocal(name)); } | protected void load_local(String name) { load_local((Type)localTypes.get(name), getLocal(name)); } | 58,585 |
protected void begin_constructor(Class[] parameterTypes) { checkInMethod(); returnType = Void.TYPE; mg = new MethodGen(ACC_PUBLIC, Type.VOID, getTypes(parameterTypes), null, CONSTRUCTOR_NAME, cg.getClassName(), il, cp); setNextLocal(); } | protected void begin_constructor(Class[] parameterTypes) { checkInMethod(); returnType = Void.TYPE; mg = new MethodGen(ACC_PUBLIC, Type.VOID, getTypes(parameterTypes), null, CONSTRUCTOR_NAME, cg.getClassName(), il, cp); setNextLocal(); } | 58,586 |
protected void super_invoke_constructor() { invoke_constructor_helper(cg.getSuperclassName(), TYPES_EMPTY); } | protected void super_invoke_constructor() { invoke_constructor_helper(cg.getSuperclassName(), TYPES_EMPTY); } | 58,587 |
protected void invoke_constructor_this(Class[] parameterTypes) { invoke_constructor_helper(cg.getClassName(), parameterTypes); } | protected void invoke_constructor_this(Class[] parameterTypes) { invoke_constructor_helper(cg.getClassName(), parameterTypes); } | 58,588 |
protected void invoke_constructor(Class type, Class[] parameterTypes) { invoke_constructor_helper(type.getName(), parameterTypes); } | protected void invoke_constructor(Class type, Class[] parameterTypes) { invoke_constructor_helper(type.getName(), parameterTypes); } | 58,589 |
protected RecipeComponent getDatabaseRecipe(String recipeId, String recipeName) { createLogger(); String query = null; RecipeComponent rc = null; try { Connection conn = DBUtils.getConnection(); try { Map substitutions = new HashMap(); ... | protected RecipeComponent getDatabaseRecipe(String recipeId, String recipeName) { createLogger(); String query = null; RecipeComponent rc = null; try { Connection conn = DBUtils.getConnection(); try { Map substitutions = new HashMap(); ... | 58,590 |
protected RecipeComponent getDatabaseRecipe(String recipeId, String recipeName) { createLogger(); String query = null; RecipeComponent rc = null; try { Connection conn = DBUtils.getConnection(); try { Map substitutions = new HashMap(); ... | protectedRecipeComponentgetDatabaseRecipe(StringrecipeId,StringrecipeName){createLogger();Stringquery=null;RecipeComponentrc=null;try{Connectionconn=DBUtils.getConnection();try{Mapsubstitutions=newHashMap();substitutions.put(":recipe_id",recipeId);Statementstmt=conn.createStatement();query=DBUtils.getQuery("queryRecipe... | 58,591 |
private String getRecipeAssembly(Connection conn, Map substitutions) { String assemblyId = null; try { Statement stmt = conn.createStatement(); try { String query = DBUtils.getQuery("queryRecipeProperties", substitutions); ResultSet rs = stmt.executeQuery(query); // Relys ... | private String getRecipeAssembly(Connection conn, Map substitutions) { String assemblyId = null; try { Statement stmt = conn.createStatement(); try { String query = DBUtils.getQuery("queryRecipeProperties", substitutions); ResultSet rs = stmt.executeQuery(query); // Relys ... | 58,592 |
private boolean isComplexRecipe(Connection conn, Map substitutions) { boolean retVal = false; try { Statement stmt = conn.createStatement(); try { String query = DBUtils.getQuery("queryRecipeProperties", substitutions); ResultSet rs = stmt.executeQuery(query); // Relys on ... | private boolean isComplexRecipe(String desc) { boolean retVal = false; try { Statement stmt = conn.createStatement(); try { String query = DBUtils.getQuery("queryRecipeProperties", substitutions); ResultSet rs = stmt.executeQuery(query); // Relys on the fact that a complex... | 58,593 |
private boolean isComplexRecipe(Connection conn, Map substitutions) { boolean retVal = false; try { Statement stmt = conn.createStatement(); try { String query = DBUtils.getQuery("queryRecipeProperties", substitutions); ResultSet rs = stmt.executeQuery(query); // Relys on ... | private boolean isComplexRecipe(Connection conn, Map substitutions) { boolean retVal = false; try { Statement stmt = conn.createStatement(); try { String query = DBUtils.getQuery("queryRecipeProperties", substitutions); ResultSet rs = stmt.executeQuery(query); // Relys on ... | 58,594 |
Object[] toArray(Object[] a); | Object[] toArray(Object[] a); | 58,596 |
public JFileChooser(String currentDirectoryPath) { // TODO } // JFileChooser() | public JFileChooser(String currentDirectoryPath) { // TODO } // JFileChooser() | 58,597 |
public String[] getAgentFilenames(File directory) { File[] files = directory.listFiles(); ArrayList agentFilenames = new ArrayList(files.length); for (int i = 0; i < files.length; i++) { String name = files[i].getName(); if (!name.endsWith(".ini")) continue; if (FileParseUtil.containsPa... | public String[] getAgentFilenames(File directory) { File[] files = directory.listFiles(); ArrayList agentFilenames = new ArrayList(files.length); for (int i = 0; i < files.length; i++) { String name = files[i].getName(); if (!name.endsWith(".ini")) continue; if (FileParseUtil.containsPa... | 58,598 |
public String[] getAgentFilenames(File directory) { File[] files = directory.listFiles(); ArrayList agentFilenames = new ArrayList(files.length); for (int i = 0; i < files.length; i++) { String name = files[i].getName(); if (!name.endsWith(".ini")) continue; if (FileParseUtil.containsPa... | public String[] getAgentFilenames(File directory) { File[] files = directory.listFiles(); ArrayList agentFilenames = new ArrayList(files.length); for (int i = 0; i < files.length; i++) { String name = files[i].getName(); if (!name.endsWith(".ini")) continue; if (FileParseUtil.containsPa... | 58,599 |
Property getProperty(String localName); | Property getProperty(String localName); | 58,600 |
private SmsPdu[] createSeptetPdus(int theMaxBytes) { int nMaxChars; int nMaxConcatChars; SmsPdu smsPdus[] = null; // 8-bit concat header is 6 bytes... nMaxConcatChars = ((theMaxBytes - 6) * 8) / 7; nMaxChars = (theMaxBytes * 8) / 7; if (myUdLength <= nMaxChars) ... | private SmsPdu[] createSeptetPdus(int theMaxBytes) { int nMaxChars; int nMaxConcatChars; SmsPdu smsPdus[] = null; // 8-bit concat header is 6 bytes... nMaxConcatChars = ((theMaxBytes - 6) * 8) / 7; nMaxChars = (theMaxBytes * 8) / 7; if (myUdLength <= nMaxChars) ... | 58,601 |
public SmsPdu(SmsUdhElement[] theUdhIeis, byte[] theUd, int theUdLength) { setUserDataHeaders(theUdhIeis); setUserData(theUd, theUdLength); } | public SmsPdu() { setUserDataHeaders(theUdhIeis); setUserData(theUd, theUdLength); } | 58,602 |
public SmsPdu(SmsUdhElement[] theUdhIeis, byte[] theUd, int theUdLength) { setUserDataHeaders(theUdhIeis); setUserData(theUd, theUdLength); } | public SmsPdu(SmsUdhElement[] theUdhIeis, byte[] theUd, int theUdLength) { setUserDataHeaders(theUdhIeis); setUserData(theUd, theUdLength); } | 58,603 |
public ByteArrayOutputStream (int size) { buf = new byte[size]; count = 0; } | public ByteArrayOutputStream () { buf = new byte[size]; count = 0; } | 58,604 |
public ByteArrayOutputStream (int size) { buf = new byte[size]; count = 0; } | public ByteArrayOutputStream (int size) { buf = new byte[size]; count = 0; } | 58,605 |
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) { throw new UnsupportedOperationException("not implemented"); } | public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) { throw new UnsupportedOperationException("not implemented"); } | 58,606 |
public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) { throw new UnsupportedOperationException("not implemented"); } | public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) { context.fillPolygon(xPoints, yPoints, nPoints, translateX, translateY); } | 58,607 |
public boolean contains(Rectangle r) { return width > 0 && height > 0 && r.width > 0 && r.height > 0 && r.x >= x && r.x + r.width <= x + width && r.y >= y && r.y + r.height <= y + height; } | public boolean contains(Point p) { return width > 0 && height > 0 && r.width > 0 && r.height > 0 && r.x >= x && r.x + r.width <= x + width && r.y >= y && r.y + r.height <= y + height; } | 58,608 |
public boolean contains(Rectangle r) { return width > 0 && height > 0 && r.width > 0 && r.height > 0 && r.x >= x && r.x + r.width <= x + width && r.y >= y && r.y + r.height <= y + height; } | public boolean contains(Rectangle r) { return width > 0 && height > 0 && r.width > 0 && r.height > 0 && r.x >= x && r.x + r.width <= x + width && r.y >= y && r.y + r.height <= y + height; } | 58,609 |
Class defineClass(String name, byte[] data) { return (defineClass(name, data, 0, data.length));} | Class defineClass(String name, byte[] data) { return (defineClass(name, data, 0, data.length));} | 58,610 |
public static String getClassAnnotation(Class cl) { return (null); // We don't yet do this.} | public static String getClassAnnotation(Class cl) { return (null); // We don't yet do this.} | 58,611 |
public static Object getSecurityContext(ClassLoader loader) { throw new Error("Not implemented");} | public static Object getSecurityContext(ClassLoader loader) { throw new Error("Not implemented");} | 58,612 |
public static Class loadClass(String name) throws MalformedURLException, ClassNotFoundException { return (loadClass(System.getProperty("java.rmi.server.codebase"), name));} | public static Class loadClass(String name) throws MalformedURLException, ClassNotFoundException { return (loadClass(System.getProperty("java.rmi.server.codebase"), name));} | 58,613 |
protected final Class defineClass(String name, byte[] data, int off, int len) throws ClassFormatError { return defineClass (name, data, off, len, defaultProtectionDomain); } | protected final Class defineClass(byte[] data, int off, int len) throws ClassFormatError { return defineClass (name, data, off, len, defaultProtectionDomain); } | 58,614 |
protected final Class defineClass(String name, byte[] data, int off, int len) throws ClassFormatError { return defineClass (name, data, off, len, defaultProtectionDomain); } | protected final Class defineClass(String name, byte[] data, int off, int len) throws ClassFormatError { return defineClass (null, data, off, len, defaultProtectionDomain); } | 58,615 |
public NSMutableDictionary currentErrorDictionary() { Object o = d2wContext().valueForKey("object"); int index = displayGroup().allObjects().indexOfObject(o); return ((index==0) ? (NSMutableDictionary) new NSMutableDictionary() : (NSMutableDictionary)errorMessagesDictionaries().objectAtIndex(in... | public NSMutableDictionary currentErrorDictionary() { Object o = d2wContext().valueForKey("object"); int index = displayGroup().allObjects().indexOfObject(o); return ((index==0) ? (NSMutableDictionary) new NSMutableDictionary() : (NSMutableDictionary)errorMessagesDictionaries().objectAtIndex(in... | 58,616 |
public EOEditingContext editingContext() { EOEnterpriseObject eo=(EOEnterpriseObject)displayGroup().allObjects().objectAtIndex(0); return eo.editingContext(); } | public EOEditingContext editingContext() { EOEnterpriseObject eo=(EOEnterpriseObject)displayGroup().allObjects().objectAtIndex(0); return eo.editingContext(); } | 58,617 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.