bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]); } ... | private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]); } ... | 31,681 |
private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]); } ... | private void convertColorModelToDefault(int x, int y, int w, int h, ColorModel model, int pixels[], int offset, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[offset + yp * scansize + xp] = makeColorbyDefaultCM(pixels[offset + yp * scansize + xp]); } ... | 31,682 |
public IndexColorModel filterIndexColorModel(IndexColorModel icm) { int len = icm.getMapSize(), rgb; byte reds[] = new byte[len], greens[] = new byte[len], blues[] = new byte[len], alphas[] = new byte[len]; icm.getAlphas(alphas); icm.getReds(reds); icm.getGreens(greens); icm.getBlues(blues); for (int i = 0; i <... | public IndexColorModel filterIndexColorModel(IndexColorModel icm) { int len = icm.getMapSize(), rgb; byte reds[] = new byte[len], greens[] = new byte[len], blues[] = new byte[len], alphas[] = new byte[len]; icm.getAlphas(alphas); icm.getReds(reds); icm.getGreens(greens); icm.getBlues(blues); for (int i = 0; i <... | 31,683 |
public IndexColorModel filterIndexColorModel(IndexColorModel icm) { int len = icm.getMapSize(), rgb; byte reds[] = new byte[len], greens[] = new byte[len], blues[] = new byte[len], alphas[] = new byte[len]; icm.getAlphas(alphas); icm.getReds(reds); icm.getGreens(greens); icm.getBlues(blues); for (int i = 0; i <... | public IndexColorModel filterIndexColorModel(IndexColorModel icm) { int len = icm.getMapSize(), rgb; byte reds[] = new byte[len], greens[] = new byte[len], blues[] = new byte[len], alphas[] = new byte[len]; icm.getAlphas(alphas); icm.getReds(reds); icm.getGreens(greens); icm.getBlues(blues); for (int i = 0; i <... | 31,684 |
public IndexColorModel filterIndexColorModel(IndexColorModel icm) { int len = icm.getMapSize(), rgb; byte reds[] = new byte[len], greens[] = new byte[len], blues[] = new byte[len], alphas[] = new byte[len]; icm.getAlphas(alphas); icm.getReds(reds); icm.getGreens(greens); icm.getBlues(blues); for (int i = 0; i <... | public IndexColorModel filterIndexColorModel(IndexColorModel icm) { int len = icm.getMapSize(), rgb; byte reds[] = new byte[len], greens[] = new byte[len], blues[] = new byte[len], alphas[] = new byte[len]; icm.getAlphas(alphas); icm.getReds(reds); icm.getGreens(greens); icm.getBlues(blues); for (int i = 0; i <... | 31,685 |
public abstract int filterRGB(int x, int y, int rgb); | public abstract int filterRGB(int x, int y, int rgb); | 31,686 |
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]); } } } | public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]); } } } | 31,687 |
public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]); } } } | public void filterRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize) { int xp, yp; for (xp = x; xp < (x + w); xp++) { for (yp = y; yp < (y + h); yp++) { pixels[off + yp * scansize + xp] = filterRGB(xp, yp, pixels[off + yp * scansize + xp]); } } } | 31,688 |
private int makeColor(byte a, byte r, byte g, byte b) { return (0xff000000 & (a << 24) | 0xff0000 & (r << 16) | 0xff00 & (b << 8) | 0xff & g); } | private int makeColor(byte a, byte r, byte g, byte b) { return (0xff000000 & (a << 24) | 0xff0000 & (r << 16) | 0xff00 & (b << 8) | 0xff & g); } | 31,689 |
private int makeColorbyDefaultCM(int rgb) { return makeColor(origmodel.getRed(rgb), origmodel.getGreen(rgb), origmodel.getGreen(rgb), origmodel.getBlue(rgb)); } | private int makeColorbyDefaultCM(int rgb) { return makeColor(origmodel.getRed(rgb), origmodel.getGreen(rgb), origmodel.getGreen(rgb), origmodel.getBlue(rgb)); } | 31,690 |
public void setColorModel(ColorModel model) { origmodel = model; newmodel = model; if ((model instanceof IndexColorModel) && canFilterIndexColorModel) { newmodel = filterIndexColorModel((IndexColorModel) model); } } | public void setColorModel(ColorModel model) { origmodel = model; newmodel = model; if ((model instanceof IndexColorModel) && canFilterIndexColorModel) { newmodel = filterIndexColorModel((IndexColorModel) model); } } | 31,691 |
public void setColorModel(ColorModel model) { origmodel = model; newmodel = model; if ((model instanceof IndexColorModel) && canFilterIndexColorModel) { newmodel = filterIndexColorModel((IndexColorModel) model); } } | public void setColorModel(ColorModel model) { origmodel = model; newmodel = model; if ((model instanceof IndexColorModel) && canFilterIndexColorModel) { newmodel = filterIndexColorModel((IndexColorModel) model); } } | 31,692 |
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if (model == origmodel) { consumer.setPixels(x, y, w, h, newmodel, pixels, offset, scansize); } else { //FIXME //convert to proper CM int pixelsi[] = new int[pixels.length / 4]; filterRGBPixels(x,... | public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if (model == origmodel) { consumer.setPixels(x, y, w, h, newmodel, pixels, offset, scansize); } else { //FIXME //convert to proper CM int pixelsi[] = new int[pixels.length / 4]; filterRGBPixels(x,... | 31,693 |
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if (model == origmodel) { consumer.setPixels(x, y, w, h, newmodel, pixels, offset, scansize); } else { //FIXME //convert to proper CM int pixelsi[] = new int[pixels.length / 4]; filterRGBPixels(x,... | public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { if (model == origmodel) { consumer.setPixels(x, y, w, h, newmodel, pixels, offset, scansize); } else { //FIXME //convert to proper CM int pixelsi[] = new int[pixels.length / 4]; filterRGBPixels(x,... | 31,694 |
public void substituteColorModel(ColorModel oldcm, ColorModel newcm) { origmodel = oldcm; newmodel = newcm; } | public void substituteColorModel(ColorModel oldcm, ColorModel newcm) { origmodel = oldcm; newmodel = newcm; } | 31,695 |
protected String getPropertyPrefix() { return null; } | protected String getPropertyPrefix() { return "CheckBoxMenuItem"; } | 31,696 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); if (Configuration.DEBUG) log.fine("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncoding... | 31,697 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,698 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,699 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,700 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,701 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,702 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,703 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,704 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | } } public} SignerInfo(BERReader} ber)} throws} IOException} } {} } } } DERValue} val} =} ber.read();} } } } log.finest("SignerInfo:} "} +} val);} } } } if} (!val.isConstructed())} } } } } } throw} new} BEREncodingException("malformed} SignerInfo");} } } } val} =} ber.read();} } } } if} (val.getTag()} !=} BER.INTEGER)}... | 31,705 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,706 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | } } public} SignerInfo(BERReader} ber)} throws} IOException} } {} } } } DERValue} val} =} ber.read();} } } } log.finest("SignerInfo:} "} +} val);} } } } if} (!val.isConstructed())} } } } } } throw} new} BEREncodingException("malformed} SignerInfo");} } } } val} =} ber.read();} } } } if} (val.getTag()} !=} BER.INTEGER)}... | 31,707 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,708 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,709 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,710 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | } } public} SignerInfo(BERReader} ber)} throws} IOException} } {} } } } DERValue} val} =} ber.read();} } } } log.finest("SignerInfo:} "} +} val);} } } } if} (!val.isConstructed())} } } } } } throw} new} BEREncodingException("malformed} SignerInfo");} } } } val} =} ber.read();} } } } if} (val.getTag()} !=} BER.INTEGER)}... | 31,711 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,712 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | 31,713 |
public SignerInfo(BERReader ber) throws IOException { DERValue val = ber.read(); log.finest("SignerInfo: " + val); if (!val.isConstructed()) throw new BEREncodingException("malformed SignerInfo"); val = ber.read(); if (val.getTag() != BER.INTEGER) throw new BEREncodingException("malformed Ve... | } } public} SignerInfo(BERReader} ber)} throws} IOException} } {} } } } DERValue} val} =} ber.read();} } } } log.finest("SignerInfo:} "} +} val);} } } } if} (!val.isConstructed())} } } } } } throw} new} BEREncodingException("malformed} SignerInfo");} } } } val} =} ber.read();} } } } if} (val.getTag()} !=} BER.INTEGER)}... | 31,714 |
public final void stop() throws PluginException { if (started) { stopPlugin(); started = false; } } | public final void stop() throws PluginException { if (started) { stopPlugin(); started = false; } } | 31,715 |
public final Class getCategory() { return Finishings.class; } | public Class getCategory() { return Finishings.class; } | 31,716 |
public final String getName() { return "finishings"; } | public String getName() { return "finishings"; } | 31,717 |
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte... | protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte... | 31,718 |
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte... | protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out) { // TODO: Optimize this in the case in.hasArray() / out.hasArray() int inPos = in.position (); try { while (in.remaining () >= 2) { byte b1 = in.get (); byte b2 = in.get (); // handle byte... | 31,719 |
public void setDimensions(int width, int height) { consumer.setDimensions(width, height); } | public void setDimensions(int width, int height) { srcWidth = width; srcHeight = height; /* If either destHeight or destWidth is < 0, the image should maintain its original aspect ratio. When both are < 0, just maintain the original width and height. */ if (destWidth < 0 && destHeight < 0) { destWidth = width;... | 31,720 |
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { consumer.setPixels(x, y, w, h, model, pixels, offset, scansize); } | public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int offset, int scansize) { double rx = ((double) srcWidth) / destWidth; double ry = ((double) srcHeight) / destHeight; int destScansize = (int) Math.round(scansize / rx); byte[] destPixels = replicatePixels(x, y, w, h, mode... | 31,721 |
public static Object getInstance(String type) throws InternalError { String propertyName = "javax.rmi.CORBA." + type + "Class"; String dcname = System.getProperty(propertyName); if (dcname == null) { // // No javax.rmi.CORBA.XXXClass property sepcified. dcname = "gnu.javax.rmi.CORBA." + type ... | public static Object getInstance(String type) throws InternalError { String propertyName = "javax.rmi.CORBA." + type + "Class"; String dcname = System.getProperty(propertyName); if (dcname == null) { // // No javax.rmi.CORBA.XXXClass property sepcified. dcname = "gnu.javax.rmi.CORBA." + type ... | 31,722 |
private int writeParents() throws IOException { int parents; String path = prefs.absolutePath(); int lastslash = path.lastIndexOf("/"); if (lastslash > 0) { path = path.substring(1, lastslash); StringTokenizer st = new StringTokenizer(path); parents = st.... | private int writeParents() throws IOException { int parents; String path = prefs.absolutePath(); int lastslash = path.lastIndexOf("/"); if (lastslash > 0) { path = path.substring(1, lastslash); StringTokenizer st = new StringTokenizer(path); parents = st.... | 31,724 |
private String name(int set) { return "0x" + Integer.toHexString(set) + " (" + CharSets_OSF.getName(set) + ") "; } | private String name(int set) { return "0x" + Integer.toHexString(set) + " (" + CharSets_OSF.getName(set) + ") "; } | 31,725 |
public String toString() { StringBuffer b = new StringBuffer(); b.append("native " + name(native_set)); if (conversion != null && conversion.length > 0) { b.append(" conversion "); for (int i = 0; i < conversion.length; i++) { b.... | public String toString() { StringBuffer b = new StringBuffer(); b.append("native " + name(native_set)); if (conversion != null && conversion.length > 0) { b.append(" conversion "); for (int i = 0; i < conversion.length; i++) { b.... | 31,726 |
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | 31,728 |
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1 + profiles.size()); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the ... | 31,729 |
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | 31,730 |
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | 31,731 |
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | 31,732 |
public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | public void _write_no_endian(cdrOutput out) { try { // Write repository id. out.write_string(Id); // Always one profile. out.write_long(1); // It is the Internet profile. out.write_long(Internet_profile.TAG_INTERNET_IOP); // Need to write the Internet profile ... | 31,733 |
public static IOR parse(String stringified_reference) throws BAD_PARAM { try { if (!stringified_reference.startsWith("IOR:")) throw new BAD_PARAM("The string refernce must start with IOR:", FAILED, CompletionStatus.COMPLETED_NO ... | public static IOR parse(String stringified_reference) throws BAD_PARAM { try { if (!stringified_reference.startsWith("IOR:")) throw new BAD_PARAM("The string refernce must start with IOR:", FAILED, CompletionStatus.COMPLETED_NO ... | 31,734 |
public static IOR parse(String stringified_reference) throws BAD_PARAM { try { if (!stringified_reference.startsWith("IOR:")) throw new BAD_PARAM("The string refernce must start with IOR:", FAILED, CompletionStatus.COMPLETED_NO ... | public static IOR parse(String stringified_reference) throws BAD_PARAM { try { if (!stringified_reference.startsWith("IOR:")) throw new BAD_PARAM("The string refernce must start with IOR:", FAILED, CompletionStatus.COMPLETED_NO ... | 31,735 |
public String toString() { StringBuffer b = new StringBuffer(); b.append(Id); b.append(" at "); b.append(Internet); if (!Big_Endian) b.append(" (Little endian) "); b.append(" Key "); for (int i = 0; i < key.length; i++) { b.append(Integer.toHexString(key [ i ] & 0xFF)); } ... | public String toString() { StringBuffer b = new StringBuffer(); b.append(Id); b.append(" at "); b.append(Internet); if (!Big_Endian) b.append(" (Little endian) "); b.append(" Key "); for (int i = 0; i < key.length; i++) { b.append(Integer.toHexString(key[i] & 0xFF)); } b... | 31,736 |
public String toString() { StringBuffer b = new StringBuffer(); b.append(Id); b.append(" at "); b.append(Internet); if (!Big_Endian) b.append(" (Little endian) "); b.append(" Key "); for (int i = 0; i < key.length; i++) { b.append(Integer.toHexString(key [ i ] & 0xFF)); } ... | public String toString() { StringBuffer b = new StringBuffer(); b.append(Id); b.append(" at "); b.append(Internet); if (!Big_Endian) b.append(" (Little endian) "); b.append(" Key "); for (int i = 0; i < key.length; i++) { b.append(Integer.toHexString(key [ i ] & 0xFF)); } ... | 31,737 |
public String toStringifiedReference() { cdrBufOutput out = new cdrBufOutput(); _write(out); StringBuffer b = new StringBuffer("IOR:"); byte[] binary = out.buffer.toByteArray(); String s; for (int i = 0; i < binary.length; i++) { s = Integer.toHexString(binary [ i ] & 0xFF); if (... | public String toStringifiedReference() { cdrBufOutput out = new cdrBufOutput(); _write(out); StringBuffer b = new StringBuffer("IOR:"); byte[] binary = out.buffer.toByteArray(); String s; for (int i = 0; i < binary.length; i++) { s = Integer.toHexString(binary[i] & 0xFF); if (s.l... | 31,738 |
public boolean isFocusTraversable() { return false; } | public boolean isFocusTraversable() { return !comboBox.isEditable() && comboBox.isEnabled(); } | 31,739 |
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ... | public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ... | 31,740 |
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ... | public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ... | 31,741 |
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ... | public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ... | 31,742 |
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ... | public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ... | 31,743 |
public boolean equals(DataFlavor flavor) { if (flavor == null) return false; if (! this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return false; if (! this.representationClass.equals(flavor.representationClass)) return false; return true; } | public boolean equals(DataFlavor flavor) { if (flavor == null) return false; String primary = getPrimaryType(); if (! primary.equals(flavor.getPrimaryType())) return false; String sub = getSubType(); if (! sub.equals(flavor.getSubType())) return false; if (! this.representationClass.equals(flavor.r... | 31,744 |
private static String getParameter(String paramName, String mimeString) { int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(" "); if (idx == -1) return(value); else re... | private static String getParameter(String paramName, String mimeString) { int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(";"); if (idx == -1) return(value); else re... | 31,746 |
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna... | private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna... | 31,747 |
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna... | private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return getRepresentationClass... | 31,748 |
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna... | private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna... | 31,749 |
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna... | private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna... | 31,750 |
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna... | private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classna... | 31,751 |
public boolean isFlavorJavaFileListType() { if (mimeType.equals(javaFileListFlavor.mimeType) && representationClass.equals(javaFileListFlavor.representationClass)) return true; return false ; } | public boolean isFlavorJavaFileListType() { if (mimeType.equals(javaFileListFlavor.mimeType) && representationClass.equals(javaFileListFlavor.representationClass)) return true; return false ; } | 31,752 |
public boolean isRepresentationClassInputStream() { return representationClass.getName().equals("java.io.InputStream"); } | public boolean isRepresentationClassInputStream() { return InputStream.class.isAssignableFrom(representationClass); } | 31,753 |
public boolean isRepresentationClassSerializable() { Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return true; ++i; } return false; } | public boolean isRepresentationClassSerializable() { Class[] interfaces = representationClass.getInterfaces(); int i = 0; while (i < interfaces.length) { if (interfaces[i].getName().equals("java.io.Serializable")) return true; ++i; } return false; } | 31,754 |
public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map vmFiles = scanJavaFiles(vmDirs); final Map classpathFiles = scanJavaFiles(classpathDirs); final TreeSet allFiles = new TreeSet(); final TreeM... | public void execute() { if (destDir == null) { throw new BuildException("The destdir attribute must be set"); } final Map vmFiles = scanJavaFiles(vmDirs); final Map classpathFiles = scanJavaFiles(classpathDirs); final TreeSet allFiles = new TreeSet(); allF... | 31,755 |
public TextLayout (String string, Font font, FontRenderContext frc) { AttributedString as = new AttributedString (string); as.addAttribute (TextAttribute.FONT, font); ClasspathToolkit tk = (ClasspathToolkit)(Toolkit.getDefaultToolkit ()); peer = tk.getClasspathTextLayoutPeer(as, frc); } | public TextLayout (String string, Font font, FontRenderContext frc) { AttributedString as = new AttributedString (string); as.addAttribute (TextAttribute.FONT, font); ClasspathToolkit tk = (ClasspathToolkit)(Toolkit.getDefaultToolkit ()); peer = tk.getClasspathTextLayoutPeer(as, frc); } | 31,756 |
public String getFileName() { // FIXME: I'm thinking that this method just provides access to the // text value in the JTextField component...but not sure yet return null; //filename; } | public String getFileName() { // FIXME: I'm thinking that this method just provides access to the // text value in the JTextField component...but not sure yet return entry.getText(); //filename; } | 31,758 |
public void mouseMoved(MouseEvent event) { currentPoint = event.getPoint(); if (currentTip != null) currentTip.setTipText(((JComponent) currentComponent).getToolTipText(event)); if (enterTimer.isRunning()) enterTimer.restart(); } | public void mouseMoved(MouseEvent event) { currentPoint = event.getPoint(); if (currentTip != null) { if (currentComponent == null) currentComponent = (Component) event.getSource(); String text = ((JComponent) currentComponent).getToolTipText(event); currentTip.setTipText(text); } if (enterTimer.isRun... | 31,759 |
private void showTip() { if (! enabled) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension dims = currentTip.getP... | private void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dime... | 31,760 |
public MetalToggleButtonUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); focusColor = defaults.getColor(getPropertyPrefix() + "focus"); selectColor = defaults.getColor(getPropertyPrefix() + "select"); disabledTextColor = defaults.getColor(getPropertyPrefix() + "disabledText");... | public MetalToggleButtonUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); focusColor = defaults.getColor(getPropertyPrefix() + "focus"); selectColor = defaults.getColor(getPropertyPrefix() + "select"); disabledTextColor = defaults.getColor(getPropertyPrefix() + "disabledText");... | 31,761 |
public void installDefaults(AbstractButton b) { // FIXME: for now, this override just changes the visibility of the method // in the super-class, to satisfy japi...but there must be something else. super.installDefaults(b); } | public void installDefaults(AbstractButton b){// FIXME: for now, this override just changes the visibility of the method// in the super-class, to satisfy japi...but there must be something else.super.installDefaults(b);} | 31,762 |
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException { // FIXME: implement this return null; } | public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException { // FIXME: implement this return null; } | 31,765 |
public DataFlavor[] getTransferDataFlavors() { // FIXME: implement this return null; } | public DataFlavor[] getTransferDataFlavors() { // FIXME: implement this return null; } | 31,766 |
public boolean isDataFlavorSupported(DataFlavor flavor) { // FIXME: implement this return false; } | public boolean isDataFlavorSupported(DataFlavor flavor) { // FIXME: implement this return false; } | 31,767 |
protected void acceptDrag(int dragOperation) { // FIXME: implement this } | protected void acceptDrag(int dragOperation) { // FIXME: implement this } | 31,768 |
protected void acceptDrop(int dropOperation) { // FIXME: implement this } | protected void acceptDrop(int dropOperation) { // FIXME: implement this } | 31,769 |
public void addNotify(java.awt.dnd.peer.DropTargetContextPeer dtcp) { // FIXME: implement this } | public void addNotify(java.awt.dnd.peer.DropTargetContextPeer dtcp) { // FIXME: implement this } | 31,770 |
protected Transferable createTransferableProxy(Transferable t, boolean local) { // FIXME: implement this return null; } | protected Transferable createTransferableProxy(Transferable t, boolean local) { // FIXME: implement this return null; } | 31,771 |
public void dropComplete(boolean success) { // FIXME: implement this } | public void dropComplete(boolean success) { // FIXME: implement this } | 31,772 |
public Component getComponent() { // FIXME: implement this return null; } | public Component getComponent() { // FIXME: implement this return null; } | 31,773 |
protected DataFlavor[] getCurrentDataFlavors() { // FIXME: implement this return null; } | protected DataFlavor[] getCurrentDataFlavors() { // FIXME: implement this return null; } | 31,774 |
protected List getCurrentDataFlavorsAsList() { // FIXME: implement this return null; } | protected List getCurrentDataFlavorsAsList() { // FIXME: implement this return null; } | 31,775 |
public DropTarget getDropTarget() { // FIXME: implement this return null; } | public DropTarget getDropTarget() { // FIXME: implement this return null; } | 31,776 |
protected int getTargetActions() { return targetActions; } | protected int getTargetActions() { return targetActions; } | 31,777 |
protected Transferable getTransferable() throws InvalidDnDOperationException { // FIXME: implement this return null; } | protected Transferable getTransferable() throws InvalidDnDOperationException { // FIXME: implement this return null; } | 31,778 |
protected boolean isDataFlavorSupported(DataFlavor flavor) { // FIXME: implement this return false; } | protected boolean isDataFlavorSupported(DataFlavor flavor) { // FIXME: implement this return false; } | 31,779 |
protected void rejectDrag() { // FIXME: implement this } | protected void rejectDrag() { // FIXME: implement this } | 31,780 |
protected void rejectDrop() { // FIXME: implement this } | protected void rejectDrop() { // FIXME: implement this } | 31,781 |
public void removeNotify() { // FIXME: implement this } | public void removeNotify() { // FIXME: implement this } | 31,782 |
protected void setTargetActions(int actions) { targetActions = actions; } | protected void setTargetActions(int actions) { targetActions = actions; } | 31,783 |
void setBoundsForFrame(JComponent frame, int x, int y, int width, int height); | void setBoundsForFrame(JComponent frame, int x, int y, int width, int height); | 31,784 |
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalScrollPaneUI(); return instance; } | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalScrollPaneUI(); return instance; } | 31,785 |
protected EditorDelegate(DefaultCellEditor editor) { // TODO } // EditorDelegate() | protected EditorDelegate(DefaultCellEditor editor) { // TODO } // EditorDelegate() | 31,786 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.