bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public int charsWidth(char buf[], int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth(buf[i]); return (total_width); } | public int charsWidth(char buf[], int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width = charWidth(buf[i]); return (total_width); } | 25,404 |
public int getAscent() { return (1); } | public int getAscent() { return (1); } | 25,405 |
public int getDescent() { return (1); } | public int getDescent() { return (1); } | 25,406 |
public Font getFont() { return (font); } | public Font getFont() { return (font); } | 25,407 |
public int getHeight() { return (getAscent() + getDescent() + getLeading()); } | public int getHeight() { return (getAscent() + getDescent() + getLeading()); } | 25,408 |
public int getLeading() { return (0); } | public int getLeading() { return (0); } | 25,409 |
public int getMaxAdvance() { return (-1); } | public int getMaxAdvance() { return (-1); } | 25,410 |
public int getMaxAscent() { return (getAscent()); } | public int getMaxAscent() { return (getAscent()); } | 25,411 |
public int getMaxDecent() { return (getMaxDescent()); } | public int getMaxDecent() { return (getMaxDescent()); } | 25,412 |
public int getMaxDescent() { return (getDescent()); } | public int getMaxDescent() { return (getDescent()); } | 25,413 |
public int[] getWidths() { return (new int[256]); } | public int[] getWidths() { return (new int[256]); } | 25,414 |
public int stringWidth(String str) { char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return (charsWidth(buf, 0, buf.length)); } | stringWidth(String str) { char[] buf = new char[str.length()]; str.getChars(0, str.length(), buf, 0); return (charsWidth(buf, 0, buf.length)); } | 25,416 |
public String toString() { return (this.getClass() + "[font=" + font + ",ascent=" + getAscent() + ",descent=" + getDescent() + ",height=" + getHeight() + "]"); } | public String toString() { return (this.getClass() + "[font=" + font + ",ascent=" + getAscent() + ",descent=" + getDescent() + ",height=" + getHeight() + "]"); } | 25,417 |
public JRadioButton() { this(null, null); } | public JRadioButton() { this(null, null, false); } | 25,418 |
public AccessibleContext getAccessibleContext() { //Gets the AccessibleContext associated with this JRadioButton. return null; } | public AccessibleContext getAccessibleContext() { //Gets the AccessibleContext associated with this JRadioButton. if (accessibleContext == null) { accessibleContext = new AccessibleJRadioButton(); } return accessibleContext; } | 25,419 |
PlainDocument() { super(new GapContent()); } | public PlainDocument() { super(new GapContent()); } | 25,423 |
PlainDocument() { super(new GapContent()); } | PlainDocument() { super(new GapContent()); } | 25,424 |
SizeRequirements[] getChildRequirements(int axis) { // Allocate SizeRequirements for each child view. int count = getViewCount(); SizeRequirements[] childReqs = new SizeRequirements[count]; for (int i = 0; i < count; ++i) { View view = getView(i); childReqs[i] = new SizeRequirements((i... | private SizeRequirements[] getChildRequirements(int axis) { // Allocate SizeRequirements for each child view. int count = getViewCount(); SizeRequirements[] childReqs = new SizeRequirements[count]; for (int i = 0; i < count; ++i) { View view = getView(i); childReqs[i] = new SizeRequire... | 25,425 |
protected int getOffset(int axis, int childIndex) { if (axis == X_AXIS) return offsetsX[childIndex]; else return offsetsY[childIndex]; } | protected int getOffset(int axis, int childIndex) { if (axis == X_AXIS) return offsetsX[childIndex]; else return offsetsY[childIndex]; } | 25,426 |
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { // Make sure everything is allocated properly and then call super if (!isAllocationValid()) { Rectangle bounds = a.getBounds(); setSize(bounds.width, bounds.height); } return super.model... | public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { // Make sure everything is allocated properly and then call super if (!isAllocationValid()) { Rectangle bounds = a.getBounds(); layout(bounds.width, bounds.height); } return super.modelT... | 25,427 |
public int getDecayTime() { return decayTime; } | public final int getDecayTime() { return decayTime; } | 25,428 |
public int getEarlyReflectionDelay() { return earlyReflectionDelay; } | public final int getEarlyReflectionDelay() { return earlyReflectionDelay; } | 25,429 |
public float getEarlyReflectionIntensity() { return earlyReflectionIntensity; } | public final float getEarlyReflectionIntensity() { return earlyReflectionIntensity; } | 25,430 |
public int getLateReflectionDelay() { return lateReflectionDelay; } | public final int getLateReflectionDelay() { return lateReflectionDelay; } | 25,431 |
public float getLateReflectionIntensity() { return lateReflectionIntensity; } | public final float getLateReflectionIntensity() { return lateReflectionIntensity; } | 25,432 |
public String toString() { return ("name=" + name + "; earlyReflectionDelay=" + earlyReflectionDelay + "; earlyReflectionIntensity=" + earlyReflectionIntensity + "; lateReflectionDelay=" + lateReflectionDelay + "; lateReflectionIntensity=" + lateReflectionIntensity + "; decayTime=" + decayTime); ... | public final String toString() { return ("name=" + name + "; earlyReflectionDelay=" + earlyReflectionDelay + "; earlyReflectionIntensity=" + earlyReflectionIntensity + "; lateReflectionDelay=" + lateReflectionDelay + "; lateReflectionIntensity=" + lateReflectionIntensity + "; decayTime=" + decayTi... | 25,433 |
public FileHandler() throws IOException, SecurityException { this(/* pattern: use configiguration */ null, LogManager.getIntProperty("java.util.logging.FileHandler.limit", /* default */ 0), LogManager.getIntProperty("java.util.logging.FileHandler.count", /* default */ 1), LogManager.getBooleanPr... | public FileHandler() throws IOException, SecurityException { this(/* pattern: use configiguration */ null, LogManager.getIntProperty("java.util.logging.FileHandler.limit", /* default */ 0), LogManager.getIntProperty("java.util.logging.FileHandler.count", /* default */ 1), LogManager.getBooleanPr... | 25,434 |
private OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ LogManager.g... | private OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ LogManager.g... | 25,435 |
private OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ LogManager.g... | private OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ LogManager.g... | 25,436 |
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return super.getPreferredSpan(axis); String text; Element elem = getElement(); try { text = elem.getDocument().... | 25,438 |
private void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX(); int y = me.getY(); // Find the candidate which should receive this event. Component parent = frame.getContentPane(); if (parent == null) return; Component candidate = null; Point p = me.getPoint(); ... | private void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX(); int y = me.getY(); // Find the candidate which should receive this event. Component parent = frame.getContentPane(); if (parent == null) return; Component candidate = null; Point p = me.getPoint(); ... | 25,439 |
private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) { String temp; AttributedCharacterIterator.Attribute attribute; calendar.setTime(date); // go through vector, filling in fields where applicable, else toString Iterator iter = tokens.iterator(); while (iter.hasN... | 25,441 |
public int following (int pos) { int save = iter.getIndex(); iter.setIndex(pos); int r = next (); iter.setIndex(save); return r; } | public int following (int pos) { int save = iter.getIndex(); iter.setIndex(pos); int r = next (); return r; } | 25,442 |
protected URLConnection openConnection(URL url) throws IOException { return (new gnu.java.net.protocol.jar.JarURLConnection(url)); } | protected URLConnection openConnection(URL url) throws IOException { return (new gnu.java.net.protocol.jar.JarURLConnection(url)); } | 25,443 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | 25,444 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | 25,445 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | 25,446 |
protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | protected void parseURL(URL url, String url_string, int start, int end) { // This method does not throw an exception or return a value. Thus our // strategy when we encounter an error in parsing is to return without // doing anything. String file = url.getFile(); if (file != null && file != "") { //has context u... | 25,447 |
public void addSource(Variable source) { sources.add(source); int type = getType(); if (type == UNKNOWN) { setType(source.getType()); Variable v = (Variable) source; varIndex = v.getIndex(); } else if (type != source.getType()) { throw new AssertionError("phi operand source types don't match"); } } | public void addSource(Variable source) { sources.add(source); int type = getType(); if (type == UNKNOWN) { setType(source.getType()); Variable v = source; varIndex = v.getIndex(); } else if (type != source.getType()) { throw new AssertionError("phi operand source types don't match"); } } | 25,448 |
public void exit(int status) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkExit(status); if (runShutdownHooks()) halt(status); // Someone else already called runShutdownHooks(). // Make sure we are not/no longer in the shutdownHooks set. // And... | public void exit(int status) { SecurityManager sm = SecurityManager.current; // Be thread-safe! if (sm != null) sm.checkExit(status); if (runShutdownHooks()) halt(status); // Someone else already called runShutdownHooks(). // Make sure we are not/no longer in the shutdownHooks set. // And... | 25,450 |
public boolean matches (Event event) { // FIXME throw new RuntimeException ("LocationOnlyFilter.matches not implemented"); } | public boolean matches (Event event) { // FIXME return true; } | 25,452 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColumnHeader(e); else if (e.... | public void propertyChange(PropertyChangeEvent e) { String propName = e.getPropertyName(); if (propName.equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColum... | 25,453 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColumnHeader(e); else if (e.... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (propName.equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColumnHeader(e); else if (e.getProperty... | 25,454 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColumnHeader(e); else if (e.... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (propName.equals("columnHeader")) updateColumnHeader(e); else if (e.getProperty... | 25,455 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColumnHeader(e); else if (e.... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("viewport")) updateViewport(e); else if (e.getPropertyName().equals("rowHeader")) updateRowHeader(e); else if (e.getPropertyName().equals("columnHeader")) updateColumnHeader(e); else if (pr... | 25,456 |
private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (input ... | private static BufferedCdrOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (i... | 25,458 |
private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (input ... | private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (input ... | 25,459 |
private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (input ... | private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof BufferredCdrInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (... | 25,460 |
private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { cdrBufInput in = (cdrBufInput) input; bout.setBigEndian(in.isBigEndian()); } if (input ... | private static cdrBufOutput createBuffer(InputStream input, int proposed_size) { cdrBufOutput bout; bout = new cdrBufOutput(2 * proposed_size + 256); if (input instanceof cdrBufInput) { BufferredCdrInput in = (BufferredCdrInput) input; bout.setBigEndian(in.isBigEndian()); } ... | 25,461 |
public static int readNestedValue(int value_tag, InputStream input, cdrBufOutput output, int level) throws IOException { String id = null; if (level < -1) { // For the first level, this information is already behind. output.write_long(value_tag - vf_CHUNKING); // The nested valu... | public static int readNestedValue(int value_tag, InputStream input, BufferedCdrOutput output, int level) throws IOException { String id = null; if (level < -1) { // For the first level, this information is already behind. output.write_long(value_tag - vf_CHUNKING); // The nested... | 25,462 |
public static Serializable readValue(InputStream input, final int position, Object value, BoxedValueHelper helper, String id, String[] ids, String codebase) { gnuRuntime g; gnuValueStream c = ((gnuValueStream) input); if (c.getRunTime() == null) { g = new gnuRuntime(codebase, value); ... | public static Serializable readValue(InputStream input, final int position, Object value, BoxedValueHelper helper, String id, String[] ids, String codebase) { gnuRuntime g; gnuValueStream c = ((gnuValueStream) input); if (c.getRunTime() == null) { g = new gnuRuntime(codebase, value); ... | 25,463 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 25,464 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 25,465 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 25,466 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 25,467 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 25,468 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 25,469 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 25,470 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 25,471 |
static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | static Object read_instance(InputStream input, final int position, Object value, int value_tag, BoxedValueHelper helper, String id, String[] ids, String codebase) { if (helper != m_StringValueHelper && id != null) if (id.equals(StringValueHelper.id())) { value = null; helper = ... | 25,472 |
static void writeValue(OutputStream output, Serializable value, BoxedValueHelper helper) { ((gnuValueStream) output).getRunTime().target = value; if (helper != null) helper.write_value(output, value); else if (!writeSelf(output, value)) { // Try to find helper via class loader. bo... | static void writeValue(OutputStream output, Serializable value, BoxedValueHelper helper) { ((gnuValueStream) output).getRunTime().target = value; if (helper != null) helper.write_value(output, value); else if (!writeSelf(output, value)) { // Try to find helper via class loader. bo... | 25,473 |
static void writeValue(OutputStream output, Serializable value, BoxedValueHelper helper) { ((gnuValueStream) output).getRunTime().target = value; if (helper != null) helper.write_value(output, value); else if (!writeSelf(output, value)) { // Try to find helper via class loader. bo... | static void writeValue(OutputStream output, Serializable value, BoxedValueHelper helper) { ((gnuValueStream) output).getRunTime().target = value; if (helper != null) helper.write_value(output, value); else if (!writeSelf(output, value)) { // Try to find helper via class loader. bo... | 25,474 |
public boolean equals(org.omg.CORBA.Object self, java.lang.Object other) { return super.equals(other); } | public boolean equals(org.omg.CORBA.Object self, java.lang.Object other) { return self==other; } | 25,475 |
public Object run() throws ResourceNotFreeException { return rm.claimIOResource(owner, low, length); }}); | public Object run() throws ResourceNotFreeException { return rm.claimIOResource(owner, low, length); }}); | 25,476 |
public void handleInterrupt(int irq) { while ((io.getCSR(0) & CSR0_INTR) != 0) { final int csr0 = io.getCSR(0); /*final int csr3 =*/ io.getCSR(3); final int csr4 = io.getCSR(4); final int csr5 = io.getCSR(5); io.setCSR(0, csr0); io.setCSR(4, csr4); io.setCSR(5, csr5); // check if interrupt is due to I... | public void handleInterrupt(int irq) { while ((io.getCSR(0) & CSR0_INTR) != 0) { final int csr0 = io.getCSR(0); /*final int csr3 =*/ final int csr4 = io.getCSR(4); final int csr5 = io.getCSR(5); io.setCSR(0, csr0); io.setCSR(4, csr4); io.setCSR(5, csr5); // check if interrupt is due to Initialization... | 25,477 |
public ImageProducer getSource() { return new ImageProducer() { HashSet consumers = new HashSet(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); ... | public ImageProducer getSource() { return new ImageProducer() { Vector consumers = new Vector(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); ... | 25,478 |
public ImageProducer getSource() { return new ImageProducer() { HashSet consumers = new HashSet(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); ... | public ImageProducer getSource() { return new ImageProducer() { HashSet consumers = new HashSet(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); ... | 25,479 |
public ImageProducer getSource() { return new ImageProducer() { HashSet consumers = new HashSet(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); ... | public ImageProducer getSource() { return new ImageProducer() { HashSet consumers = new HashSet(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); ... | 25,480 |
public void startProduction(ImageConsumer ic) { int x = 0; int y = 0; int width = getWidth(); int height = getHeight(); int stride = width; int offset = 0; int[] pixels = getRGB(x, y, width, height, ... | public void startProduction(ImageConsumer ic) { int x = 0; int y = 0; int width = getWidth(); int height = getHeight(); int stride = width; int offset = 0; int[] pixels = getRGB(x, y, width, height, ... | 25,482 |
public void startProduction(ImageConsumer ic) { int x = 0; int y = 0; int width = getWidth(); int height = getHeight(); int stride = width; int offset = 0; int[] pixels = getRGB(x, y, width, height, ... | public void startProduction(ImageConsumer ic) { int x = 0; int y = 0; int width = getWidth(); int height = getHeight(); int stride = width; int offset = 0; int[] pixels = getRGB(x, y, width, height, ... | 25,483 |
protected Document createDefaultModel() { // subclassed to swallow newlines return new PlainDocument() { public void insertString(int offset, String str, AttributeSet a) throws BadLocationException { if (str != null && str.indexOf('\n') == -1) super.insertString(offset, st... | protected Document createDefaultModel() { // subclassed to swallow newlines return new PlainDocument() { public void insertString(int offset, String str, AttributeSet a) throws BadLocationException { if (str != null && str.indexOf('\n') == -1) super.insertString(offset, st... | 25,484 |
public void editingCanceled(ChangeEvent e) { BasicTreeUI.this.editingPath = null; BasicTreeUI.this.editingRow = -1; BasicTreeUI.this.editingComponent = null; BasicTreeUI.this.cellEditor = null; BasicTreeUI.this.tree.repaint(); } | public void editingCanceled(ChangeEvent e) { BasicTreeUI.this.editingPath = null; BasicTreeUI.this.editingRow = -1; BasicTreeUI.this.editingComponent = null; BasicTreeUI.this.cellEditor = null; BasicTreeUI.this.tree.repaint(); } | 25,485 |
public void editingStopped(ChangeEvent e) { BasicTreeUI.this.editingPath = null; BasicTreeUI.this.editingRow = -1; BasicTreeUI.this.editingComponent = null; BasicTreeUI.this.cellEditor = null; BasicTreeUI.this.tree.repaint(); } | public void editingStopped(ChangeEvent e) { BasicTreeUI.this.editingPath = null; BasicTreeUI.this.editingRow = -1; BasicTreeUI.this.editingComponent = null; BasicTreeUI.this.cellEditor = null; BasicTreeUI.this.tree.repaint(); } | 25,486 |
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP... | public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP... | 25,487 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 25,488 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 25,489 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 25,490 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 25,491 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 25,492 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 25,493 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 25,494 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 25,495 |
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path... | 25,496 |
public void treeCollapsed(TreeExpansionEvent event) { BasicTreeUI.this.tree.repaint(); } | public void treeCollapsed(TreeExpansionEvent event) { tree.repaint(); } | 25,497 |
public void treeExpanded(TreeExpansionEvent event) { BasicTreeUI.this.tree.repaint(); } | public void treeExpanded(TreeExpansionEvent event) { tree.repaint(); } | 25,498 |
protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseInputListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionModelPropert... | protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseInputListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionModelPropert... | 25,507 |
public boolean isEditing(JTree tree) { return getCellEditor() != null; } | public boolean isEditing(JTree tree) { return isEditing; } | 25,508 |
void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(getPathToRoot(node, 0)); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) { TreeCellRend... | void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(getPathToRoot(node, 0)); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) { TreeCellRend... | 25,509 |
void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(getPathToRoot(node, 0)); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) { TreeCellRend... | void paintNode(Graphics g, int x, int y, JTree tree, Object node, boolean isLeaf) { TreePath curr = new TreePath(getPathToRoot(node, 0)); boolean selected = tree.isPathSelected(curr); boolean expanded = false; boolean hasIcons = false; if (tree.isVisible(curr)) { TreeCellRend... | 25,510 |
void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel. DISCONTIGUOUS_TREE_SELECTION) { tree.addSelec... | void selectPath(JTree tree, TreePath path) { if (path != null) { if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else if (tree.getSelectionModel().getSelectionMode() == TreeSelectionModel. DISCONTIGUOUS_TREE_SELECTION) { tree.addSelec... | 25,511 |
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } TreeCellEditor ed = get... | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } TreeCellEditor ed = get... | 25,512 |
protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } TreeCellEditor ed = get... | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } TreeCellEditor ed = get... | 25,513 |
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(); return getCellEditor().stopCellEditing(); } return true; } | public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(); return getCellEditor().stopCellEditing(); } return true; } | 25,515 |
protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) cellEditor = createDefaultCellEditor(); } | protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; } | 25,516 |
public Dimension getMaximumSize(JComponent comp) { return getPreferredSize(comp); } | public Dimension getMaximumSize(JComponent comp) { int maxTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) maxTotalColumnWidth += table.getColumnModel().getColumn(i).getMaxWidth(); if (maxTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension(maxTotal... | 25,517 |
public Dimension getMinimumSize(JComponent comp) { return getPreferredSize(comp); } | public Dimension getMinimumSize(JComponent comp) { int minTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) minTotalColumnWidth += table.getColumnModel().getColumn(i).getMinWidth(); if (minTotalColumnWidth == 0 || table.getRowCount() == 0) return null; return new Dimension(minTotalColumnWidt... | 25,518 |
public IPv4ProtocolAddressInfo(IPv4Address address, IPv4Address subnetMask) { add(address, subnetMask); this.defaultAddress = address; } | public IPv4ProtocolAddressInfo(IPv4Address address, IPv4Address subnetMask) { add(address, subnetMask); this.defaultAddress = address; } | 25,520 |
public synchronized void add(IPv4Address address, IPv4Address subnetMask) { final IPv4AddressAndMask aam = new IPv4AddressAndMask(address, subnetMask); addresses.remove(address); addresses.put(address, aam); } | public synchronized void add(IPv4Address address, IPv4Address subnetMask) { final IPv4AddressAndMask aam = new IPv4AddressAndMask(address, subnetMask); addresses.remove(address); addresses.put(address, aam); } | 25,521 |
public synchronized void add(IPv4Address address, IPv4Address subnetMask) { final IPv4AddressAndMask aam = new IPv4AddressAndMask(address, subnetMask); addresses.remove(address); addresses.put(address, aam); } | public synchronized void add(IPv4Address address, IPv4Address subnetMask) { final IPv4AddressAndMask aam = new IPv4AddressAndMask(address, subnetMask); addresses.remove(address); IPv4IfAddress ifAddress = new IPv4IfAddress(address, mask); addresses.put(address,ifAddress); return ifAddress; } | 25,522 |
public ProtocolAddress getDefaultAddress() { return defaultAddress; } | public ProtocolAddress getDefaultAddress() { return defaultAddress.getAddress(); } | 25,523 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.