bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public int getSelectionEnd() { // TODO: Figure out what should be returned here, because JLabels don't // allow selection. I guess -1 for now. return -1; }
public int getSelectionEnd() { // TODO: Figure out what should be returned here, because JLabels don't // allow selection. I guess -1 for now. return -1; }
38,359
public int getSelectionStart() { // TODO: Figure out what should be returned here, because JLabels don't // allow selection. I guess -1 for now. return -1; }
public int getSelectionStart() { // TODO: Figure out what should be returned here, because JLabels don't // allow selection. I guess -1 for now. return -1; }
38,360
public JLabel() { this(null, null, LEADING); }
public JLabel() { this("", null, LEADING); }
38,361
protected String paramString() { return "JLabel"; }
protected String paramString() { return super.paramString(); }
38,362
private Dimension calcCompSize(Component comp, int what) { if (comp == null || !comp.isVisible()) return new Dimension(0, 0); if (what == MIN) return comp.getMinimumSize(); else if (what == MAX) return comp.getMaximumSize(); return comp.getPreferredSize(); }
private Dimension calcCompSize(Component comp, int what) { if (comp == null || ! comp.isVisible()) return new Dimension(0, 0); if (what == MIN) return comp.getMinimumSize(); else if (what == MAX) return comp.getMaximumSize(); return comp.getPreferredSize(); }
38,365
private Dimension calcSize(Container target, int what) { synchronized (target.getTreeLock ()) { Insets ins = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east...
private Dimension calcSize(Container target, int what) { synchronized (target.getTreeLock()) { Insets ins = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east ...
38,366
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
38,367
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
38,368
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
38,369
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
38,370
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
38,371
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
38,372
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
38,373
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
public void layoutContainer(Container target) { synchronized (target.getTreeLock ()) { Insets i = target.getInsets(); ComponentOrientation orient = target.getComponentOrientation (); boolean left_to_right = orient.isLeftToRight (); Component my_north = north; Component my_east = east; ...
38,374
public boolean isCellEditable(EventObject event) { if (event == null || !(event instanceof MouseEvent)) return true; //Todo: if the right number of clicks has occured, return true; return false; } // isCellEditable()
public boolean isCellEditable(EventObject event) { if (event == null || !(event instanceof MouseEvent) || (((MouseEvent) event).getClickCount() >= getClickCountToStart())) return true; //Todo: if the right number of clicks has occured, return true; return false; } // isCellEditable()
38,376
public boolean isCellEditable(EventObject event) { if (event == null || !(event instanceof MouseEvent)) return true; //Todo: if the right number of clicks has occured, return true; return false; } // isCellEditable()
public boolean isCellEditable(EventObject event){if (event == null || !(event instanceof MouseEvent))return true;//Todo: if the right number of clicks has occured, return true;return false; } // isCellEditable()
38,377
protected EnumSyntax[] getEnumValueTable() { // FIXME return null; }
protected EnumSyntax[] getEnumValueTable() { // FIXME return enumValueTable; }
38,378
protected String[] getStringTable() { // FIXME return null; }
protected String[] getStringTable() { // FIXME return stringTable; }
38,379
public InputStream getErrorStream() { if (! connected) return (null); int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return (null); if (((code / 100) != 4) || ((code / 100) != 5)) return (null); ...
public InputStream getErrorStream() { if (! connected) return null; int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return null; if (((code / 100) != 4) || ((code / 100) != 5)) return null; try ...
38,380
public InputStream getErrorStream() { if (! connected) return (null); int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return (null); if (((code / 100) != 4) || ((code / 100) != 5)) return (null); ...
public InputStream getErrorStream() { if (! connected) return null; int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return null; if (((code / 100) != 4) || ((code / 100) != 5)) return null; try ...
38,381
public InputStream getErrorStream() { if (! connected) return (null); int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return (null); if (((code / 100) != 4) || ((code / 100) != 5)) return (null); ...
public InputStream getErrorStream() { if (! connected) return null; int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return null; if (((code / 100) != 4) || ((code / 100) != 5)) return null; try ...
38,382
public InputStream getErrorStream() { if (! connected) return (null); int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return (null); if (((code / 100) != 4) || ((code / 100) != 5)) return (null); ...
public InputStream getErrorStream() { if (! connected) return null; int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return null; if (((code / 100) != 4) || ((code / 100) != 5)) return null; try ...
38,383
public InputStream getErrorStream() { if (! connected) return (null); int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return (null); if (((code / 100) != 4) || ((code / 100) != 5)) return (null); ...
public InputStream getErrorStream() { if (! connected) return (null); int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return (null); if (((code / 100) != 4) || ((code / 100) != 5)) return (null); ...
38,384
public InputStream getErrorStream() { if (! connected) return (null); int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return (null); if (((code / 100) != 4) || ((code / 100) != 5)) return (null); ...
public InputStream getErrorStream() { if (! connected) return null; int code; try { code = getResponseCode(); } catch (IOException e) { code = -1; } if (code == -1) return null; if (((code / 100) != 4) || ((code / 100) != 5)) return null; try ...
38,385
public int compareTo(Object obj) throws ClassCastException { return 0; }
public int compareTo(Object obj) throws ClassCastException { return 0; }
38,386
public int compareTo(Object obj) throws ClassCastException { return 0; }
public int compareTo(Object obj) throws ClassCastException { return 0; }
38,387
private static String getURIGroup(Matcher match, int group) { String matched = match.group(group); return matched.length() == 0 ? null : matched; }
private static String getURIGroup(Matcher match, int group) { String matched = match.group(group); return matched.length() == 0 ? ((match.group(group - 1).length() == 0) ? null : "") : matched; }
38,389
public int hashCode() { return 0; }
public int hashCode() { return 0; }
38,390
public URI normalize() { return null; }
public URI normalize() { return null; }
38,391
public URI parseServerAuthority() throws URISyntaxException { return null; }
public URI parseServerAuthority() throws URISyntaxException { return null; }
38,392
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = matcher.group(SCHEME_SPEC_PART_GROUP); schemeSpecificPar...
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = matcher.group(SCHEME_SPEC_PART_GROUP); schemeSpecificPar...
38,393
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = matcher.group(SCHEME_SPEC_PART_GROUP); schemeSpecificPar...
private void parseURI(String str) throws URISyntaxException { Pattern pattern = Pattern.compile(URI_REGEXP); Matcher matcher = pattern.matcher(str); if (matcher.matches()) { scheme = getURIGroup(matcher, SCHEME_GROUP); rawSchemeSpecificPart = matcher.group(SCHEME_SPEC_PART_GROUP); schemeSpecificPar...
38,394
private static String quote(String str) { // FIXME: unimplemented. return str; }
private static String quote(String str) { // FIXME: unimplemented. return quote(str, RFC3986_SSP); }
38,395
private static String quoteAuthority(String str) { // Technically, we should be using RFC2396_AUTHORITY, but // it contains no additional characters. return quote(str, RFC2396_REG_NAME); }
private static String quoteAuthority(String str) { // Technically, we should be using RFC2396_AUTHORITY, but // it contains no additional characters. return quote(str, RFC3986_REG_NAME); }
38,396
private static String quoteHost(String str) { // FIXME: unimplemented. return str; }
private static String quoteHost(String str) { // FIXME: unimplemented. return str; }
38,397
private static String quotePath(String str) { // Technically, we should be using RFC2396_PATH, but // it contains no additional characters. return quote(str, RFC2396_PATH_SEGMENTS); }
private static String quotePath(String str) { // Technically, we should be using RFC2396_PATH, but // it contains no additional characters. return quote(str, RFC2396_PATH_SEGMENTS); }
38,398
private static String quoteUserInfo(String str) { // FIXME: unimplemented. return str; }
private static String quoteUserInfo(String str) { // FIXME: unimplemented. return quote(str, RFC3986_USERINFO); }
38,399
public URI relativize(URI uri) { return null; }
public URI relativize(URI uri) { return null; }
38,400
public URI resolve(URI uri) { if (uri.isAbsolute()) return uri; if (uri.isOpaque()) return uri; String scheme = uri.getScheme(); String schemeSpecificPart = uri.getSchemeSpecificPart(); String authority = uri.getAuthority(); String path = uri.getPath(); String query = uri.getQuery(); ...
public URI resolve(URI uri) { if (uri.isAbsolute()) return uri; if (uri.isOpaque()) return uri; String scheme = uri.getScheme(); String schemeSpecificPart = uri.getSchemeSpecificPart(); String authority = uri.getAuthority(); String path = uri.getPath(); String query = uri.getQuery(); ...
38,401
public URI resolve(URI uri) { if (uri.isAbsolute()) return uri; if (uri.isOpaque()) return uri; String scheme = uri.getScheme(); String schemeSpecificPart = uri.getSchemeSpecificPart(); String authority = uri.getAuthority(); String path = uri.getPath(); String query = uri.getQuery(); ...
public URI resolve(URI uri) { if (uri.isAbsolute()) return uri; if (uri.isOpaque()) return uri; String scheme = uri.getScheme(); String schemeSpecificPart = uri.getSchemeSpecificPart(); String authority = uri.getAuthority(); String path = uri.getPath(); String query = uri.getQuery(); ...
38,402
public String toASCIIString() { return ""; }
public String toASCIIString() { return ""; }
38,403
public String toString() { return (getScheme() == null ? "" : getScheme() + ":") + getRawSchemeSpecificPart() + (getRawFragment() == null ? "" : "#" + getRawFragment()); }
public String toString() { return (getScheme() == null ? "" : getScheme() + ":") + getRawSchemeSpecificPart() + (getRawFragment() == null ? "" : "#" + getRawFragment()); }
38,404
private static String unquote(String str) throws URISyntaxException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new URISyntaxException(str, "Invalid character"); if (c == ...
private static String unquote(String str) throws URISyntaxException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new URISyntaxException(str, "Invalid character"); if (c == ...
38,405
private static String unquote(String str) throws URISyntaxException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new URISyntaxException(str, "Invalid character"); if (c == ...
private static String unquote(String str) throws URISyntaxException { if (str == null) return null; byte[] buf = new byte[str.length()]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c > 127) throw new URISyntaxException(str, "Invalid character"); if (c == ...
38,406
public static TypeCode type() { if (typeCode == null) { String[] members = new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE" }; typeCode = Restricted_ORB.Singleton.create_enum_tc(id(), "CompletionStatus", members...
public static TypeCode type() { if (typeCode == null) { String[] members = new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE" }; typeCode = OrbRestricted.Singleton.create_enum_tc(id(), "CompletionStatus", members ...
38,407
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Act...
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashMap actions = new HashMap(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Actio...
38,408
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Act...
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) { Action a = list1[i]; Object name = a.getValue(Action.NAME); actions.put(name != null ? name : "", a); } for (int i = 0; i < list2.length; ++i) actio...
38,409
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Act...
public static final Action[] augmentList(Action[] list1, Action[] list2) { HashSet actionSet = new HashSet(); for (int i = 0; i < list1.length; ++i) actionSet.add(list1[i]); for (int i = 0; i < list2.length; ++i) actionSet.add(list2[i]); ArrayList list = new ArrayList(actionSet); return (Act...
38,410
protected final JTextComponent getTextComponent(ActionEvent event) { if (event.getSource() instanceof JTextComponent) return (JTextComponent) event.getSource(); return getFocusedComponent(); }
protected final JTextComponent getTextComponent(ActionEvent event) { if (event.getSource() instanceof JTextComponent) return (JTextComponent) event.getSource(); return getFocusedComponent(); }
38,411
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities...
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneCo...
38,412
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities...
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); RootPaneContainer rootContainer = (RootPaneContainer) SwingUtilities...
38,413
public char get () { checkForUnderflow(); char result = backing_buffer [position ()]; position (position () + 1); return result; }
public char get () { if (pos >= limit) throw new BufferUnderflowException(); char result = backing_buffer [position ()]; position (position () + 1); return result; }
38,415
public char get () { checkForUnderflow(); char result = backing_buffer [position ()]; position (position () + 1); return result; }
public char get () { checkForUnderflow(); char result = backing_buffer [position ()]; position (position () + 1); return result; }
38,416
public CharBuffer put (char value) { checkIfReadOnly(); backing_buffer [position ()] = value; position (position () + 1); return this; }
public CharBuffer put (char value) { checkIfReadOnly(); backing_buffer [position ()] = value; position (position () + 1); return this; }
38,417
public CharBuffer put (char value) { checkIfReadOnly(); backing_buffer [position ()] = value; position (position () + 1); return this; }
public CharBuffer put (char value) { checkIfReadOnly(); backing_buffer [position ()] = value; position (position () + 1); return this; }
38,418
private Compiler() { }
private Compiler() { }
38,420
public static Object command(Object arg) { // Our implementation defines this to a no-op. return null; }
public static Object command(Object arg) { // Our implementation defines this to a no-op. return null; }
38,421
public static boolean compileClass(Class oneClass) { // Never succeed. return false; }
public static boolean compileClass(Class oneClass) { // Never succeed. return false; }
38,422
public static boolean compileClasses(String classNames) { // Note the incredibly lame interface. Always fail. return false; }
public static boolean compileClasses(String classNames) { // Note the incredibly lame interface. Always fail. return false; }
38,423
public static void disable() { }
public static void disable() { }
38,424
public static void enable() { }
public static void enable() { }
38,425
public SinglePixelPackedSampleModel(int dataType, int w, int h, int[] bitMasks) { this(dataType, w, h, w, bitMasks); }
public SinglePixelPackedSampleModel(int dataType, int w, int h, int[] bitMasks) { this(dataType, w, h, w, bitMasks); }
38,426
public SampleModel createCompatibleSampleModel(int w, int h) { /* FIXME: We can avoid recalculation of bit offsets and sample sizes here by passing these from the current instance to a special private constructor. */ return new SinglePixelPackedSampleModel(dataType, w, h, bitMasks); }
public SampleModel createCompatibleSampleModel(int w, int h) { /* FIXME: We can avoid recalculation of bit offsets and sample sizes here by passing these from the current instance to a special private constructor. */ return new SinglePixelPackedSampleModel(dataType, w, h, bitMasks); }
38,427
public DataBuffer createDataBuffer() { // Important: use scanlineStride here, not width! int size = scanlineStride * height; return Buffers.createBuffer(getDataType(), size); }
public DataBuffer createDataBuffer() { // Important: use scanlineStride here, not width! int size = scanlineStride * height; return Buffers.createBuffer(getDataType(), size); }
38,428
public SampleModel createSubsetSampleModel(int[] bands) { // FIXME: Is this the right way to interpret bands? int numBands = bands.length; int[] bitMasks = new int[numBands]; for (int b = 0; b < numBands; b++) bitMasks[b] = this.bitMasks[bands[b]]; return new SinglePixelPackedSampleModel(dataType, width, height...
public SampleModel createSubsetSampleModel(int[] bands) { // FIXME: Is this the right way to interpret bands? int numBands = bands.length; int[] bitMasks = new int[numBands]; for (int b = 0; b < numBands; b++) bitMasks[b] = this.bitMasks[bands[b]]; return new SinglePixelPackedSampleModel(dataType, width, height...
38,429
public SampleModel createSubsetSampleModel(int[] bands) { // FIXME: Is this the right way to interpret bands? int numBands = bands.length; int[] bitMasks = new int[numBands]; for (int b = 0; b < numBands; b++) bitMasks[b] = this.bitMasks[bands[b]]; return new SinglePixelPackedSampleModel(dataType, width, height...
public SampleModel createSubsetSampleModel(int[] bands) { // FIXME: Is this the right way to interpret bands? int numBands = bands.length; int[] bitMasks = new int[numBands]; for (int b = 0; b < numBands; b++) bitMasks[b] = this.bitMasks[bands[b]]; return new SinglePixelPackedSampleModel(dataType, width, height...
38,430
public SampleModel createSubsetSampleModel(int[] bands) { // FIXME: Is this the right way to interpret bands? int numBands = bands.length; int[] bitMasks = new int[numBands]; for (int b = 0; b < numBands; b++) bitMasks[b] = this.bitMasks[bands[b]]; return new SinglePixelPackedSampleModel(dataType, width, height...
public SampleModel createSubsetSampleModel(int[] bands) { // FIXME: Is this the right way to interpret bands? int numBands = bands.length; int[] bitMasks = new int[numBands]; for (int b = 0; b < numBands; b++) bitMasks[b] = this.bitMasks[bands[b]]; return new SinglePixelPackedSampleModel(dataType, width, height...
38,431
public int[] getBitMasks() { return bitMasks; }
public int[] getBitMasks() { return bitMasks; }
38,432
public int[] getBitOffsets() { return bitOffsets; }
public int[] getBitOffsets() { return bitOffsets; }
38,433
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { int offset = scanlineStride * y + x + data.getOffset(); return Buffers.getData(data, offset, obj, 0, 1); }
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { int offset = scanlineStride * y + x + data.getOffset(); return Buffers.getData(data, offset, obj, 0, 1); }
38,434
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { int offset = scanlineStride * y + x + data.getOffset(); return Buffers.getData(data, offset, obj, 0, 1); }
public Object getDataElements(int x, int y, Object obj, DataBuffer data) { int offset = scanlineStride * y + x + data.getOffset(); return Buffers.getData(data, offset, obj, 0, 1); }
38,435
public int getNumDataElements() { return 1; }
public int getNumDataElements() { return 1; }
38,436
public int getOffset(int x, int y) { return scanlineStride * y + x; }
public int getOffset(int x, int y) { return scanlineStride * y + x; }
38,437
public int[] getPixel(int x, int y, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; if (iArray == null) iArray = new int[numBands]; int samples = data.getElem(offset); for (int b = 0; b < numBands; b++) iArray[b] = (samples & bitMasks[b]) >>> bitOffsets[b]; return iArray; }
public int[] getPixel(int x, int y, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; if (iArray == null) iArray = new int[numBands]; int samples = data.getElem(offset); for (int b = 0; b < numBands; b++) iArray[b] = (samples & bitMasks[b]) >>> bitOffsets[b]; return iArray; }
38,438
public int[] getPixel(int x, int y, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; if (iArray == null) iArray = new int[numBands]; int samples = data.getElem(offset); for (int b = 0; b < numBands; b++) iArray[b] = (samples & bitMasks[b]) >>> bitOffsets[b]; return iArray; }
public int[] getPixel(int x, int y, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; if (iArray == null) iArray = new int[numBands]; int samples = data.getElem(offset); for (int b = 0; b < numBands; b++) iArray[b] = (samples & bitMasks[b]) >>> bitOffsets[b]; return iArray; }
38,439
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
38,440
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
38,441
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
38,442
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
38,443
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; } else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too sho...
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; final int iDataSize = numBands * w * h; if (iArray == null) { iArray = new int[iDataSize]; else { if (iArray.length < iDataSize) { throw new IndexOutOfBoundsException("iArray is too short...
38,444
public int getSample(int x, int y, int b, DataBuffer data) { int offset = scanlineStride * y + x; int samples = data.getElem(offset); return (samples & bitMasks[b]) >>> bitOffsets[b]; }
public int getSample(int x, int y, int b, DataBuffer data) { int offset = scanlineStride * y + x; int samples = data.getElem(offset); return (samples & bitMasks[b]) >>> bitOffsets[b]; }
38,445
public int[] getSampleSize() { return sampleSize; }
public int[] getSampleSize() { return sampleSize; }
38,446
public int getScanlineStride() { return scanlineStride; }
public int getScanlineStride() { return scanlineStride; }
38,447
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = scanlineStride * y + x + data.getOffset(); int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type (" + getTransferType() + "), " + "does not match d...
public void setDataElements(int x, int y, Object obj, DataBuffer data) { int offset = scanlineStride * y + x + data.getOffset(); int transferType = getTransferType(); if (getTransferType() != data.getDataType()) { throw new IllegalArgumentException("transfer type (" + getTransferType() + "), " + "does not match d...
38,448
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; int samples = 0; for (int b = 0; b < numBands; b++) samples |= (iArray[b] << bitOffsets[b]) & bitMasks[b]; //System.out.println("Set pixel x=" + x + ", y=" + y + ", ofs=" + offset + ", sample=" + samples); d...
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; int samples = 0; for (int b = 0; b < numBands; b++) samples |= (iArray[b] << bitOffsets[b]) & bitMasks[b]; //System.out.println("Set pixel x=" + x + ", y=" + y + ", ofs=" + offset + ", sample=" + samples); d...
38,449
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; int samples = 0; for (int b = 0; b < numBands; b++) samples |= (iArray[b] << bitOffsets[b]) & bitMasks[b]; //System.out.println("Set pixel x=" + x + ", y=" + y + ", ofs=" + offset + ", sample=" + samples); d...
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; int samples = 0; for (int b = 0; b < numBands; b++) samples |= (iArray[b] << bitOffsets[b]) & bitMasks[b]; //System.out.println("Set pixel x=" + x + ", y=" + y + ", ofs=" + offset + ", sample=" + samples); d...
38,450
public void setPixel(int x, int y, int[] iArray, DataBuffer data) { int offset = scanlineStride * y + x; int samples = 0; for (int b = 0; b < numBands; b++) samples |= (iArray[b] << bitOffsets[b]) & bitMasks[b]; //System.out.println("Set pixel x=" + x + ", y=" + y + ", ofs=" + offset + ", sample=" + samples); d...
publicvoidsetPixel(intx,inty,int[]iArray,DataBufferdata){ intoffset=scanlineStride*y+x; intsamples=0; for(intb=0;b<numBands;b++) samples|=(iArray[b]<<bitOffsets[b])&bitMasks[b]; //System.out.println("Setpixelx="+x+",y="+y+",ofs="+offset+",sample="+samples); data.setElem(offset,samples); }
38,451
public void setSample(int x, int y, int b, int s, DataBuffer data) { int offset = scanlineStride * y + x; int samples = data.getElem(offset); int bitMask = bitMasks[b]; samples &= ~bitMask; samples |= (s << bitOffsets[b]) & bitMask; data.setElem(offset, samples); }
public void setSample(int x, int y, int b, int s, DataBuffer data) { int offset = scanlineStride * y + x; int samples = data.getElem(offset); int bitMask = bitMasks[b]; samples &= ~bitMask; samples |= (s << bitOffsets[b]) & bitMask; data.setElem(offset, samples); }
38,452
public CommandEnvironment(String cmdpath, String[] argv) { this.cmdpath = cmdpath; this.argv = argv;}
public CommandEnvironment(String cmdpath, String[] argv) { this.cmdpath = cmdpath; this.argv = argv;}
38,453
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
38,454
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
38,455
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
public boolean equals(Object obj) { if (!(obj instanceof CommandEnvironment)) { return (false); } CommandEnvironment that = (CommandEnvironment)obj; if (!this.cmdpath.equals(that.cmdpath)) { return (false); } int len = this.argv.length; if (len != that.argv.length) { return (false); } for (int i = 0; i < len; i++) ...
38,456
public String[] getCommandOptions() { return (argv);}
public String[] getCommandOptions() { return (argv);}
38,457
public String getCommandPath() { return (cmdpath);}
public String getCommandPath() { return (cmdpath);}
38,458
public int hashCode() { return (cmdpath.hashCode()); // Not a very good hash code.}
public int hashCode() { return (cmdpath.hashCode()); // Not a very good hash code.}
38,459
public boolean equals(Object obj) { throw new Error("Not implemented");}
public boolean equals(Object obj) { throw new Error("Not implemented");}
38,460
public String getClassName() { throw new Error("Not implemented");}
public String getClassName() { throw new Error("Not implemented");}
38,461
public ActivationGroupDesc.CommandEnvironment getCommandEnvironment() { throw new Error("Not implemented");}
public ActivationGroupDesc.CommandEnvironment getCommandEnvironment() { throw new Error("Not implemented");}
38,462
public MarshalledObject getData() { throw new Error("Not implemented");}
public MarshalledObject getData() { throw new Error("Not implemented");}
38,463
public String getLocation() { throw new Error("Not implemented");}
public String getLocation() { throw new Error("Not implemented");}
38,464